Thread: [cgiwrap-users] CGIWrap Error: Script dir not found
Brought to you by:
nneul
From: Brian L. <Bri...@su...> - 2002-03-28 18:45:54
|
CGIWrap users, I've been using an old version of CGI Wrap on an old Linux box with Apache for 5 years. Recently this box bit the dust and I've built a new box with Apache 1.3.24 and CGI Wrap 3.7.1. I've compiled the CGIWrap on Linux with GCC using the -with-httpd-user=nobody option since my Apache server is running as user:nobody, group:nobody (the default configuration). I'm running a number of websites on Apache using the name-based virtual host method. In my <Virtualhost> directive I've specified the following (this is how my old server was configured): ScriptAlias /cgi-bin/ /www/domainname.com/cgi-bin/cgiwrap/nobody/ When I try to run the printenv CGI script included with Apache in the /www/domainname.com/cgi-bin directory, I get the error, "CGIWrap Error: Script dir not found". The /www/domainname.com/cgi-bin directory is owner and group "nobody" with the drwxr-xr-x permissions. Is this enough information for someone to be able to tell me why I am receiving this error? Brian Lawrence IT/IS Manager Sufficient Systems, Inc. Direct: (612) 436-7152 Office: (612) 379-8168 Cell: (612) 280-1067 Fax: (612) 379-8132 E-Mail: bri...@su... |
From: Daniel N. <dr...@gm...> - 2002-08-04 11:44:15
|
Hi, Just do get sure: There is no need to have the script itself in a special directoy, is it? I get an: CGIWrap Error: Script dir not found The specified user does not have a script directory set up for execution of cgi scripts, or the directory permissions prevent cgiwrap from using that directory. Local Information and Documentation: Contact EMail: ro...@ph... Server Data: Server Administrator/Contact: webmaster@ phpmagic.de> Server Name: phpmagic.de Server Port: 80 Server Protocol: HTTP/1.1 Request Data: User Agent/Browser: Mozilla/4.0 (compatible; MSIE 5.0; Windows XP) Opera 6.04 [de] Request Method: GET Remote Address: 80.142.149.243 Remote Port: 3199 Extra Path Info: /k060881/test.php httpd.conf (k060881 is the user) <VirtualHost phpmagic.de> ServerName phpmagic.de ServerAlias phpmagic.de DocumentRoot /var/chroot/_nossh/k060881/htdocs/phpmagic.de ServerAdmin web...@ph...> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ AddHandler phpwrap .php3 AddHandler phpwrap .php AddHandler cgiwrap .cgi AddHandler cgiwrap .pl Action phpwrap /cgi-bin/cgiwrap/php-cgiwrap/k060881 Action cgiwrap /cgi-bin/cgiwrap/cgiwrap/k060881 </VirtualHost> I compiled cgiwrap with ./configure --with-check-shell --with-rlimit-core=0 --with-rlimit-cpu=30 \ --without-redirect-stderr --with-perl=/usr/bin/perl \ --with-httpd-user=www-data \ --with-install-dir=/usr/lib/cgi-bin \ --with-cgi-dir=htdocs \ --with-local-contact-email=ro...@ph... \ --with-php=/usr/bin/php \ --with-minimum-uid=1000 \ --with-minimum-gid=1000 \ --with-logging-file=/var/log/apache/cgiwrap.log the script has even: -rwxr-xr-x 1 k060881 ftpusers 39 Aug 3 14:41 test.php and the directory: drwxr-xr-x 4 k060881 ftpusers 4096 Aug 4 11:35 phpmagic.de |
From: Daniel L. <ml-...@lo...> - 2002-08-04 12:17:07
|
hi, > CGIWrap Error: Script dir not found First you have to understand how CGIWRAP builds the "script dir": CGIWRAP gets the home-directory, as specified in /etc/passwd and then adds whatever you specified with --with-cgi-dir. In your example the user's home directory therefore has to be "/var/chroot/_nossh/k060881/". Can you confirm this? Furthermore, you should try a "cgiwrapD" output and have a closer look at it. -daniel |
From: Daniel L. <ml-...@lo...> - 2002-08-04 12:19:03
|
hi, > --with-php=/usr/bin/php \ > -rwxr-xr-x 1 k060881 ftpusers 39 Aug 3 14:41 test.php I forgot to mention: The PHP-Patch for cgiwrap is *not* supported by the cgiwrap development team. You might want to check out first, whether an "ordinary" CGI-Script works or not. -daniel |
From: Justin D. <jui...@gm...> - 2007-06-26 20:20:52
|
Greetings, I am having problems getting my simple env.cgi scripts to run under cgiwrap-4.0/Solaris10/Apache-1.3.37. The scripts error out each time with the following message: CGIWrap Error: Script dir not found The specified user does not have a script directory set up for execution of cgi scripts, or the directory permissions prevent cgiwrap from using that directory. Server Data: Server Administrator/Contact: sy...@ne... Server Name: showcase.netins.net Server Port: 80 Server Protocol: HTTP/1.1 Virtual Host: showcase.netins.net Request Data: User Agent/Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 Request Method: GET Remote Host: pc10-094.netins.com Remote Address: 167.142.210.94 Remote Port: 4325 Extra Path Info: /web/called/cgi-bin/env.cgi Now I did specify the --with-cgi-dir= variable at the time of compilation, I assume that this is the "Script dir" that the error refers to. In addition, this directory does have the proper permissions for CGIWrap. Any ideas? -- Thanks in advance. -justin |
From: Jo R. <jr...@ne...> - 2007-07-02 20:30:22
|
On Jun 26, 2007, at 1:20 PM, Justin Davis wrote: > Now I did specify the --with-cgi-dir= variable at the time of > compilation, I assume that this is the "Script dir" that the error > refers to. In addition, this directory does have the proper > permissions for CGIWrap. Any ideas? Which are? Are they the right permissions for the http server, or the user? -- Jo Rhett Net Consonance : consonant endings by net philanthropy, open source and other randomness |