Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-19-2002, 07:26 AM   #1
LQ Newbie
Registered: Dec 2001
Posts: 8

Rep: Reputation: 0
Unhappy Cgi

I just install Apache web server with MySql and PHP in Red Hat Linux. When I downloaded and try to run a program that has CGI file, it does not run at all. What could be the error? How am I going to know whether my web server supports any CGI files or program.
Old 03-19-2002, 08:29 AM   #2
Senior Member
Registered: Oct 2000
Location: UK - Frome
Distribution: Ubuntu
Posts: 1,081

Rep: Reputation: 47
You have to configure apache through the /etc/httpd/httpd.conf file to run cgi scripts in different directories - although /var/www/cgi-bin will more than likely be set-up to run them to start with. Place the file in there.

To view the script, type in a browser:


Make sure that the file is set-up to execute to global permissions - i.e. try:

chmod 755 cgifilename.cgi

what was the error you received already? You can always take a look at the apache logs in /var/log/httpd for errors.


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
Perl CGI:Can't locate supermyself Programming 13 09-10-2007 07:22 AM
CGI to work out side of cgi-bin? crashedspine Linux - Newbie 13 09-02-2004 09:49 PM
apache v2.0.44 + cgi ; securing cgi-support in apache markus1982 Linux - General 0 01-20-2003 02:03 PM
about CGI... raymond Linux - General 2 11-16-2002 11:32 AM rverlander LQ Suggestions & Feedback 1 06-07-2002 08:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:19 AM.

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