Server time zone error

anthonyinit

Verified User
Joined
Aug 10, 2011
Messages
10
Hello all,

i have a VPS Server Located in Germany (Unmanaged) recently i'm getting error in my site when i try to brows rss.xml page and get back up

Error mes'g

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. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead (2)

Can you help me out i'm a new person who have no idea about php
Thank you
 
that is not the right place for php.ini

should be in /usr/local/lib/php.ini if you are using php cli.

I suggest you to remove the one in /etc/ , at least this is related to directadmin, if you are not using directadmin try to search for other php.ini file

find / -name php.ini

Regards
 
that is not the right place for php.ini

should be in /usr/local/lib/php.ini if you are using php cli.

I suggest you to remove the one in /etc/ , at least this is related to directadmin, if you are not using directadmin try to search for other php.ini file

find / -name php.ini

Regards

hello sir,

i really don't know about php this is the guide i use to upgrade http://linuxnet.ch/groups/linuxnet/wiki/8457a/

i checked in /usr/local/lib/php.ini nothing is there its empty.

my server is VPS (CentOS 5.6) with Webmin and Kloxo CP (Free) i have root access.

kindly support me if this is not much to ask.
 
Actually this is a Forum for DirectAdmin Control Panel and not for Hosting in general.

You need to find which php.ini your system is using and change the appropriate timezone.

Regards
 
Actually this is a Forum for DirectAdmin Control Panel and not for Hosting in general.

You need to find which php.ini your system is using and change the appropriate timezone.

Regards

sorry for all the trouble.. thank you so much.
 
Had you run the find for check other php.ini?

yes sir i found php.ini in these places

/usr/lib/kloxophp/zend/etc/php.ini
/usr/local/lxlabs/ext/php/etc/php.ini
/usr/local/lxlabs/kloxo/httpdocs/htmllib/filecore/php.ini
/home/admin/idownlo/php.ini
/home/kloxo/httpd/installapp/ocportal/lang/EN/php.ini
/etc/php.ini



Only /etc/php.ini file has this

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
;date.timezone = 'Europe/Berlin'

others nothing mention about time zone.. but i got to tell you once i delete the /etc/php.ini i got some other error in my site again i replace it the error is gone, this is so hard thing for me to understand.

Thank you so much for trying to support me even if im not in the correct forum.
 
php --ini will tell you the location to your php.ini

Also you can make a php page and put:

<?php phpinfo(); ?>

Then go to the url for that page and it will show you the location to the php config.
 
php --ini will tell you the location to your php.ini

Also you can make a php page and put:

<?php phpinfo(); ?>

Then go to the url for that page and it will show you the location to the php config.

Hello sir,

this is what i got

Configuration File (php.ini) Path: /etc
Loaded Configuration File: /etc/php.ini
Scan for additional .ini files in: /etc/php.d
Additional .ini files parsed: /etc/php.d/bcmath.ini,
/etc/php.d/curl.ini,
/etc/php.d/dom.ini,
/etc/php.d/fileinfo.ini,
/etc/php.d/gd.ini,
/etc/php.d/json.ini,
/etc/php.d/mbstring.ini,
/etc/php.d/mysql.ini,
/etc/php.d/mysqli.ini,
/etc/php.d/pdo.ini,
/etc/php.d/pdo_mysql.ini,
/etc/php.d/pdo_sqlite.ini,
/etc/php.d/phar.ini,
/etc/php.d/snmp.ini,
/etc/php.d/soap.ini,
/etc/php.d/wddx.ini,
/etc/php.d/xmlreader.ini,
/etc/php.d/xmlrpc.ini,
/etc/php.d/xmlwriter.ini,
/etc/php.d/xsl.ini,
/etc/php.d/zip.ini

i created a file info.php like this from a youtube tutorial (vi /var/www/html/info.php)

restart apache2 and i type my serve ip and info.php it gave me error
The requested URL /info.php was not found on this server.

i guess i have to live with this error thank you sir
 
php --ini will tell you the location to your php.ini

Also you can make a php page and put:

<?php phpinfo(); ?>

Then go to the url for that page and it will show you the location to the php config.

sir,
i got info.php to work i copy the file to my site root directory and type my site ulr and info.php now i can see all the details of php in (very long page)

if you don't mind can you tell me what to look now?

i'm really sorry as i have no idea about php that's why i'm giving you all hard time. hope you understand my situation.

Thank you sir
 
You have to remove the ; in front of date.timezone ; means its commented out, so the variable is never read ever.
 
You have to remove the ; in front of date.timezone ; means its commented out, so the variable is never read ever.

Thank you thank you Thank you thank you Thank you thank you

almost 1month i try to find a solution and i reinstall my OS more than 20 times... sir thank you so much for both of you..

Problem is fixed... thank you sir.... no more time zone error. really appreciate your help sir.

you dnt know how happy i'am, i'm sorry to give you hard time, i will not eat your heads :D

bless!
 
Back
Top