apache reload does not read php.ini changes

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

apache reload does not read php.ini changes

Postby snocetti » Wed Aug 08, 2012 8:03 am

Hello, I am trying to do some changes on php.ini (/etc/php5/apache2/php.ini) but those are not loaded by apache, I don't know why...

I changed settings like display_errors to Off ... and nothings happens

This is related info:

System Linux vicidial-db 2.6.34.10-0.4-default #1 SMP 2011-10-19 22:16:41 +0200 x86_64
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /etc/php5/apache2/php.ini
Scan this dir for additional .ini files /etc/php5/conf.d


on php.ini

display_errors = Off

but phpinfo() shows:

default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
snocetti
 
Posts: 23
Joined: Wed Nov 21, 2007 5:09 pm

Re: apache reload does not read php.ini changes

Postby DomeDan » Wed Aug 08, 2012 8:14 am

Did you restart apache after you made the change?
/etc/init.d/apache2 restart
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden

Re: apache reload does not read php.ini changes

Postby snocetti » Wed Aug 08, 2012 8:16 am

Sure, I restart it... I reboot machine too.
snocetti
 
Posts: 23
Joined: Wed Nov 21, 2007 5:09 pm

Re: apache reload does not read php.ini changes

Postby DomeDan » Wed Aug 08, 2012 8:26 am

This was the case in my server too I just noticed.
and the reason is that "display_errors = Off" is overwritten by log_errors which is set to On by default

set this to:
log_errors = Off

and then phpinfo() displays:
display_errors Off Off
(at least in my case)
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 83 guests