LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2006, 11:30 PM   #1
minutes2memories
LQ Newbie
 
Registered: Feb 2006
Location: australia
Distribution: Fedora Core 6
Posts: 4

Rep: Reputation: 0
Question apache: using symbolic link to cgi-bin executable: how-to


hi there,

i have an admin system that allows my client to manage their web site database. i want to give them a nice easy url such as wubbleyou.xxxx.com/admin and so i tried:

1. i added a 'FollowSymLink" into the website root <directory> directive.
2. i added a symbolic link from website_root/admin/index.html to /cgi-bin/entry.pl (the entry page for the admin system).
3. i configured .htaccess to control access to entry.pl on the system.

so...if i go to wubbleyou.xxxx.com/cgi-bin/entry.pl i get the proper challenge from .htaccess and then upon entering password i get a proper exec version of my admin entry page (written in perl).

but...if i go to wubbleyou.xxxx.com/admin i get redirected but the perl file is just displayed (with some odd tabling for some reason) and not executed as though the ExecCGI directive isn't working.

what is the most efficient way of doing what i'm trying (unsuccessfully) to do?

many thanks,
andrewg.
 
Old 03-01-2006, 01:01 AM   #2
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
You have to let apache know to expect cgi in a given directory, either with ScriptAlias, or SuExec.
 
Old 03-01-2006, 01:13 AM   #3
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
instead of this symlink stuff, you could just put the script at website_root/admin/index.cgi, and then in the web server configuration for this directory do something like this:
* make sure the Options directive has enabled "ExecCGI"
* add the following line: "AddHandler cgi-script .cgi"
 
Old 03-01-2006, 12:23 PM   #4
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
Quote:
You have to let apache know to expect cgi in a given directory, either with ScriptAlias, or SuExec.
Oops, Spooon is correct, it's ExecCGI, not SuExec, sorry.
 
Old 03-02-2006, 02:05 AM   #5
minutes2memories
LQ Newbie
 
Registered: Feb 2006
Location: australia
Distribution: Fedora Core 6
Posts: 4

Original Poster
Rep: Reputation: 0
hi guys,

thanks for your posts. i was hoping to avoid doing that, but for now i've whacked the whole shebang into the admin folder and changed a few links (should have been relative anyway :-)).

i was kinda hoping just to get it going with a soft link or something but it will have to do for now.

thanks,
andrewg.
 
  


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
configuring cgi-bin in apache gtgoku Linux - General 1 01-19-2004 06:22 AM
Redhat 9 / Apache / cgi-bin ???? jeff0628 Linux - General 16 10-18-2003 06:50 AM
Apache cgi-bin in Mandrake 9.1 Edgemaster Linux - Newbie 1 08-14-2003 01:15 PM
.htaccess and cgi-bin (apache of course) finegan Linux - Software 4 05-01-2003 04:21 PM
apache cgi-bin roadie Linux - General 6 06-16-2001 07:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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