Kintallon
01-20-2002, 03:46 PM
I got a VS Storm package from Cagedtornado yesterday to try to learn a bit more about Linux etc:) and I decided to install perldesk.
However when I try to run the scheck.pl in my browser to see if the correct mods are installed all I get displayed is the source code of the file instead of the file running. :(
I had this a couple of years ago with something else but for the life of me I can't remember what was the cause.:)
Does anyone know what the likely cause is and how to fix it?
Thanks
totally inept:)
Angler
priyadi
01-20-2002, 05:51 PM
Make sure you have "AddHandler cgi-script .pl" in your httpd.conf. I'm sure it is the problem.
Kintallon
01-20-2002, 08:19 PM
Thanks that was commented out in the httpd.conf:)
However now I am getting this:(
Forbidden
You don't have permission to access /perldesk/scheck.pl on this server.
--------------------------------------------------------------------------------
Apache/1.3.14 Server at b5hosting.com Port 80
Any ideas now?:)
I have tried setting the permissions to 777 but still no luck:(
thewitt
01-20-2002, 08:26 PM
If you are going to run cgi programs outside the cgi-bin directory, you need to make a change to the httpd.conf file - otherwise your Apache daemon does not have the permission to execute CGI programs outside the cgi-bin directory.
In /etc/httpd/conf/httpd.conf, in the section that starts:
<Directory /home/httpd/docs>
You need to change the "Options" line to look like this:
Options Indexes FollowSymLinks ExecCGI
The Apache website is your friend. Since you are running your own server now, you need to learn more about the Apache server config file at apache.org. There are lots of things in here that you should understand.
With the flexibility of a Virtual Server comes a need to understand more about how Linux and Apache work :).
-t
Kintallon
01-20-2002, 09:07 PM
Thanks thewitt :) that did the trick.
Althought the needed perl modules are not installed so i will go find them and learn how to install them:)
I will remember to look at the apache website:) I am just working my way very slowly to learning more difficult tasks:) but then that's why I got this VPS to learn from:)
CagedTornado
01-21-2002, 03:40 AM
FYI ... it sounds like you're on the right track now -- if you'd like a good starting point on the Apache website (with more thorough details of how to get CGI working) try this: http://httpd.apache.org/docs/howto/cgi.html
Also, perl modules aren't that hard to install ... generally speaking it invovles just doing a
perl Makefile.pl
make
make install
Dan
priyadi
01-21-2002, 03:55 AM
Originally posted by CagedTornado
perl Makefile.pl
make
make install
Even better: perl -MCPAN -e 'install modulename'
Kintallon
01-21-2002, 01:00 PM
thanks for all the help:)