- Plesk for Linux
Apache fails to start. The following error message is displayed in the status:
# service httpd status
httpd: Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory
The file /var/www/cgi-bin/cgi_wrapper/cgi_wrapper does not exist:
# ls -l/var/www/cgi-bin/cgi_wrapper/cgi_wrapper
ls: cannot access /var/www/cgi-bin/cgi_wrapper/cgi_wrapper: No such file or directory
The package to which the file "cgi_wrapper" belongs is not installed:
# rpm -ql psa-php5-configurator
package psa-php5-configurator is not installed
System PHP has been upgraded recently from the 3rdparty repository. It can be confirmed in /var/log/yum.log.
The solution from this KB article does not resolve the issue.
The package that depend on the default system PHP is missing.
Note: it is not recommended to upgrade system PHP package on a Plesk server. For more information, see this KB article.
Connect to a Plesk server via SSH.
Install the Plesk "psa-php5-configurator" package from the Plesk Repository. Below is an example of the command for Plesk 17.8 on CentOS 7:
# rpm -Uvh --force --nodeps http://autoinstall.plesk.com/PSA_17.8.11/dist-rpm-CentOS-7-x86_64/opt/php5/psa-php5-configurator-1.7.0-cos7.build1708180212.17.x86_64.rpm
Rebuilt web-server configuration files:
# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
# service httpd start