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://plesk.zendesk.com/hc/article_attachments/360019008420/reinstall_obsidian.sh
-
Make the script executable:
# chmod +x reinstall_obsidian.sh
-
Run the script:
# ./reinstall_obsidian.sh
Â
Â
-
Connect to the Plesk server via SSH.
-
Download the script:
# wget https://support.plesk.com/hc/article_attachments/115005704554/reinstall.tar.gz
-
Unpack the script:
# tar zxf reinstall.tar.gz -
Launch the script:
# ./reinstall.sh
Â