Koozali.org: home of the SME Server

revert to php5.2-cgi

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
revert to php5.2-cgi
« 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?
If you think you know whats going on, you obviously have no idea whats going on!

Offline mmccarn

  • *
  • 2,651
  • +10/-0
Re: revert to php5.2-cgi
« Reply #1 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

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: revert to php5.2-cgi
« Reply #2 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.  :-)
If you think you know whats going on, you obviously have no idea whats going on!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: revert to php5.2-cgi
« Reply #3 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: revert to php5.2-cgi
« Reply #4 on: February 25, 2011, 05:30:15 PM »
I did a  apachectl restart.
If you think you know whats going on, you obviously have no idea whats going on!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: revert to php5.2-cgi
« Reply #5 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline crazybob

  • *****
  • 894
  • +0/-0
    • Stalzer R&D
Re: revert to php5.2-cgi
« Reply #6 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.

If you think you know whats going on, you obviously have no idea whats going on!