LinuxQuestions.org
Review your favorite Linux distribution.
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 11-21-2003, 10:46 AM   #16
jacksmash
Member
 
Registered: Nov 2003
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 269

Original Poster
Rep: Reputation: 30

Ok, I'm at school right now. But when I get home I'll try it out and let you know.

Thanks
 
Old 11-21-2003, 02:15 PM   #17
jacksmash
Member
 
Registered: Nov 2003
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 269

Original Poster
Rep: Reputation: 30
here's the result when I use both of those commands:

httpd -v

Server version: Apache/2.0.40
Server built: Jul 31 2003 11:36:14
Server's Module Magic Number: 20020628:0
Architecture: 32-bit
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/etc/httpd"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

ps -aux | grep httpd

root 3118 0.0 0.1 3580 640 pts/0 S 14:24 0:00 grep httpd


I have no idea what any of this means!! (Except for the obvious)
 
Old 11-21-2003, 02:25 PM   #18
jacksmash
Member
 
Registered: Nov 2003
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 269

Original Poster
Rep: Reputation: 30
I got it working!! I just had to start it I guess, using httpd -X

I know that sounds stupid, but then I guess I'm stupid when it comes to this stuff!

Thanks for all the help!
 
Old 11-21-2003, 02:27 PM   #19
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Okay so your using 2.0.40 and the server is running from your output of the ps -aux | grep httpd


And looking over the doc's at http://httpd.apache.org/docs-2.0/howto/cgi.html

It appears your config file is correct thus far. The only thing I'm concerned with is your script which has /usr/local/bin/perl for the path of perl.

Try locating perl by doing:

locate perl

or

find /usr -name perl

And see what the exact location is.

Also lets make sure that your script is executable by doing the following:

chmod -R 755 /var/www/cgi-bin
or
chmod +x /var/www/cgi-bin/<name-of-script>
 
  


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
Configuring httpd.conf for CGI in Apache 2.x clinton Linux - Newbie 2 01-01-2005 02:13 AM
configuring cgi-bin in apache gtgoku Linux - General 1 01-19-2004 07:22 AM
Configuring Apache for CGI jacksmash Programming 3 11-20-2003 11:52 PM
configuring apache for cgi scripts ash_r_c Linux - Software 1 09-23-2003 05:03 PM
apache v2.0.44 + cgi ; securing cgi-support in apache markus1982 Linux - General 0 01-20-2003 02:03 PM


All times are GMT -5. The time now is 09:11 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