Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th May 2008, 09:14
onastvar onastvar is offline
Senior Member
 
Join Date: Apr 2008
Location: U.S.A.
Posts: 197
Thanks: 61
Thanked 12 Times in 12 Posts
Exclamation CGI Script problem

I use formmail.pl cgi script for web contact form. When I click on submit I get a blank page with following URL

mydomain.com/cgi-bin/formmail.pl?recipient=info%40mydomain.com&subject= Web+Contact&redirect=http%3A%2F%2Fwww.mydomain.com %2Fthanks.html&Name=Your+Name&E-mail=Your+Email&textarea=kjk%0D%0A

I'm running CentOS 5.1 with ISPConfig - I enabled CGI Script option in ISPConfig

Please assist.
Thank You!
Reply With Quote
Sponsored Links
  #2  
Old 5th May 2008, 19:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Are there any errors in Apache's error log?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 8th May 2008, 04:02
onastvar onastvar is offline
Senior Member
 
Join Date: Apr 2008
Location: U.S.A.
Posts: 197
Thanks: 61
Thanked 12 Times in 12 Posts
Default CGI Script problem - apache error log

Falko, Thanks for your reply!
I don't see any errors (I'm pasting my apache error_log) I appologize - log is kind of long

Thanks
onastvar

Code:
//etc/http/logs/error_log

