Weird PHP Error

  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8398
  • Loc: USA

Post 3+ Months Ago

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
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

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. :)
  • Bogey
  • Genius
  • Genius
  • Bogey
  • Posts: 8398
  • Loc: USA

Post 3+ Months Ago

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"?
  • SpooF
  • ٩๏̯͡๏۶
  • Bronze Member
  • User avatar
  • Posts: 3422
  • Loc: Richland, WA

Post 3+ Months Ago

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.
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

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.

Post Information

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

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.