[Wylug-help] FC4->FC5 upgrade PHP issues.

shaun laughey shaun at laughey.com
Thu Feb 8 16:03:40 GMT 2007


On Wednesday 07 February 2007 15:02:27 Gary Stainburn wrote:
> Hi folks.
>
> I've just done a FC5 clean build + yum update and then moved my web sites
> across from a FC4 system and now I'm getting lots of 'PHP Strict' warnings
> that I would like help with.
>
> I know I can get rid of them by telling PHP not to log them, but I'd rather
> fix the faults than hide the messages.
>
> Firstly, it complained about timezone not being set, so in php.ini I set
> the date.timezone value to 'GMT0', 'UTC' (which is what it was saying it
> was defaulting to) and 'Europe/London' (Taken from Appendix H).
>
> None of these values made any effect as I still got the error message about
> it not being set. The only way I got the error messages to stop was to add
>
> date_default_timezone_set('Europe/London');
>
> to the top of my sql.inc
>
> Can anyone suggest why changing the php.ini file didn't work. I did of
> course restart httpd after every edit of the file.
>

Hi I'll deal with the first issue as I've had to debug similar issues before.

apache sometimes/usually gets its own php.ini and sometimes that php.ini 
doesn't exist so it defaults to rubbish.

Look at adding a phpinfo() call in a page and then run that from a browser - 
in the copious output it'll tell you the path to it's php.ini.

you'll get something like this web page here (they are a random google victim)
http://www.webware.be/php5/phpinfo.php


Shaun.




More information about the Wylug-help mailing list