[Sun May 04 04:02:25 2008] [notice] Digest: generating secret for digest authentication ...
[Sun May 04 04:02:25 2008] [notice] Digest: done
[Sun May 04 04:02:25 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sun May 04 04:02:26 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Mon May 05 19:47:18 2008] [notice] SIGHUP received.  Attempting to restart
[Mon May 05 19:47:18 2008] [notice] Digest: generating secret for digest authentication ...
[Mon May 05 19:47:18 2008] [notice] Digest: done
[Mon May 05 19:47:18 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Mon May 05 19:47:19 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Mon May 05 19:48:30 2008] [notice] SIGHUP received.  Attempting to restart
[Mon May 05 19:48:30 2008] [notice] Digest: generating secret for digest authentication ...
[Mon May 05 19:48:30 2008] [notice] Digest: done
[Mon May 05 19:48:30 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Mon May 05 19:48:30 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Mon May 05 19:49:00 2008] [notice] SIGHUP received.  Attempting to restart
[Mon May 05 19:49:00 2008] [notice] Digest: generating secret for digest authentication ...
[Mon May 05 19:49:00 2008] [notice] Digest: done
[Mon May 05 19:49:00 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Mon May 05 19:49:00 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Mon May 05 19:49:33 2008] [notice] SIGHUP received.  Attempting to restart
[Mon May 05 19:49:33 2008] [notice] Digest: generating secret for digest authentication ...
[Mon May 05 19:49:33 2008] [notice] Digest: done
[Mon May 05 19:49:33 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Mon May 05 19:49:33 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Mon May 05 20:06:29 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/favicon.ico
[Mon May 05 20:08:38 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/web4
[Mon May 05 20:08:45 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/var
[Mon May 05 20:08:50 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/www
[Mon May 05 20:09:08 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/www
[Mon May 05 20:09:12 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/var
[Mon May 05 20:09:58 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/var
[Mon May 05 20:13:12 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/home
[Mon May 05 20:13:15 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/home
[Mon May 05 20:13:40 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/home
[Mon May 05 20:13:45 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/home
[Mon May 05 20:31:34 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/var
[Mon May 05 20:31:57 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/var
[Mon May 05 20:32:00 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/var
[Mon May 05 20:32:04 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/var
[Mon May 05 20:32:08 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/var
[Mon May 05 20:43:05 2008] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/
[Mon May 05 20:43:06 2008] [error] [client 127.0.0.1] File does not exist: /var/www/html/favicon.ico
[Mon May 05 20:49:58 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/home
[Mon May 05 20:50:03 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/home
[Mon May 05 20:50:05 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/home
[Mon May 05 20:50:11 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/home
[Mon May 05 20:50:15 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/home
[Mon May 05 20:55:56 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/home
[Mon May 05 20:56:05 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/home
[Mon May 05 20:56:10 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/www
[Mon May 05 20:56:15 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/www
[Mon May 05 20:56:33 2008] [error] [client 10.1.10.54] File does not exist: /var/www/sharedip/home
[Mon May 05 22:55:45 2008] [notice] SIGHUP received.  Attempting to restart
[Mon May 05 22:55:45 2008] [notice] Digest: generating secret for digest authentication ...
[Mon May 05 22:55:45 2008] [notice] Digest: done
[Mon May 05 22:55:45 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Mon May 05 22:55:45 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue May 06 02:21:00 2008] [notice] caught SIGTERM, shutting down
[Tue May 06 02:21:00 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 06 02:21:01 2008] [notice] Digest: generating secret for digest authentication ...
[Tue May 06 02:21:01 2008] [notice] Digest: done
[Tue May 06 02:21:01 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue May 06 02:21:01 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue May 06 02:34:58 2008] [notice] caught SIGTERM, shutting down
[Tue May 06 02:35:00 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 06 02:35:00 2008] [notice] Digest: generating secret for digest authentication ...
[Tue May 06 02:35:00 2008] [notice] Digest: done
[Tue May 06 02:35:00 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue May 06 02:35:00 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue May 06 09:17:14 2008] [notice] caught SIGTERM, shutting down
[Tue May 06 09:17:15 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 06 09:17:16 2008] [notice] Digest: generating secret for digest authentication ...
[Tue May 06 09:17:16 2008] [notice] Digest: done
[Tue May 06 09:17:16 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue May 06 09:17:17 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue May 06 09:22:22 2008] [notice] caught SIGTERM, shutting down
[Tue May 06 09:22:23 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 06 09:22:24 2008] [notice] Digest: generating secret for digest authentication ...
[Tue May 06 09:22:24 2008] [notice] Digest: done
[Tue May 06 09:22:24 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue May 06 09:22:24 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue May 06 09:26:12 2008] [notice] caught SIGTERM, shutting down
[Tue May 06 09:26:12 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 06 09:26:13 2008] [notice] Digest: generating secret for digest authentication ...
[Tue May 06 09:26:13 2008] [notice] Digest: done
[Tue May 06 09:26:13 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue May 06 09:26:13 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue May 06 15:16:15 2008] [notice] caught SIGTERM, shutting down
[Tue May 06 15:16:16 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue May 06 15:16:17 2008] [notice] Digest: generating secret for digest authentication ...
[Tue May 06 15:16:17 2008] [notice] Digest: done
[Tue May 06 15:16:17 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue May 06 15:16:17 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Tue May 06 18:55:09 2008] [notice] SIGHUP received.  Attempting to restart
[Tue May 06 18:55:09 2008] [notice] Digest: generating secret for digest authentication ...
[Tue May 06 18:55:09 2008] [notice] Digest: done
[Tue May 06 18:55:09 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Tue May 06 18:55:09 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed May 07 01:16:16 2008] [notice] caught SIGTERM, shutting down
[Wed May 07 01:16:18 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed May 07 01:16:18 2008] [notice] Digest: generating secret for digest authentication ...
[Wed May 07 01:16:18 2008] [notice] Digest: done
[Wed May 07 01:16:18 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed May 07 01:16:19 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations

Last edited by onastvar; 12th May 2008 at 18:48. Reason: wrap code
Reply With Quote
  #4  
Old 8th May 2008, 22:54
catdude catdude is offline
Senior Member
 
Join Date: Jun 2007
Posts: 178
Thanks: 1
Thanked 12 Times in 11 Posts
Default

What does the access log show for the HTTP return code for access to that page?
Reply With Quote
  #5  
Old 11th May 2008, 10:13
onastvar onastvar is offline
Senior Member
 
Join Date: Apr 2008
Location: U.S.A.
Posts: 197
Thanks: 61
Thanked 12 Times in 12 Posts
Default CGI Script (error log)

Thanks!
I'm getting the following in my error log, any idea why and how could I fix it?

suexec policy violation: see suexec log for more details, referer: http://www.mydomain.com/contact.html

Premature end of script headers: feedback.pl, referer: http://www.mydomain.com/contact.html
Reply With Quote
  #6  
Old 12th May 2008, 16:05
catdude catdude is offline
Senior Member
 
Join Date: Jun 2007
Posts: 178
Thanks: 1
Thanked 12 Times in 11 Posts
Default

What is in your suexec.log file?

What happens when you try to run feedback.pl from the command line?
Reply With Quote
  #7  
Old 25th May 2008, 14:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

Are you using suExec? Can you post the vhost configuration of that web site? To what owner and group does the formail.pl script belong?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 25th May 2008, 20:08
onastvar onastvar is offline
Senior Member
 
Join Date: Apr 2008
Location: U.S.A.
Posts: 197
Thanks: 61
Thanked 12 Times in 12 Posts
Default

This is the /etc/httpd/conf/vhosts/Vhosts_ispconfig.com for that website



Code:
######################################
# Vhost: www.domain.com:80
######################################
#
#
<VirtualHost xx.xxx.xxx.xx:80>
SuexecUserGroup web6_domain web6
ServerName www.domain.com:80
ServerAdmin webmaster@domain.com
DocumentRoot /var/www/web6/web
ServerAlias webmail.domain.com domain.com
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
Alias  /cgi-bin/ /var/www/web6/cgi-bin/
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
ErrorLog /var/www/web6/log/error.log
AddType application/x-httpd-php .php .php3 .php4 .php5
<Directory /var/www/web6/web>
  suPHP_Engine on
  suPHP_UserGroup web6_admin web6
  AddHandler x-httpd-php .php .php3 .php4 .php5
  suPHP_AddHandler x-httpd-php
</Directory>
Alias /error/ "/var/www/web6/web/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
RewriteEngine on
RewriteCond %{HTTP_HOST}   ^webmail\.domain\.com [NC]
RewriteRule ^/(.*)         http://www.domain.com:81/roundcubemail/$1 [L,R]
</VirtualHost>
#
Reply With Quote
  #9  
Old 26th May 2008, 16:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,749 Times in 2,579 Posts
Default

What's the output of
Code:
ls -la /var/www/web6/cgi-bin
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 26th May 2008, 20:54
onastvar onastvar is offline
Senior Member
 
Join Date: Apr 2008
Location: U.S.A.
Posts: 197
Thanks: 61
Thanked 12 Times in 12 Posts
Default

output of
Code:
ls -la /var/www/web6/cgi-bin
is


total 72
drwxr-xr-x 2 web6_admin web6 4096 May 24 10:30 .
drwxr-xr-x 8 web6_admin web6 4096 May 25 12:05 ..
-rw-r--r-- 1 root web6 0 Apr 30 23:11 .csc
-rwxrwxr-x 1 root root 29200 May 22 19:57 formmail.pl
-r-------- 1 root root 0 Apr 30 23:11 .no_delete


Thanks Falko

Last edited by onastvar; 26th May 2008 at 20:54. Reason: correction
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
Autoresponder installation problem cgi script won't run MikeM Installation/Configuration 8 14th September 2007 18:52
Windows PHP script problem richj1232003 Programming/Scripts 1 2nd November 2006 10:01
Perl and cgi script installation linuxuser1 General 30 27th April 2006 00:09
Internal Server Error 500 cgi script mphayesuk General 6 8th February 2006 23:53


All times are GMT +2. The time now is 04:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.