problems with after upgrading to php5.3

Sahi

Verified User
Joined
Nov 10, 2011
Messages
27
Since i upgraded from php 5.2.xx to 5.3.10 i have this warning:

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.

i had set the date.timezone setting in the php.ini in cd /usr/local/lib but the values were not changed when restarting the apache.

Today i had to change the upload_max_filesize.
But when changing and restarting apache the value was not changed.

Can somebody help?
 
I would guess you are editing the wrong php.ini file. Try to edit this instead: /usr/local/etc/php5/cgi/php.ini
 
i don't have a folder php5 in /usr/local/etc

my phpinfo says:

Configuration File (php.ini) Path /usr/local/lib
Loaded Configuration File /usr/local/lib/php.ini
 
First question, is this a DirectAdmin server'

If yes, PHP has been installed as CLI or CGI?

From the php.ini you listed i suppose is CLI and the right one should be this: /usr/local/lib/php.ini

Regards
 
It is a directadmin server yes.

As far as i know it is installed as CLI

When i change asp_tags to 'ON' that worked in my php.ini
But other things like the date.timezone and upload_max_filesize doesn't

So.... what can be wrong then?
 
Well, a .htaccess file in the webdirectory where you dont get the right thing work should be a cause.

Other, honestly dont know, make sure there are not comments between those lines

Regards
 
Really strange everything.

i have no .htaccess is the directory with the problems. I have the problems on my whole server.

The strange thing is that some things i change in php.ini are working and some thing don't.

Can i post my php.ini or send it somewhere so someone can take a look at it?
 
date.timezone = Europe/Amsterdam

on my server is:

date.timezone = "Europe/Rome"

so maybe is missing ""

regarding upload_max_filesize it looks like mine, so, dont know honestly.

Does you restart apache once you edit php.ini?

Regards
 
Still no solution fot my problem.

when i edit the php.ini i do a httpd restart in the DA panel and a shell restart

/etc/init.d/httpd restart
 
@ Boeve: That did the trick. php -v gave an errror in the php.ini. A line was too long and gave an unsuspected '(' because it came on a new line.

Great thank.

In Dutch: Bedankt Boeve, Hartelijk dank. Hoe simpel kan t soms zijn.
 
Back
Top