Linux - SoftwareThis 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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
AddHandler wasnt spelt wrong, I just copied it over wrong. I tried the slash thing, and it still didnt work. I made a folder called cgi and I changed the ScriptAlias and the Document to point to that folder and I also got the forbidden error.
I am new to this as well, but i looked in my commonhttpd config and it looks like this
Options +ExecCGI -Includes -Indexes
I am not sure, but i think here the execution of cgi files is permitted, and i missed the cgi-option in the first post. May be helpful.
I am wrestling with a slightly different problem, i can execute cgi scripts, but not from a form which has form action method is post. when i send the form it returns a forbidden error. in my browsers address the script is adressed, and when i press the reload button, the script gets executed. So in my case the action post somehow is not permitted, but have not yet found out why. geuss it has something to do with the action directive.
ScriptAlias /cgi-bin/ /var/cgi-bin/
Allow from all
Now I dont allow directory listings so I have to call a script directly or I get the same error. Here is a little script that works if named script.cgi and chmod 755 and placed in your cgi-bin and called http://www.domain.com/cgi-bin/script.cgi will list all your environment variables. I use this to check and see if costomer cgi-bin is working correctly or not.
Try this. REM out the ScriptAlias & include Options +ExecCGI. This will cause any script to be able to be executed in any directory. If this doesn't work, this is a permissions issue.
##ScriptAlias /cgi-bin/ "/var/www/html/"
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
Allow from all
AddHandler cgi-script .cgi .pl