From: Richard T. <Ric...@rp...> - 2001-03-23 15:11:07
|
---Rik Thomas wrote:--- What problem are you specifically having? Are you getting an error 500, or are you seeing the text of the cgi on your browser? --- --- Rik, and anyone else, I have added a backslash to the end of my 'ScriptAlias' file and am now getting the following error when I try to access the web page: ---------------------------- Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. blah blah... ---------------------------- When I check my error_log file... it shows me this: ---------------------------- [Fri Mar 23 09:45:43 2001] [error] (2)No such file or directory: exec of /usr/local/apache/htdocs/mydomain.com/cgi-bin/hello.cgi failed [Fri Mar 23 09:45:43 2001] [error] [client 1xx.2x.x8.xxx] Premature end of script headers: /usr/local/apache/htdocs/mydomain.com/cgi-bin/hello.cgi ---------------------------- Also, here is a snipplet of my httpd.conf file: ---------------------------- ScriptAlias /cgi-bin/ "/usr/local/apache/htdocs/mydomain.com/cgi-bin/" <Directory "/usr/local/apache/htdocs/mydomain.com/cgi-bin"> AllowOverride None Options ExecCGI SetHandler cgi-script Order allow,deny Allow from all </Directory> ---------------------------- found this too: ---------------------------- <Files ~ "\.(cgi|shtml)$"> SSLOptions +StdEnvVars </Files> <Directory "/usr/local/apache/htdocs/mydomain.com/cgi-bin"> SSLOptions +StdEnvVars </Directory> ---------------------------- Can anyone see why I am still unable to get cgi scripts to work on my Apache webserver? Many Thanks in advance for the help! -Rich --------------------------------------- PGP FingerPrint: BA3A 4D29 F3CF 172A D90B 05AA 6C1E 65BC C19F F6F1 -----Original Message----- From: Rik Thomas [mailto:ri...@de...] Sent: Thursday, March 22, 2001 10:47 AM To: web...@li... Subject: Re: can Webmin enable CGI in Apache... |
From: Messervy, J. M <JMesservy@Z-TEL.com> - 2001-03-23 17:36:00
|
You may also want to check and see if there are any errors in the cgi itself. try typing "perl -cw hello.cgi" at the command line. -----Original Message----- From: Robert Brandtjen [mailto:ro...@pr...] Sent: Friday, March 23, 2001 12:07 PM To: web...@li... Subject: Re: can Webmin enable CGI in Apache - getting closer! on 3/23/01 8:52 AM, Richard Tricoche at Ric...@rp... wrote: > Can anyone see why I am still unable to get cgi scripts to work on my Apache > webserver? > > Many Thanks in advance for the help! > Have you taken the time to check the permissions on the scripts themselves ? :-) Rob - Forwarded by the Webmin mailing list at web...@we... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
From: Richard T. <Ric...@rp...> - 2001-03-23 18:03:38
|
---rob wrote--- Have you taken the time to check the permissions on the scripts themselves ? :-) Rob --- --- Yes, I have even given the script '777' permissions. Would permissions have generated an error such as: ----------------------- Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, ri...@my... and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ----------------------- ??? -Rich |
From: Robert B. <ro...@pr...> - 2001-03-23 19:31:04
|
on 3/23/01 11:45 AM, Richard Tricoche at Ric...@rp... wrote: > Yes, I have even given the script '777' permissions. > Would permissions have generated an error such as: > > ----------------------- > Internal Server Error > The server encountered an internal error or misconfiguration and was unable > to complete your request. > Please contact the server administrator, ri...@my... and inform them > of the time the error occurred, and anything you might have done that may > have caused the error. Sometimes, yes, error numbers 500 or so. Open a shell window and type: less +F /path/to/apache/errors/log and then hit the site and see what it says, if you are getting a 200 in the apache access log but an error in the errors log, it is a script configuration problem. If it is an error in the access log as well as error log it will be a permissions problem. Assuming you have set the virtual host container in httpd.conf to something like this: ScriptAlias /cgi-bin/ /path/to/host/cgi-bin/ Rob |
From: Richard T. <Ric...@rp...> - 2001-03-23 18:08:13
|
---joe m. wrote--- You may also want to check and see if there are any errors in the cgi itself. try typing "perl -cw hello.cgi" at the command line. --- --- here is what I got: ----------------------- [root@c3po cgi-bin]# ls -l hello.cgi -rwxrwxrwx 1 user user 231 Mar 18 20:14 hello.cgi [root@c3po cgi-bin]# perl -cw hello.cgi hello.cgi syntax OK ----------------------- this cgi stuff seams to be becoming a nightmare. =-( Thanks, Rich -----Original Message----- From: Robert Brandtjen [mailto:ro...@pr...] Sent: Friday, March 23, 2001 12:07 PM To: web...@li... Subject: Re: can Webmin enable CGI in Apache - getting closer! on 3/23/01 8:52 AM, Richard Tricoche at Ric...@rp... wrote: > Can anyone see why I am still unable to get cgi scripts to work on my Apache > webserver? > > Many Thanks in advance for the help! > Have you taken the time to check the permissions on the scripts themselves ? :-) Rob - Forwarded by the Webmin mailing list at web...@we... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list - Forwarded by the Webmin mailing list at web...@we... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
From: Messervy, J. M <JMesservy@Z-TEL.com> - 2001-03-23 19:18:53
|
Hello, Just a couple other thoughts.... Does your script call anything like sendmail? Is the path set correctly? Is the path to perl set correctly? Are permissions to the directory that your script is in set correct? -----Original Message----- From: Ken Whitcomb [mailto:ke...@im...] Sent: Friday, March 23, 2001 1:35 PM To: web...@li... Subject: Re: can Webmin enable CGI in Apache - getting closer! Richard, At the risk of repeating someone else's suggestion, did you upload your perl file as "text"? I've made this blunder before. ken Whitcomb - Forwarded by the Webmin mailing list at web...@we... To remove yourself from this list, go to http://lists.sourceforge.net/lists/listinfo/webadmin-list |
From: Robert B. <ro...@pr...> - 2001-03-23 17:07:46
|
on 3/23/01 8:52 AM, Richard Tricoche at Ric...@rp... wrote: > Can anyone see why I am still unable to get cgi scripts to work on my Apache > webserver? > > Many Thanks in advance for the help! > Have you taken the time to check the permissions on the scripts themselves ? :-) Rob |
From: Joakim S. <jo...@as...> - 2001-03-23 17:53:06
|
Ok I havn't seen any talk or ask about it and it's not to underestimate y= ou, but I have seen so many doing those classics... Have you chmod:ed your scripts and made sure to upload them in ASCII? Sometimes it's the obvious and easy that is so hard to see, just because = we takes it for granted. If you ever get to the point to have the scripts execute, here are a great to for debuging and error tracking in cgi scrip= ts: http://***.craigrichards.com/software/ I'm not associated with this guy in any way, but this tool, AdminPro have saved me soooo much headache with cgi scripts, especially when you get a 500. Good luck Joakim > -----Ursprungligt meddelande----- > Fr=E5n: web...@li... > [mailto:web...@li...]F=F6r Richard Tricoch= e > Skickat: den 23 mars 2001 15:53 > Till: 'web...@li...' > =C4mne: RE: can Webmin enable CGI in Apache - getting closer! > > > ---Rik Thomas wrote:--- > What problem are you specifically having? Are you getting an > error 500, or > are you seeing the text of the cgi on your browser? > --- --- > > Rik, and anyone else, > > I have added a backslash to the end of my 'ScriptAlias' file and am now > getting the following error when I try to access the web page: > > ---------------------------- > Internal Server Error > The server encountered an internal error or misconfiguration and > was unable > to complete your request. blah blah... > ---------------------------- > > When I check my error_log file... it shows me this: > > ---------------------------- > [Fri Mar 23 09:45:43 2001] [error] (2)No such file or directory: exec o= f > /usr/local/apache/htdocs/mydomain.com/cgi-bin/hello.cgi failed > [Fri Mar 23 09:45:43 2001] [error] [client 1xx.2x.x8.xxx] Premature end= of > script headers: /usr/local/apache/htdocs/mydomain.com/cgi-bin/hello.cgi > ---------------------------- > > Also, here is a snipplet of my httpd.conf file: > > ---------------------------- > ScriptAlias /cgi-bin/ "/usr/local/apache/htdocs/mydomain.com/cgi-bin/" > > <Directory "/usr/local/apache/htdocs/mydomain.com/cgi-bin"> > AllowOverride None > Options ExecCGI > SetHandler cgi-script > Order allow,deny > Allow from all > </Directory> > ---------------------------- > > found this too: > > ---------------------------- > <Files ~ "\.(cgi|shtml)$"> > SSLOptions +StdEnvVars > </Files> > <Directory "/usr/local/apache/htdocs/mydomain.com/cgi-bin"> > SSLOptions +StdEnvVars > </Directory> > ---------------------------- > > Can anyone see why I am still unable to get cgi scripts to work > on my Apache > webserver? > > Many Thanks in advance for the help! > > > > -Rich > --------------------------------------- > PGP FingerPrint: BA3A 4D29 F3CF 172A D90B 05AA 6C1E 65BC C19F F6F1 > > > -----Original Message----- > From: Rik Thomas [mailto:ri...@de...] > Sent: Thursday, March 22, 2001 10:47 AM > To: web...@li... > Subject: Re: can Webmin enable CGI in Apache... > > > - > Forwarded by the Webmin mailing list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > |
From: Ken W. <ke...@im...> - 2001-03-23 18:35:53
|
Richard, At the risk of repeating someone else's suggestion, did you upload your perl file as "text"? I've made this blunder before. ken Whitcomb |
From: N6REJ <n6...@tc...> - 2001-03-29 18:19:28
|
I had this same thing occur and the only way around it for me was to turn on the .cgi function and then rename them to .cgi I don't understand why, but then I'm still a newbie. Troy n6...@tc... "I do not understand what I do, for what I want to do I do not do but what I hate I do" Rom 7:15 NIV ----- Original Message ----- From: "Ken Whitcomb" <ke...@im...> To: <web...@li...> Sent: Friday, March 23, 2001 10:35 Subject: Re: can Webmin enable CGI in Apache - getting closer! > Richard, > > At the risk of repeating someone else's suggestion, did you upload your > perl file as "text"? > > I've made this blunder before. > > ken Whitcomb > > > - > Forwarded by the Webmin mailing list at web...@we... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.236 / Virus Database: 114 - Release Date: 03/05/01 |
From: Adrian T S. <val...@va...> - 2001-03-24 02:11:44
|
All I can add to the others is: remove the quotes from the directory string, it seems that _sometimes_ Apache doesn't like this. You should have a cgi which came with the distribution called printenv, use this to test, it does nothing more than print out the cgi environment, so you don't have to worry about other things. Adrian |