[cgiwrap-users] CGIWrap - Installation Issues
Brought to you by:
nneul
From: shimi <sh...@fr...> - 2002-02-24 19:11:17
|
Hello List, I am writing to you after digging in the mailing list archive, google, and god knows what with no luck of finding the same sympthom I have. First, I installed it normally: ./configure --with-httpd-user=apache --with-report-rusage --with-logging-file=/var/log/httpd/cgiwrap.log --with-install-dir=/usr/cgiwrap --with-perl=/usr/bin/perl --with-install-group=apache Installation goes fine. Running the program works. Now, I added in httpd.conf: AddHandler cgi-wrapper .cgi Action cgi-wrapper /usr/cgiwrap/cgiwrap (I copied that setup from a Cobalt RaQ3 box I own) This caused all calls to cgi scripts to return: 404 error: /usr/cgiwrap/cgiwrap/index.cgi does not exist. (remember, the request was for /, or, /index.cgi...) I have Apache 1.3.22 on RedHat Linux 7.2. Configuration came from RedHat, and the only modification I added was a vhost: <Directory "/home/sites/domain/www/"> AllowOverride None Options Indexes Order allow,deny Allow from all </Directory> <VirtualHost *> ServerAdmin webmaster@domain DocumentRoot /home/sites/domain/www/ ServerName www.domain ServerAlias domain ErrorLog /home/sites/domain/logs/error.log CustomLog /home/sites/domain/logs/web.log common AddHandler cgi-wrapper .cgi AddHandler cgi-wrapper .pl AddHandler server-parsed .shtml AddType text/html .shtml </VirtualHost> This resulted in what I said earlier. Looking in the error log found out that /usr/... is relevant to DocumentRoot from some reason. To bypass that behaviour I did the following: ScriptAlias /cgiwrap/ /usr/cgiwrap/ Action cgi-wrapper /cgiwrap/cgiwrap That worked, and CGIWrap is now launched. The problem is that it, from some reason, trying to find the owner of the file after the name of the file, instead of the owner. I.e. "Cannot find username 'index.cgi' in system's password file" (as if the user does not exist) Can you please help? Thanks. p.s. any other solution to run cgi's (and perhaps phps?) as the owner of them would be just fine for me, if you know one... - shimi. |