LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Allow user to run their own cgi script (https://www.linuxquestions.org/questions/linux-newbie-8/allow-user-to-run-their-own-cgi-script-151153/)

samwong 02-27-2004 09:28 AM

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

patpawlowski 02-27-2004 10:34 AM

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.

samwong 02-27-2004 07:19 PM

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.

beatlelane 03-19-2004 12:00 AM

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?

samwong 03-19-2004 12:05 AM

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.

ozzy_cow 05-25-2004 10:22 PM

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


All times are GMT -5. The time now is 10:02 AM.