Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi:
i am a newbie, i want to setup a cgi-script on my web server.
the Web's root directory as set in httpd.conf is "/web"
my html file which is calling this cgi is in this folder and the cgi i want to call is there in the same folder the permission is set as 755.
<form action="/web/myfilename.cgi" method="POST">
the cgi-bin folder tag is set as "/web" in the "httpd.conf".
now when i try to call this cgi script from html page i get the message..
"error message 403, don't have permission to use this script"
i am using the computer as "root", and i have checked that all the permission is set as 755 and files path is correct..
can anybody please tell me what canbe wrong with that..
any positive help will be greatly appreciated
i have tried to put this page in different folders e.g "/usr/cgi-bin" , "/web/cgi-bin" and even "/web" that's my webpage root in httpd.conf file, i'm working on the comp as "root" i have set all the permission to 755.
but the same " error 403. you don't have permission to use /my-cgi-script.cgi "
perhaps all i need is a pre-configured "httpd.conf" file which has got correctly set "cgi-bin" path.
You might want to check the permissions on the cgi directory. Since you are root, it may be the case that root owns the directory and the nobody user can't access it. You may try to su nobody and see if he had permissions to execute the script in that directory. I'm not sure if the nobody user needs execute permission on that dir.
The way that I usually setup directories for my virtual servers is to setup a directory, in my case under /home/apache and recursivly set the permission on that dir to nobody.nogroup and point the virtual server to that directory.
As for cgi-bin directories, I usually don't use them. Some say it is a security hazzard, but it is easier to do the following.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.