LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 02-27-2004, 09:28 AM   #1
samwong
LQ Newbie
 
Registered: Feb 2004
Location: Hong Kong
Posts: 4

Rep: Reputation: 0
Unhappy Allow user to run their own cgi script


My system is RedHat 7.3 with Apache 1.3.xxx.

MY problem is:
I can run cgi script if it is inside the root cgi-bin (ie. /var/www/cgi-bin). However, if the same scipt save inside user's cgi-bin, it does not work anymore (statis html for users is okay) and return 'Internal Server Error'.

I've read a lot of faq/help and some if them are saying that the suexec user permission is wrong. Is that true? How can I recompile the suexec? Or other good method without re-compile the Apache and/or suexec?

Many thanks!

note: I've already included the followings in the httpd.conf:

<Directory /home/*/public_html/cgi-bin>
AddHandler cgi-script cgi pl
Options +ExecCGI -Includes -Indexes
</Directory>

Sam
 
Old 02-27-2004, 10:34 AM   #2
patpawlowski
Member
 
Registered: Mar 2003
Location: Centreville, Virginia
Distribution: Mandrak, Red Hat
Posts: 163

Rep: Reputation: 30
Is it a permissions problem? Are you copying the file as root and then trying to run it as a regular user? You can check the permissions on the file with ls -l

Post back if you need more iformation about setting permissions etc. I might be way off here.
 
Old 02-27-2004, 07:19 PM   #3
samwong
LQ Newbie
 
Registered: Feb 2004
Location: Hong Kong
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks!
However, all the necessary permission were added (such as 755 and file ownership) but still cannot work.
Actually, I meet this problem before (another server). I've asked my office support and he did something (of course, he did tell me what he did) to fix it. So anyone can help me? Thanks!

note: The apache was compile at system installation (rmp install) and so, most of the configutation parameters were default, except:
UserDir public_html
and
<Directory /home/*/public_html/cgi-bin>
AddHandler cgi-script cgi pl
Options +ExecCGI -Includes -Indexes
</Directory>

Sam.
 
Old 03-19-2004, 12:00 AM   #4
beatlelane
Member
 
Registered: Jun 2003
Location: Manila
Distribution: Bayanihan+RH9+FC1
Posts: 68

Rep: Reputation: 15
Quote:
Originally posted by samwong
Thanks!
However, all the necessary permission were added (such as 755 and file ownership) but still cannot work.
Actually, I meet this problem before (another server). I've asked my office support and he did something (of course, he did tell me what he did) to fix it. So anyone can help me? Thanks!

note: The apache was compile at system installation (rmp install) and so, most of the configutation parameters were default, except:
UserDir public_html
and
<Directory /home/*/public_html/cgi-bin>
AddHandler cgi-script cgi pl
Options +ExecCGI -Includes -Indexes
</Directory>

Sam.
i encountered the same problem..have you solved it?
 
Old 03-19-2004, 12:05 AM   #5
samwong
LQ Newbie
 
Registered: Feb 2004
Location: Hong Kong
Posts: 4

Original Poster
Rep: Reputation: 0
No. I'm still looking for any expert here can help.
For the mean time, I used the apache root to test all my cgi script.

If you found the answer, please let me know. Thanks!

Sam.
 
Old 05-25-2004, 10:22 PM   #6
ozzy_cow
LQ Newbie
 
Registered: Apr 2004
Posts: 3

Rep: Reputation: 0
you have to recompile suexec. check out this thread http://www.fedoraforum.org/forum/sho...ghlight=suexec
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring a cgi shell script to run keeg Linux - Newbie 1 06-09-2005 01:45 PM
Access forbidden when trying to run cgi script allan_y Linux - Software 4 10-07-2004 07:02 AM
CGI Script add user to redhat 9 djkoe Linux - General 1 02-08-2004 04:20 PM
cgi script doesn't run just downloads SchoolITguy Programming 3 12-19-2002 03:08 PM
Auto Run A Cgi Script f117bomb Linux - General 1 11-25-2001 01:18 AM


All times are GMT -5. The time now is 08:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration