When trying to install Plesk Automation it fails with the following output:
2015-07-21 11:22:26,685 [ERROR]: Failed to execute command: ['/usr/local/psa/bin/secret_key', '--create', '-ip-address', '127.0.0.1'] 2015-07-21 11:22:26,685 [ERROR]: See installation log file /tmp/ppa_installer.log for details.
If trying to execute the last command manually it returns "Session expired" message:
# /usr/local/psa/bin/secret_key --create -ip-address 127.0.0.1 Session expired
PHP could not determine current system time zone. The system time zone and time zone in Plesk PHP do not match:
# date Tue Jul 21 16:40:19 ACST 2015
# /usr/local/psa/bin/sw-engine-pleskrun -r 'date_default_timezone_set(@date_default_timezone_get()); echo(date(DATE_RFC2822)."\n");' Tue, 21 Jul 2015 02:10:23 -0500
Choose a time zone for PHP which matches to the system one and has a name supported by PHP. The list of the time zones supported by PHP is available here:
For example, system time zone ACST (UTC +9:30) is not presented in PHP, but there is the time zone with the same offset named Australia/Darwin.
/usr/local/psa/admin/conf/php.inifile used by Plesk and add the following line:
date.timezone = "Australia/Darwin"
- Re-run installation script.