Apache fails to start: cgi_wrapper cannot be accessed

Created:

2016-11-16 13:19:52 UTC

Modified:

2017-04-24 11:04:12 UTC

3

Was this article helpful?


Have more questions?

Submit a request

Apache fails to start: cgi_wrapper cannot be accessed

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

Apache fails to start after PHP or MySQL upgrade:

 # /etc/init.d/httpd start
Starting httpd: Syntax error on line 90 of /var/www/vhosts/domain.tld/conf/13687485080.36736400_httpd.include:
Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory
                                                           [FAILED]

or:

# service httpd start
Starting httpd: Syntax error on line 35 of /etc/httpd/conf/plesk.conf.d/horde.conf:
Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory
[FAILED]

PHP or MySQL packages were removed and installed again.

The following command returns empty output:

# rpm -q psa

or

# rpm -q plesk-core

Cause

Plesk package was uninstalled as dependency during PHP or MySQL removal.

A sample scenario: at some point during the upgrade, the following command was manually executed to remove PHP packages:

# yum remove php php-cli php-common php-devel php-gd php-mbstring

or

# yum remove mysql-server

On most of systems, Plesk will be uninstalled as a result of the command above.

Resolution

PHP and MySQL packages are one of dependencies for Plesk. Removal of PHP or MySQL will result in Plesk removal.

We strongly recommend to be very careful while removing packages on Plesk server and also pay attention to dependencies section.

In this situation, Plesk should be installed again or server restored from backup.

Note: OS upgrade on Plesk 12 and older versions is not supported [ KB213946265 ]

Internal

Have more questions? Submit a request
Please sign in to leave a comment.