LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-02-2013, 04:44 AM   #1
zak100
Member
 
Registered: Jul 2009
Posts: 225

Rep: Reputation: 2
Directory for storing CGI scripts


Hi,
I am able to display the test page of APache HTTP server on Fedora but I cant find cgi-bin directory and httpd.conf file. Plz guide me where to store cgi programs based upon PERL:
Code:
[root@HP-UX603EE guest]# service httpd start
Starting httpd:                                            [  OK  ]
[root@HP-UX603EE guest]# 

[guest@HP-UX603EE sbin]$ whereis cgi
cgi:
[guest@HP-UX603EE sbin]$
and
Code:
[guest@HP-UX603EE sbin]$ ls httpd.*
httpd.event  httpd.worker
[guest@HP-UX603EE sbin]$ whereis httpd
httpd: /usr/sbin/httpd.worker /usr/sbin/httpd /usr/sbin/httpd.event /etc/httpd /usr/lib/httpd /usr/share/man/man8/httpd.8.gz
[guest@HP-UX603EE sbin]$
Kindly guide me in this regard.

Zulfi.

Last edited by zak100; 10-02-2013 at 04:45 AM.
 
Old 10-02-2013, 05:30 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,900

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Hi,

In a default apache installation, the cgi directory is /var/www/cgi-bin

Regards
 
Old 10-02-2013, 06:20 AM   #3
zak100
Member
 
Registered: Jul 2009
Posts: 225

Original Poster
Rep: Reputation: 2
Hi,
Thanks. I found the directory.

Code:
              

[guest@HP-UX646UU ~]$ cd /var
[guest@HP-UX646UU var]$ ls
account  cvs  empty  games  lib    lock  mail   nis  preserve  run    tmp  yp
cache    db   ftp    gdm    local  log   named  opt  racoon    spool  www
[guest@HP-UX646UU var]$ cd www
[guest@HP-UX646UU www]$ ls
cgi-bin  error  html  icons  manual  usage
[guest@HP-UX646UU www]$ cd cgi-bin
[guest@HP-UX646UU cgi-bin]$ ls
[guest@HP-UX646UU cgi-bin]$
Zulfi.
 
  


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
[SOLVED] shell scripts: storing result of a command into a variable newbiecolonopenparens Linux - Newbie 14 05-24-2012 07:08 PM
Cant seem to run any cgi scripts in cgi-bin folder, confused? j.smith1981 Linux - Server 5 02-14-2011 06:38 AM
Perl: Storing Cart-Like items in Mysql without CGI::Session zachet Programming 5 03-11-2010 12:29 PM
[SOLVED] Need help with CGI scripts for default directory path for website in Perl 5.8.8 chilali Programming 4 08-03-2009 07:30 AM
Storing password used in shell scripts in encrypted file Swakoo Linux - Security 2 12-06-2006 11:39 PM

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

All times are GMT -5. The time now is 03:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration