Article ID: 117193, created on Sep 10, 2013, last review on May 4, 2014

  • Applies to:
  • Operations Automation 5.x

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.

Search Words

Unable to write file

Unable to write file

caea8340e2d186a540518d08602aa065 5356b422f65bdad1c3e9edca5d74a1ae 2554725ed606193dd9bbce21365bed4e e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF