Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - ptidav

Pages: [1]
1
CentOS Configuration / server time : timezone not applied
« on: March 31, 2022, 07:12:16 AM »
Hello,
I defined the timezone of my server to "Europe/Paris", so UTC+2
I Also defined timezone in /usr/local/php/php.ini and /usr/local/cwp/php71/php.ini

When I execute a php script that logs date and time, data are correct. Script executed at 09:00 records 09:00 in the log.
But the date of the modified .log file is still UTC (09:00-2 => 07:00).

Is it normal ? I think no.... How to correct that ?

Thanks for your help
David

2
CentOS Configuration / cron task not executed manually
« on: March 30, 2022, 07:48:26 AM »
Hello,
I defined some cron task in the user account (.sh scripts). Execute right is applied on each script file.
A typical entry is :
/home/user/public_html/crons/cron_test.sh >> /home/user/public_html/crons/cron_test.log 2>&1

Task is never executed, when I launch it manually from the panel gui.
Log file is not updated.

However, the task is correctly executed at defined time.

What's wrong ?

Thanks for your help
David

Pages: [1]