LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-20-2004, 01:13 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
CGI File Not Executing on Apache Server


I recently replaced the existing index.html.en file with a newer one on an Apache 1.3.31 server. The problem is whenever I click on a link that is supposed to execute a CGI file, all I get is the source code appearing onscreen. I compared the lines referencing the cgi file between the original and the newer file and there does not appear to be any difference. I also restarted the server without any change. What else should I look for? Thanks.
 
Old 10-21-2004, 12:27 AM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
AddHandler cgi-script .cgi

and in
<directory /some/dir/with/cgis>
Options ExecCGI
</directory>

^free-handed, not sure syntactically accurate... but you should get the point.

b-t-w, in case you didn't notice, these go in your httpd.conf file...
[edit] and apache needs a restart after changes are committed [/edit]

Last edited by secesh; 10-21-2004 at 12:29 AM.
 
Old 10-21-2004, 07:12 AM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
CGI File Not Executing on Apache Server

Hi there --

I verified the settings that you mentioned in your e-mail were present in httpd.conf and for good measure I also restarted Apache. The problem did not go away so that led me to believe the problem was with the html page that referenced the cgi file in question. I checked
through the code and I discovered the line that referenced the cgi script had the following syntax at the end: </a> </div></th> This was compared to other lines that had the following syntax: </a></div></th> The presence of the space between the first and second end prompts appears to have caused the problem. Once that was removed and the server restarted, the cgi script executed normally. Thanks for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing an ELF 32 bit on an Apache server running Linux chrisrock79 Linux - Software 12 10-13-2005 01:12 PM
executing script via webpage through apache server feetyouwell Linux - Software 7 02-08-2004 03:23 PM
apache displays .cgi file instead of executing it hewsonism Linux - Software 2 01-13-2004 09:12 PM
Executing a program on server using CGi/PERl ?! avios Red Hat 1 12-29-2003 02:34 AM
Apache server and cgi-bin? WorldBuilder Linux - Networking 15 09-18-2003 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration