Click to See Complete Forum and Search --> : script.cgi or .pl .....needs to be compiled to execute???


npereira
08-20-2001, 05:09 PM
I have a bunch of scripts that are not working on my apache server.... do i need to compile or something the .pl scripts so they can be executed????

What is the command to compile a .pl to a .cgi to make it executable by the server????

here is the error message i am getting when trying to access the script:

--------------------------------------------------------------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, npereira@videotron.ca 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.

--------------------------------------------------------------------------------

Apache/1.3.20 Server at 192.168.1.10 Port 80
--------------------------------------------------------------------------------

[ 20 August 2001: Message edited by: npereira ]

[ 20 August 2001: Message edited by: npereira ]

[ 20 August 2001: Message edited by: npereira ]

[ 20 August 2001: Message edited by: npereira ]

takshaka
08-20-2001, 05:54 PM
Originally posted by npereira:
do i need to compile or something the .pl scripts so they can be executed????

No.

Have you read Dynamic Content with CGI (http://httpd.apache.org/docs/howto/cgi.html) from the Apache docs?

here is the error message i am getting when trying to access the script:


The more useful error message is in your server's error log.

npereira
08-20-2001, 06:56 PM
<Directory /usr/local/apache/htdocs/somedir>
Options +ExecCGI
</Directory>


in my http.conf file.... the path is in quotes ("/usr/local/apache/htdocs/cgi-bin")
do i have to remove the quotes " ???