Apache cannot be started on Legacy Shared Hosting server:
# /etc/init.d/pemhttpd restart httpd: Syntax error on line 156 of /usr/local/pem/etc/apache/httpd.conf_pem: Syntax error on line 60 of /usr/local/pem/etc/apache/httpd.conf_pem.common: Syntax error on line 12 of /usr/local/pem/etc/apache/httpd.conf_pem.vhosts: Could not open configuration file /usr/local/pem/vhosts/xxxxxx/webspace/conf/vhost.conf: No such file or director
vhost.conf file of some webspace was either removed or corrupted (or the whole webspace was lost/removed/corrupted).
As a quick fix to bring apache up, check if there are any tasks affecting the mentioned webspace in OA. For example, there can be a task that generates Apache config files, it should have name like
Generate configuration files for service with id 997. If there is such failed / cancelled task, do the following steps:
create empty folder for this webspace:
mkdir -p /usr/local/pem/vhosts/xxxxxx/webspace/conf
- Process the task in OA
- try to start apache, comment any strings related to the problem webspace in apache config file if it still fails
To fix the webspace itself, restore the content of webspace if there are any backups, uncomment lines commented at the step 3 above and try to restart apache again.