Symptoms
-
All websites show a "502 Bad Gateway" error in a web-browser.
-
Apache fails to start. The following error message is returned by Apache configuration checker:
-
on CentOS/RHEL-based distributions
# httpd -t
-
on Debian/Ubuntu-based distributions
# apache2ctl -t
Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory
-
Cause
The file /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
is missing.
Resolution
-
Connect to the Plesk server via SSH.
-
Download the script:
# wget https://cpanel.zendesk.com/hc/article_attachments/12377318089623
-
Make the script executable:
# chmod +x reinstall_obsidian.sh
-
Run the script:
# ./reinstall_obsidian.sh