how to configuer perl with apache2 ? ...
hello all .....,
this is my second post with this issue i posted before in the programming forum and i didnot get the answers so i hope to find it here i want to configure perl with apache 2 to make me able to write cgi programs and simply i have apche2 installed and also i have perl installed and i was writing perl programs and i got the output by the shell and i want to get it by browser so i but this lines on the httpd.conf file PHP Code:
PHP Code:
http://localhost/cgi-bin/hello.cgi igot this error Forbidden You don't have permission to access /cgi-bin/hello.cgi on this server and iam sure i have changed the ownership of the file to a normal user on the system what i can Do ? >...... thanx for all |
You must make that your cgi-bin script is executable:
Code:
chmod +x /usr/local/apache2/cgi-bin/hello.cgi |
still having the same error :S
Forbidden You don't have permission to access /cgi-bin/test.cgi on this server. i want to know what about adding mod_perl to apache how can it be done ? .... and itis an important to make perl working with apache ? |
Now that I looked better your config you have an error in the path of your cgi directory:
Quote:
Quote:
|
thanx for your support i make it as apache2 and when i run the localhost/cgi-bin/hello.cgi igot this
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator, you@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p> <p>More information about this error may be available in the server error log.</p> </body></html> |
So you made:
Code:
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/" If you want to debug the "Internal Server Error", use the documentation provided by apache. |
thanx mr bathory i search in the apache pages and the problem solved thanx :)
|
All times are GMT -5. The time now is 09:14 PM. |