The problem about CGI in my all DA server

tim874536

Verified User
Joined
Nov 24, 2006
Messages
73
i would like to ask how i can run .cgi .pl in the cgi-bin folder?

i had uploaded the cgi programma into cgi-bin folder and set into 775, owned by that user, and the DA is new installed (nothing changed and modified)

but there is still have such problem
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

is there any configuration that i need to do it before?

P.S. the .htaccess is this~~~~~
Options -Indexes
 
check the error log for that domain. It will tell u why it is failing.

also I think the script has to have the username:username ownsership . search more here for answers
 
check the error log for that domain. It will tell u why it is failing.

also I think the script has to have the username:username ownsership . search more here for answers

ERROR LOG
[Thu Jun 7 12:38:15 2007] [error] [client 72.52.66.10] Premature end of script headers: /home/timlkc/public_html/cgi-bin/countdown.htm
[Thu Jun 7 12:38:15 2007] [error] [client 72.52.66.10] File does not exist: /var/www/html/500.shtml

all files are owned by that user

what can i do?
 
The issue is the way apache conf is been setup

ScriptAlias /cgi-bin/ /home/xxx/domains/xxxxx/public_html/cgi-bin/

Since cgi-bin directory is only set as script alias, so it will only allow the scripts to be executed. You cant run any static content like .htm or even images. It considers each file as a script and tries to execute it.

this is done for safety as you can then lock down the perl scripts execution and your scripts are separated from your static content.

You probably might need to use AddHandler directive.
 
Back
Top