Jump to content

can't run cgi-bin programs as user?


shams

Recommended Posts

hi,
i am loging as user to my pc runing fc5, i wrote a cgi script as root from a terminal using su in the /var/www/cgi-bin and i made it executable with chmod u+x, now when i want to execute this script from the cgi-bin as http://localhost/first.pl this is the error:
Forbidden
You don't have permission to access /first.pl on this server.
after this error i changed the ownership of cgi-bin and the script to my user name but even after that this is the error message, the serve runing apche. and this is the apache error log;
[Mon Oct 30 16:56:16 2006] [error] [client 127.0.0.1] Premature end of script headers: first.pl
[Mon Oct 30 16:59:56 2006] [error] [client 127.0.0.1] Options ExecCGI is off in this directory: /var/www/html/first.pl
and this is the script:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World.";
any one can help please?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.