Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed May 16, 2012 12:28 pm 
Offline
Newbie

Joined: Wed May 16, 2012 12:25 pm
Posts: 2
Website: http://codemancode.com
AOL: matt8cr8gx
Location: NC
Warning: session_start() [function.session-start]: open(/var/lib/php5/sess_3bf61c2d4a112448d55ceb8ac3d353df, O_RDWR) failed: Permission denied (13) in /var/www/longschapelcc.org/public_html/ministry.php on line 1

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/longschapelcc.org/public_html/ministry.php:1) in /var/www/longschapelcc.org/public_html/ministry.php on line 1

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/longschapelcc.org/public_html/ministry.php:1) in /var/www/longschapelcc.org/public_html/ministry.php on line 1

This dir /var/www/longschapelcc.org/ has been chown -R root:root already.

Any thoughts on why I'm getting this permission denied?


Top
   
 Post subject:
PostPosted: Wed May 16, 2012 12:46 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Whatever your web server is running as (and under no circumstances should PHP EVER be running as root) doesn't have permissions for /var/lib/php5/sess_3bf61c2d4a112448d55ceb8ac3d353df


Top
   
 Post subject:
PostPosted: Wed May 16, 2012 1:02 pm 
Offline
Newbie

Joined: Wed May 16, 2012 12:25 pm
Posts: 2
Website: http://codemancode.com
AOL: matt8cr8gx
Location: NC
So I changed the ownership of my sites in /var/www to www-data as that is the user that apache is running under.

I also set the ownership of /var/lib/php5/ to www-data

and the errors are gone now. /var/lib/php5 was initial set to root:root


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group