Try using this configuration: ./configure --enable-htmldir=/home/user/html/old/warez --enable-cgibindir=/var/www/cgi-bin --disable-ezmlmdir
You have your httpd.conf stanza set to make /var/www/cgi-bin as cgi enabled, so that's where you should put qmailadmin. Suexec isn't used for qmailadmin since it's a C program that on its own can make use of setuid and setgid bits. The error from your error_log is pretty succinct, you're trying to invoke a directory as a script. Make that change to your configure line, make, make install-strip and you should be good to go. HTH, Tren -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, October 12, 2008 10:07 PM To: [email protected] Subject: [qmailadmin] attempt to invoke directory as script Login page comes up fine... hxxp://myurl.com/cgi-bin/qmailadmin/qmailadmin After login: 403 page ------------------------------------------------------------------------ ------------ Log entries by apache: _______________________________________________________________ access_log: "GET /cgi-bin/qmailadmin/qmailadmin HTTP/1.1" 200 5329 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3" "POST /cgi-bin/qmailadmin HTTP/1.1" 301 247 "hxxp://myurl.com/cgi-bin/qmailadmin/qmailadmin" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3" "GET /cgi-bin/qmailadmin/ HTTP/1.1" 403 221 "hxxp://myurl.com/cgi-bin/qmailadmin/qmailadmin" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3" _______________________________________________________________ error_log: (only comes up after posting login form @ hxxp://myurl.com/cgi-bin/qmailadmin/qmailadmin) [Mon Oct 13 00:30:14 2008] [error] [client 68.197.40.20] attempt to invoke directory as script: /var/www/cgi-bin/qmailadmin/, referer: hxxp://myurl.com/cgi-bin/qmailadmin/qmailadmin ------------------------------------------------------------------------ ------------ Used configure options: (As root) ./configure --enable-htmldir=/home/user/html/old/warez --enable-cgibindir=/var/www/cgi-bin/qmailadmin --disable-ezmlmdir ------------------------------------------------------------------------ ------------ Make steps: (As root) make && make install-strip ------------------------------------------------------------------------ ------------ Perms: ls -lsah /var/www/cgi-bin/qmailadmin/ 4.0K drwxr-xr-x 2 root root 4.0K 2008-10-13 00:35 . 8.0K drwxr-xr-x 4 root root 4.0K 2008-10-13 00:35 .. 140K -rwsr-sr-x 1 vpopmail vchkpw 133K 2008-10-13 00:35 qmailadmin ------------------------------------------------------------------------ ------------ some httpd.conf entries: ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" <Directory "/var/www/cgi-bin"> AllowOverride All Options All ExecCGI Order allow,deny Allow from all </Directory> AddHandler cgi-script .cgi qmailadmin ------------------------------------------------------------------------ ------------ Additional info: Server version: Apache/2.2.8 (Unix) Server loaded: APR 1.2.8, APR-Util 1.2.10 Compiled using: APR 1.2.8, APR-Util 1.2.10 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/etc/httpd" -D SUEXEC_BIN="/usr/sbin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="logs/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" ------------------------------------------------------------------------ ------------ More additional Info: root 12473 0.0 0.2 67956 11432 ? Ss Oct12 0:00 /usr/sbin/httpd apache 12475 0.1 0.2 68152 9328 ? S Oct12 0:02 /usr/sbin/httpd apache 12476 0.1 0.2 68964 10016 ? S Oct12 0:03 /usr/sbin/httpd apache 12477 0.1 0.2 70472 11156 ? S Oct12 0:03 /usr/sbin/httpd apache 12478 0.0 0.2 68968 10180 ? S Oct12 0:02 /usr/sbin/httpd apache 12479 0.0 0.2 68448 10068 ? S Oct12 0:02 /usr/sbin/httpd apache 12480 0.1 0.2 68128 9460 ? D Oct12 0:03 /usr/sbin/httpd 3 hours in and can't get, what seems like simple install, to work correctly. Searched the hell out of it and I'm leaning toward suEXEC issues. However, I do not seem to have suEXEC logs anywhere, due to the nature of the binary(RPM) install of httpd-2.2.8-1.fc7. What would you have me do? to diagnose or correct issue? /me uses caps out of desperation::::::::>PLEASE HELP! !DSPAM:48f2da1332311523137957!
