Symptoms
After updating the PHP version from 5.2.17 to 5.3.3 the Presence Builder related task failed with following error:
Script execution failed: executing '/usr/bin/php -d open_basedir= -q configure.php' for APS application instance with id yyy returned value '199' with output 'Site error: the file <b>/usr/local/pem/vhosts/xxxxx/webspace/siteapps/ParallelsWebPresenceBuilder-yyy/scripts/configure.php</b> requires the ionCube PHP Loader ioncube_loader_lin_5.3.so to be installed by the site administrator.' and errors 'PHP Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line 0
After installing php53-ioncube-loader-4.0.12-2.pem.x86_64.rpm
package the task failed with a different error:
Script execution failed: executing '/usr/bin/php -d open_basedir= -q configure.php' for APS application instance with id 396 returned value '1' with output '<?xml version="1.1" encoding="utf-8"?>
<output xmlns="http://apstandard.com/ns/1/configure-output"><errors><error><message>Internal SiteBuilder error.</message><system>Base_SyntaxException: PHP Warning : 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/Helsinki' for 'EET/2.0/no DST' instead
file: /usr/local/pem/vhosts/xxxxx/webspace/httpdocs/domain.tld/include/Zend/Log.php
line: 135
code: 2
trace: #0 /usr/local/pem/vhosts/xxxxxx/webspace/httpdocs/domain.tld/include/Base/SyntaxException.php(49): Base_SyntaxException::handleError()
#1 [internal function]: Base_SyntaxException::handleError(2, 'date(): It is n...', '/usr/local/pem/...', 135, Array)
#2 /usr/local/pem/vhosts/xxxxxx/webspace/httpdocs/tricktrack.hosting.holcloud.gr/include/Zend/Log.php(135): date('c')
#3 /usr/local/pem/vhosts/xxxxxx/webspace/httpdocs/tricktrack.hosting.holcloud.gr/include/Zend/Log.php(103): Zend_Log->log('Create configur...', 6)
#4 /usr/local/pem/vhosts/xxxxxx/webspace/httpdocs/tricktrack.hosting.holcloud.gr/include/SB/Aps/Configurator.php(106): Zend_Log->__call('info', Array)
#5 /usr/local/pem/vhosts/xxxxxx/webspace/httpdocs/tricktrack.hosting.holcloud.gr/include/SB/Aps/Configurator.php(106): SB_Aps_Log->info('Create configur...')
#6 /usr/local/pem/vhosts/xxxxxx/webspace/httpdocs/tricktrack.hosting.holcloud.gr/include/SB/Aps/Configurator/Abstract.php(126): SB_Aps_Configurator->_installCommand()
#7 /usr/local/pem/vhosts/xxxxxx/webspace/siteapps/ParallelsWebPresenceBuilder-396/scripts/configure.php(90): SB_Aps_Configurator_Abstract->run()
#8 {main}
</system></error></errors></output>
Cause
Timezone is not configured in /etc/php.ini
Resolution
Make sure that
php53-ioncube-loader-4.0.12-2.pem.x86_64.rpm
package is installed:# yum install php53-ioncube-loader
In case the host uses some alt-php package, install Ioncube Loader of the corresponding version, e.g.:
# yum install alt-php55-ioncube-loader
Configure timezone in
/etc/php.ini
e.g.:date.timezone = Europe/London
Restart apache to apply
/etc/php.ini
changes:in case of Legacy Shared Hosting:
# /etc/init.d/pemhttpd restart
in case of NG hosting:
# /etc/init.d/httpd restart