Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: crazybob on February 25, 2011, 01:40:03 AM

Title: revert to php5.2-cgi
Post by: crazybob on February 25, 2011, 01:40:03 AM
I am seeing complaints in the logs about setting the time zone for php. This has occurred since the last update which took me to php5.3. Is there a way to revert to php5.2?
Title: Re: revert to php5.2-cgi
Post by: mmccarn on February 25, 2011, 03:49:07 PM
Couldn't you just add php_admin_value date.timezone America/New_York to /etc/httpd/conf/httpd.conf, or date.timezone America/New_York to /etc/php.ini?

Valid PHP timezone values: http://php.net/manual/en/timezones.php
Title: Re: revert to php5.2-cgi
Post by: crazybob on February 25, 2011, 05:16:32 PM
I have already tried your second solution, and sadly it did not work. Will try the first one and report back.  :-)
Title: Re: revert to php5.2-cgi
Post by: cactus on February 25, 2011, 05:24:10 PM
I have already tried your second solution, and sadly it did not work. Will try the first one and report back.  :-)
Did you make sure you restarted your webserver before you retried? PHP configuration changes are only read on a webserver restart.
Title: Re: revert to php5.2-cgi
Post by: crazybob on February 25, 2011, 05:30:15 PM
I did a  apachectl restart.
Title: Re: revert to php5.2-cgi
Post by: cactus on February 25, 2011, 05:34:31 PM
I did a  apachectl restart.
That is not the proper SME Server way to restart your webserver, not even sure that it will actually restart the webserver, next time please use:

Code: [Select]
sv t httpd-e-smith
Title: Re: revert to php5.2-cgi
Post by: crazybob on February 25, 2011, 06:23:57 PM
That did not help either. There is a bug Bug 6467 open on this issue, but no resolution at this point.