SYMPTOMS
Task "Update Apache domain service <ds_id> at <webserver>" fails with the following error:ExSystem: ERRCODE 0 ERRCODE_MINOR 0 OpMkDir: /usr/local/pem/vhosts/<hd_id>/webspace/httpdocs/<DocumentRoot>: Not a directory CAUSE
Common issue with such kind of tasks is that end customer can specify invalid DocumentRoot for his/her site - e.g. "index.html" instead of a directory. In this case POA fails to create a directory "index.html" if a file with the same name already exist.RESOLUTION
To fix such kind of tasks, follow these steps:1. Login to the server, mentioned in the task name using root credentials
2. Rename the file referenced in the task error:
# mv /usr/local/pem/vhosts/<hd_id>/webspace/httpdocs/<DocumentRoot> /usr/local/pem/vhosts/<hd_id>/webspace/httpdocs/<DocumentRoot>.bak 3. Restart the task
After the task completes successfully, you can change DocumentRoot to a directory using CCP and rename .bak file back into original state:
# mv /usr/local/pem/vhosts/<hd_id>/webspace/httpdocs/<DocumentRoot>.bak /usr/local/pem/vhosts/<hd_id>/webspace/httpdocs/<DocumentRoot>