Forum

CGI-wrapper: no valid Wrap found

James
18 January 2016, 16:10
Why am I getting this error?

I have php5-cgi installed, and in cgi-wrapper.conf:
# CGI wrapper configuration
#
# Use the 'newroot' tool to copy applications to a chroot directory.

# CGIhandler = /path/to/cgi-handler
#
#CGIhandler = /usr/bin/perl
CGIhandler = /usr/bin/php-cgi
#CGIhandler = /usr/bin/python
#CGIhandler = /usr/bin/ruby
#CGIhandler = /usr/bin/ssi-cgi

# Wrap = <wrap-id>;<cgiroot>;<userid>[:<group>]
#
#Wrap = nobody ; /var/www|nobody ; 65534:65534
#Wrap = somebody ; /var/www/site ; 1001:33,200,201
#Wrap = hugo ; ~hugo ; hugo
Wrap = james ; ~james ; james


And in hiawatha.conf, I have "CGIhandler = /usr/bin/php-cgi:php" uncommented, and I have added the lines:
UseLocalConfig = yes
UserWebsites = yes
UserDirectory = Public
FollowSymlinks = yes
ExecuteCGI = yes
WrapCGI = yes

to the default binding.

But when I try to access a phpinfo.php test, I get a 500 error with "CGI-wrapper: no valid Wrap found" in error.log!
James
18 January 2016, 16:11
I am running Hiawatha v10.0 with fresh config files (other than the changes I listed)
James
18 January 2016, 16:17
Aha, figured it out. It should have been WrapUserCGI instead of WrapCGI.
Hugo Leisink
18 January 2016, 20:19
No problem.
This topic has been closed.