I am trying to get perl scripts working on the suse apache server.... I have all the perl packages for apache installed, etc However, when i try and execute a perl script(on the web server), either of these things happen : 1) It gives me an internal server error (when executing an index.pl, e.g http://myserver/foofolder) 2) It gives me the perl script code (when specifying a perl script e.g http://myserver/foofolder/foo.pl) Php scripts work fine. I want to be able to use perl scripts in my webroot, and also my user folders... Can anyone help me? My httpd.conf and suse_public_html.conf : http://www.kitsuneaye.co.uk/configs.tar.gz Thanks for your help.
On 01 Oct 2002 16:51:37 +0000
Stuart Urquhart
I am trying to get perl scripts working on the suse apache server....
I have all the perl packages for apache installed, etc However, when i try and execute a perl script(on the web server), either of these things happen : 1) It gives me an internal server error (when executing an index.pl, e.g http://myserver/foofolder) 2) It gives me the perl script code (when specifying a perl script e.g http://myserver/foofolder/foo.pl)
Php scripts work fine. I want to be able to use perl scripts in my webroot, and also my user folders...
Can anyone help me?
It sounds like you httpd.conf needs tweaking. <IfModule mod_dir.c> DirectoryIndex index.html index.cgi index.php </IfModule> You can either name your index.pl to index.cgi or add index.pl to the above list. What happens now, is apache sees your index.pl as just some text file and just sends it out. There are other tricks you can use to get a cgi to run as index. Like: #use this to make an index.cgi for index.html #<Files index.html> # Options +ExecCGI # SetHandler cgi-script #</Files> Good luck. -- use Perl; #powerful programmable prestidigitation
Your apache is configured to run files with the extension of .cgi as CGI scripts. Add try running them with the extension .cgi, as .pl is used by mod_perl. Regards Adam Leach On Tuesday 01 October 2002 16:51, Stuart Urquhart wrote:
I am trying to get perl scripts working on the suse apache server....
I have all the perl packages for apache installed, etc However, when i try and execute a perl script(on the web server), either of these things happen : 1) It gives me an internal server error (when executing an index.pl, e.g http://myserver/foofolder) 2) It gives me the perl script code (when specifying a perl script e.g http://myserver/foofolder/foo.pl)
Php scripts work fine. I want to be able to use perl scripts in my webroot, and also my user folders...
Can anyone help me? My httpd.conf and suse_public_html.conf : http://www.kitsuneaye.co.uk/configs.tar.gz
Thanks for your help.
participants (3)
-
Adam Leach
-
Stuart Urquhart
-
zentara