LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 12:45 PM   #1
zak100
Member
 
Registered: Jul 2009
Posts: 262

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, 02:22 PM   #2
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 893

Rep: Reputation: 119Reputation: 119
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, 12:14 AM   #3
zak100
Member
 
Registered: Jul 2009
Posts: 262

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, 12:59 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 06:35 AM   #5
zak100
Member
 
Registered: Jul 2009
Posts: 262

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, 08:27 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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 08:29 PM.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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