Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory

by

in

If You got messed up with PHP in CentOS with plesk 10.4, You might get such error:

# httpd -t
Syntax error on line 65 of /var/www/vhosts/domain.tld/conf/13353493930.96968200_httpd.include:
Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory

Small fix to make it work:

# ln -s /usr/bin/sw-engine-cgi /var/www/cgi-bin/cgi_wrapper/cgi_wrapper 

sw-engine-cgi is from PSA repository:

# yum list | grep sw-engine
sw-engine.x86_64                       2.3-201111031522.centos6      @PSA_10_4_4-dist

Well, You can use different cgi wrapper.
In my system there were 3 present.

# ll /usr/bin/*cgi* 
-rwxr-xr-x 1 root root    15144 Aug 26  2010 /usr/bin/cgi-fcgi
-rwxr-xr-x 1 root root  3237200 Feb  3 01:53 /usr/bin/php-cgi
-rwxr-xr-x 1 root root 13694350 Nov  3  2011 /usr/bin/sw-engine-cgi

If there are no wrappers, You can install them using yum, for example:

# yum install sw-engine-cgi

Comments

One response to “Wrapper /var/www/cgi-bin/cgi_wrapper/cgi_wrapper cannot be accessed: (2)No such file or directory”

  1. You are a life saver!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.