cgi-bin problems - error 500

sde

Verified User
Joined
Sep 11, 2004
Messages
214
Location
Temecula, CA
i have the most simple perl script:
Code:
#!/usr/bin/perl
print 'testing 1 2 3 4 5';

chmod a+x index.cgi

the owner of the cgi-bin is user:user

the permissions of the cgi-bin is: 751 ( that is default i think )

public_html is owned by: user:apache

the permission os public_html are: 750

when i try to run the script via a web browser, i get an error 500.

i have tried to add this to the .htaccess file in the cgi-bin but it did not work:
Code:
Options +ExecCGI
AddHandler cgi-script .cgi .pl

this is what the browser says:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

i can run the script from the cl and it works fine.

what else can i look for?
________
grape ape pictures
 
Last edited:
i'm sorry, i guess my post wasn't clear. it is solved. the problems was the fact that the cgi-bin was being accessed from /~user/cgi-bin instead of the domain/cgi-bin.

thanks for the response.
________
headshop
 
Last edited:
Back
Top