Symptoms

Task APS application 'Drupal', id app_id, instance instance_id: executing configuration script fails with following output:

Script execution failed: executing '/usr/bin/php-cgi -d open_basedir= -q configure' for APS application instance with id 1234 returned value '1' with output 'Unable to write file /usr/local/pem/vhosts/123456/webspace/siteapps/1234/htdocs/sites/default/settings.php.
' and errors 'PHP Deprecated: Function ereg() is deprecated in /usr/local/pem/vhosts/123456/webspace/siteapps/1234/scripts/db-util.php on line 40
PHP Deprecated: Function ereg() is deprecated in /usr/local/pem/vhosts/123456/webspace/siteapps/1234/scripts/db-util.php on line 40
PHP Deprecated: Function ereg() is deprecated in /usr/local/pem/vhosts/123456/webspace/siteapps/1234/scripts/db-util.php on line 40
PHP Deprecated: Function ereg() is deprecated in /usr/local/pem/vhosts/123456/webspace/siteapps/1234/scripts/db-util.php on line 40
PHP Deprecated: Function ereg() is deprecated in /usr/local/pem/vhosts/123456/webspace/siteapps/1234/scripts/db-util.php on line 59
PHP Warning: fopen(/usr/local/pem/vhosts/123456/webspace/siteapps/1234/htdocs/sites/default/settings.php): failed to open stream: Permission denied in /usr/local/pem/vhosts/123456/webspace/siteapps/1234/scripts/file-util.php on line 15
'.

Cause

'PHP Deprecated: Function ereg() is deprecated' messages are warnings and they are not the reason why task fails. The reason why it fails is this error:

Unable to write file /usr/local/pem/vhosts/123456/webspace/siteapps/1234/htdocs/sites/default/settings.php

Permissions for this file have been altered manually.

Resolution

Correct permissions on file settings.php (path is in task output), they should be -rw-r-xr-x

Resubmit the task.

Internal content