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

Gary Stainburn gary.stainburn at ringways.co.uk
Thu Feb 8 17:17:42 GMT 2007


On Thursday 08 February 2007 15:56, shaun laughey wrote:
> 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.

Hi Shaun.

I've already done this (because I thought it was ignoring other settings too) 
but it was using the correct php.ini. (I had missed one of the settings I 
needed to change). However, it still ignores the timezone entry, while 
allowing it quite happily inside my php scripts. I'll have to wait for BST to 
start to see how/if  it handles that okay.

Thanks anyway

Gary
-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     



More information about the Wylug-help mailing list