LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-11-2004, 04:47 AM   #1
steste
Member
 
Registered: Aug 2004
Location: N Ireland
Distribution: Ubuntu - well trying to!
Posts: 31

Rep: Reputation: 15
getting apache to show pages


sorry if this seems stupid bit i have installed apache on my machine as i want to test cgi scripts etc that i write. When i point the browser to my machine i get the apache test page which means its running ok. It says that i shuld replace this page. Where is it to replace? What im asking is where do i save my work to in prder for the server to show it? many thanks.
 
Old 08-11-2004, 05:01 AM   #2
allan_y
Member
 
Registered: May 2004
Location: Canberra
Distribution: Redhat 9
Posts: 32

Rep: Reputation: 15
Depending on which linux system you're running, the directory where you should place your cgi files should be in /var/www/

you should also make sure your httpd.conf file has the appropriate seetings for apache to serve cgi script

cheers
 
Old 08-11-2004, 05:06 AM   #3
steste
Member
 
Registered: Aug 2004
Location: N Ireland
Distribution: Ubuntu - well trying to!
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by allan_y
Depending on which linux system you're running, the directory where you should place your cgi files should be in /var/www/

you should also make sure your httpd.conf file has the appropriate seetings for apache to serve cgi script

cheers
As in the cgi-bin? Apparantly i dont have write access there?
 
Old 08-11-2004, 05:20 AM   #4
allan_y
Member
 
Registered: May 2004
Location: Canberra
Distribution: Redhat 9
Posts: 32

Rep: Reputation: 15
you'll need to run as root and have something similar to the following in your httpd.conf section 2:

<Directory "/var/www/your_directory_of_cgi_stuff">
Options ExecCGI
AllowOverride Limit
Order allow,deny
Allow from all
</Directory>

hope that works for ya
 
Old 08-11-2004, 05:34 AM   #5
steste
Member
 
Registered: Aug 2004
Location: N Ireland
Distribution: Ubuntu - well trying to!
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by allan_y
you'll need to run as root and have something similar to the following in your httpd.conf section 2:

<Directory "/var/www/your_directory_of_cgi_stuff">
Options ExecCGI
AllowOverride Limit
Order allow,deny
Allow from all
</Directory>

hope that works for ya
thank you for your help so far but it will not let me save any changes i make to httpd.conf and as far as i am awrae i am running as root
 
Old 08-11-2004, 06:50 AM   #6
steste
Member
 
Registered: Aug 2004
Location: N Ireland
Distribution: Ubuntu - well trying to!
Posts: 31

Original Poster
Rep: Reputation: 15
have changed the file and nave saved my little cgi file in cgi-bin but it wont run. the browser just shows the code.
 
Old 08-11-2004, 07:58 AM   #7
proudclod
Member
 
Registered: May 2004
Distribution: Fedora Core 2
Posts: 381

Rep: Reputation: 30
chmod the file to 755.
Either that or you have to set up apache to process files that are .cgi as cgi files.

Do you have perl installed?
 
Old 08-11-2004, 08:23 AM   #8
steste
Member
 
Registered: Aug 2004
Location: N Ireland
Distribution: Ubuntu - well trying to!
Posts: 31

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by proudclod

Either that or you have to set up apache to process files that are .cgi as cgi files.
how would i go about doing that?

Quote:
Originally posted by proudclod

Do you have perl installed?
Nope - using python.
 
  


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
Apache not serving pages bcf2 Linux - Software 1 11-22-2005 04:46 AM
I'm looking for a GNOME program to show man pages cccc Debian 1 07-17-2005 04:17 AM
apache won't serve pages gvaught Linux - Networking 6 12-08-2004 10:37 PM
Apache Error Pages majeztik Linux - Software 2 10-03-2004 08:20 PM
man pages show backquotes as "u" with umlaut? brainclots Red Hat 1 12-02-2003 12:26 AM


All times are GMT -5. The time now is 04:08 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration