configuring cakephp

Refer:
http://manual.cakephp.org/chapter/installing

point no
5) Configuring Apache and mod_rewrite

when put the cakePHP folder in doc root
if the following  error comes

Warning: session_start() [function.session-start]: open(/var/lib/php/
session/sess_fkfel4sr31ee3qb4i5a0birqj6, O_RDWR) failed: Permission
denied (13) in /home/gunabalans/public_html/website/cake/cake/libs/
session.php on line 484

solution:

cd var/lib/php/


sudo /bin/chown -R apache:apache session/

make sure in

cd etc/httpd/conf

sudo vi httpd.conf

# this setting for php-smarty
#User nobody
#Group nobody

#this setting for php-cake or other defalult setting for apache
User apache
Group apache




###########AllowOverride is set to All for the correct
Directory.##################

Make sure that an .htaccess override is allowed: in your httpd.conf,
you should have a section that defines a section for each Directory on
your server. Make sure the AllowOverride is set to All for the correct
Directory.
#

################## httpd.conf   ########  file  ##################


# Each directory to which Apache has access can be configured with
respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.

# do the following changes or just copy and replace

<Directory />
    Options FollowSymLinks
    #AllowOverride None         #this part has been commented
     AllowOverride All          #this line is newly added
</Directory>



LoadModule rewrite_module modules/mod_rewrite.so

##############################################
to check that

cd etc/httpd/modules/
ls

you can see the list of modules


*****************************

now you will be fine


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to