LinuxQuestions.org
Register a domain and help support LQ
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 09-26-2013, 01:45 PM   #1
zak100
Member
 
Registered: Jul 2009
Posts: 225

Rep: Reputation: 2
CGI-Perl using httpd


Hi,
I tried to search :
Code:
whereis Apache
but it didn't show me anything. However, I have found httpd on my system which is http daemon (I got this information from web) and can be used in place of Apache for CGI scripting. However I don't find any details as to how I can run my cgi scripts using httpd. Can somebody guide me how I have to configure my httpd to run my CGI scripts?

Zulfi.
 
Old 09-26-2013, 03:22 PM   #2
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 874

Rep: Reputation: 113Reputation: 113
Okay you just threw a question nobody can really answer. Its like saying go by me a tool to go fix my car with out knowing what tool to buy. You get me.

What is your distro?

You say httpd daemon, so I'm going to assume you might be using RHET based distro (such as CentOS). httpd is the init script developed by rhet which runs apache web server.

This link will help you configure apache to run cgi perl scripts. http://httpd.apache.org/docs/2.4/howto/cgi.html How ever I do want you to know if you don't understand what httpd is then you need to do more reading before you just starting runing cgi scripts on your server. You need to understand the security risk involved. A misconfigured webserver can actually give a attacker root access to your server.

But I'll be glad to help. Please tell what Linux distro your using and I'll direct you to some good to read info. But the main thing is you need to read all apache documentation at http://httpd.apache.org and http://www.centos.org/docs/5/html/De.../ch-httpd.html
 
Old 09-27-2013, 01:14 AM   #3
zak100
Member
 
Registered: Jul 2009
Posts: 225

Original Poster
Rep: Reputation: 2
Hi,
I have Fedora 10. We cant update because PCs are old. I am not sure still that this httpd is same or different from Apache server?? I would read your document and do accordingly on Monday or as early as possible. Kindly guide me about the difference between httpd and apache b/c if its different i have to ask for apache server installation.

Zulfi.
 
Old 09-27-2013, 01:59 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
There are many http daemons; Apache is just one (and the most common).
Its extremely likely that Apache is what you have.
Do
Code:
rpm -qa|grep -i httpd
and match the version num against the the Apache site https://httpd.apache.org/
Se also https://wiki.apache.org/httpd/Distro...CentOS.2C_RHEL
 
Old 09-30-2013, 07:35 AM   #5
zak100
Member
 
Registered: Jul 2009
Posts: 225

Original Poster
Rep: Reputation: 2
Hi,
I have executed the above command and i have got the following output:
Code:
[guest@HP-UX608YY ~]$ rpm -qa|grep -i httpd
httpd-manual-2.2.10-2.i386
httpd-tools-2.2.10-2.i386
system-config-httpd-1.4.4-2.fc10.noarch
httpd-2.2.10-2.i386
[guest@HP-UX608YY ~]$
Kindly guide me about this output. Does it tell me about apache server presence??
I saw Apache 2.2
Zulfi.
Zulfi.
 
Old 09-30-2013, 09:27 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Yes, that's what it means; you've got Apache 2.2.
Probably because its by far the most common (& oldest/original) httpd server, its often installed (at least on RH style systems) as 'httpd'.

BTW: you can update older HW with newer SW; its the reverse that can cause issues ie older SW might not have the drivers for old HW.
HTH

Last edited by chrism01; 09-30-2013 at 09:29 PM.
 
  


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
cgi scripts not working on the httpd server Roboserg Linux - Server 14 12-06-2012 07:20 AM
CGI script problem in httpd gamlis Linux - Newbie 3 08-11-2011 09:57 AM
problem with perl modules declaration and perl/cgi script shifter Programming 9 02-24-2010 10:09 AM
Perl CGI:Can't locate CGI.pm supermyself Programming 13 09-10-2007 07:22 AM
cgi perl : I cant get perl to append my html file... the_y_man Programming 3 03-22-2004 06:07 AM


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