Weird PHP bug

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

Post October 29th, 2010, 9:26 am

Quote:
I didn't put any .htaccess in any of the directories. Do I need to, to enable errors?


Only in cases when you don't have access to the main php.ini file. If you were on a shared hosting server, that would be one example of a case when you would use htaccess.

I'm assuming you're on one of your home computers here, based on what I've seen you post in the past.

For whatever reason, your setting for "display_errors" isn't registering from "/etc/php5/apache2/php.ini", if it were, you should be seeing "On" under the "master value".

Is this a server that's open to the public? If not, go ahead and post the contents of "/etc/php5/apache2/php.ini", maybe there's a syntax error or an overriding value later on in the file.

--

I'm not sure why, but I've had this odd feeling that file permissions are preventing the ini file from actually being saved and we just haven't realized it.
Strong with this one, the sudo is.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 29th, 2010, 9:26 am

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

Post October 29th, 2010, 3:04 pm

joebert wrote:
I'm not sure why, but I've had this odd feeling that file permissions are preventing the ini file from actually being saved and we just haven't realized it.

You're a genius :lol: I'm pretty sure it is file permission (it's on my home computer).

This is what I have done at the moment.
Code: [ Select ]
sudo chown -R bogdan /var/www/
sudo chmod -R 755 /var/www/
  1. sudo chown -R bogdan /var/www/
  2. sudo chmod -R 755 /var/www/

But I have being messing around with it setting it to 644, 777, 655, 700, 070, 007 and some other things... but what is set right now is the code on top.

There is something wrong with the file permission system though... I did 655 and I couldn't do anything... open/save... then I restarted my computer and then I could open the files but I couldn't save...

I actually done chown like 3 times so I'm not sure what that could've done.

[php.ini file is too big for me to paste here...]


Also, why is php5 locked down? I'm not able to access inside that folder.
"Bring forth therefore fruits meet for repentance:" Matthew 3:8

Post Information

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