LinuxQuestions.org
Help answer threads with 0 replies.
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 10-02-2013, 03:44 AM   #1
zak100
Member
 
Registered: Jul 2009
Posts: 262

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 03:45 AM.
 
Old 10-02-2013, 04:30 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,170
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Hi,

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

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

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



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

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

All times are GMT -5. The time now is 11:14 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
Open Source Consulting | Domain Registration