LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-13-2010, 02:10 PM   #1
bluegospel
Member
 
Registered: Jan 2010
Distribution: centOS
Posts: 404

Rep: Reputation: 53
newbie question--where's my cgi-bin?


Hi. I'm trying to setup slackware so I can at least test my perl scripts. Apache is running, but I'm not sure where to save my scripts. Here's what I have:

Code:
sh-3.1$ locate /cgi-bin
/var/www/cgi-bin
/var/www/cgi-bin/printenv
/var/www/cgi-bin/qtest
/var/www/cgi-bin/schedule_payment
/var/www/cgi-bin/htsearch
/var/www/cgi-bin/test-cgi
/usr/lib/cups/cgi-bin
/usr/lib/cups/cgi-bin/admin.cgi
/usr/lib/cups/cgi-bin/classes.cgi
/usr/lib/cups/cgi-bin/help.cgi
/usr/lib/cups/cgi-bin/jobs.cgi
/usr/lib/cups/cgi-bin/printers.cgi
sh-3.1$
I tried saving to /var/www/cgi-bin but I can't write there, even though I belong to the owner group and that group has write permission.

Am I totally in the outfield?
 
Old 07-13-2010, 04:29 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
The apache cgi directory is in fact /var/www/cgi-bin
You must be root in order write in that directory. And don't forget to set the execute bit in your scripts

Regards
 
  


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-bin question brokenpromises Linux - Server 1 09-18-2007 09:07 AM
cgi-bin security question greyhammer Linux - Security 0 08-03-2005 03:24 PM
Apache Newbie cgi-bin question Jukas Linux - Newbie 2 04-28-2005 12:32 PM
cgi-bin Question kemplej Linux - Networking 2 11-23-2004 09:54 AM
Question on virtual hosts and CGI-BIN directory cgchris99 Linux - General 9 10-11-2002 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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