Weird PHP Error

  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post November 6th, 2010, 11:16 pm

I keep getting the following error in my project once in a while:
Quote:
Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php5) failed: Permission denied (13) in /var/www/Projects/CMS/includes/init.php on line 23

I know it means that it can't access php5 folder because it has being locked from me, and I'm on the admin account/session.

Should I CHOWN or CHMOD php5 to remove the error? If CHMOD, what to? If CHOWN and/or CHMOD should it be recursive?

Thanks
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 6th, 2010, 11:16 pm

  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post November 7th, 2010, 9:41 am

Changing permissions or file ownership should be a last resort.

Start here. Don't do anything else until you've read the description for every one of the INI directives related to sessions, and setup your configuration using what you've learned. :)
Strong with this one, the sudo is.
  • Bogey
  • Bogey
  • Genius
  • User avatar
  • Joined: Jul 14, 2005
  • Posts: 8211
  • Loc: USA
  • Status: Offline

Post November 7th, 2010, 7:33 pm

Ok... but before I mess with the php.ini I would like to make a backup, but that's kind of impossible when it's blocked from me. Could you please tell me how I would do so in "Terminal"?
"Bring forth therefore fruits meet for repentance:" Matthew 3:8
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Joined: May 22, 2004
  • Posts: 3415
  • Loc: Richland, WA
  • Status: Offline

Post November 7th, 2010, 9:20 pm

Code: [ Select ]
cp /etc/php.ini /etc/php.ini.back_up


Or something similar depending on where your file is located. I don't believe you need root permissions to copy it.
#define NULL (::rand() % 2)
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post November 8th, 2010, 12:53 pm

You don't need to alter php.ini, every one of the session directives are PHP_INI_ALL meaning they can be set per-application in htaccess.

Start here if you need help with that.

If, after setting up session directives for you application's directory you still have a problem, read here.
Strong with this one, the sudo is.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 222 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
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.