LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-25-2011, 06:47 AM   #1
famsinyi
LQ Newbie
 
Registered: Nov 2007
Posts: 25

Rep: Reputation: 0
phpinfo display_errors not set to On after value set to On in php.ini


Hi,

I had set the display_errors to On in the php.ini. But the phpinfo() still show it as off. The php.ini file that I wrote to was the one shown in phpinfo(), namely /etc/php.ini. The setting couldn't be reflected even after a reboot. I suspected that the /etc/php.ini was not the one get run so I rename it to php2.ini and reboot. phpinfo() still working and displayed the loaded php.ini file is /etc/php.ini.

can someone help? THANKS
 
Old 03-25-2011, 07:14 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697

Rep: Reputation: 93
I'm sure that your php is preconfigured to use /etc/php.ini.

Two thing I would check: is /etc/php.ini world readable and
are you sure there are no syntax errors in /etc/php.ini?

See if you can find anything in your apache error log file.
 
1 members found this post helpful.
Old 03-25-2011, 07:38 AM   #3
Nominal Animal
Senior Member
 
Registered: Dec 2010
Location: Finland
Distribution: Xubuntu, CentOS, LFS
Posts: 1,723
Blog Entries: 3

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Also check if your Apache configuration or .htaccess files contain
Code:
php_flag display_errors off
or
Code:
php_admin_flag display_errors off
since these can be used to override the php.ini settings.
 
1 members found this post helpful.
Old 03-25-2011, 07:39 PM   #4
famsinyi
LQ Newbie
 
Registered: Nov 2007
Posts: 25

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by carltm View Post
I'm sure that your php is preconfigured to use /etc/php.ini.

Two thing I would check: is /etc/php.ini world readable and
are you sure there are no syntax errors in /etc/php.ini?

See if you can find anything in your apache error log file.
After reading the apache error log file, I found the php errors logged there. That is my original purpose. I think that's should be the error on phpinfo() couldn't reflect the correct information. Well I leave it as it is since now I can continue php programming. THANK YOU VERY MUCH !!!
 
Old 03-25-2011, 07:41 PM   #5
famsinyi
LQ Newbie
 
Registered: Nov 2007
Posts: 25

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nominal Animal View Post
Also check if your Apache configuration or .htaccess files contain
Code:
php_flag display_errors off
or
Code:
php_admin_flag display_errors off
since these can be used to override the php.ini settings.
THANK YOU VERY MUCH !!! I'll keep this for future reference.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] php.ini display_errors = Off NOT respected bobby953 Linux - Software 7 05-05-2011 06:44 AM
[SOLVED] php.ini.rpmsave instead of php.ini ilvista Linux - Server 3 02-01-2011 04:39 PM
Compiling PHP 5.1.6 from source - php -v and phpinfo() version discrepancy nicky77 Linux - Software 7 03-05-2010 02:44 PM
weird PHP compile issue- module shows in "php -m" but not in phpinfo call hbbtstar Linux - Software 1 08-28-2009 03:14 PM
php.ini-dist to php.ini lord-fu Programming 10 05-02-2006 05:24 PM


All times are GMT -5. The time now is 11:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration