problems with perl..
Hello, and thanks for looking at my post.
I am having a lot of problems running perl scripts on my server. my installation is: "Mandrakelinux-10.1-Community" All my software came installed by default from the mandrake cds. All i did was check the box for webserver. Everything is working fine on my server. I got 3 websites with their own domain names on the same server through VirtualHosts. I have php, mysql, and a whole bunch of useful things working. I got no complains there, mandrake linux is awsome. My problem is that I cant get perl scripts working. I made a "cgi-bin" folder in one of my site's root dir. I put my "FormMail.pl" script in there. When I try to use it, i get asked if i want to download "formmail.pl" So I tried renaming the script to "FormMail.cgi", and i get this: "NOT FOUND The requested URL /cgi-bin/formmail.cgi was not found on this server." I try creating a folder called "perl" and put my script there, rename it to "FormMail.pl", and......same problem. One strange thing tho: There is a "cgi-bin" folder in "/var/www/" In that folder i found "test.cgi" So i got that file and moved it to the cgibin folder of my site: "/var/www/html/mysite1/cgi-bin" I then went to "mysite1.com/cgi-bin/test.cgi" and....That script worked. There was also another folder "/var/www/perl/". In that folder i found "test.pl". I moved that script to "/var/www/html/mysite1/perl/" then i go to "mysite1.com/perl/test.pl" and it asks me if i want to download "test.pl" :wall: Btw, i did set the chmod on my script to 755, i even tried 777, but still no good results. So I am really stuck here. I got most of my help to get my server started from google, But google is not being so helpful on this problem. I did get help here with virtualhosts, so I am hoping someone can help me out again with this new problem. Thank you all who take the time to read this... |
has anyone had this problem before?
|
Check your commonhttpd.conf file, there should be an entry like the following:
ScriptAlias /cgi-bin/ /var/www/cgi-bin/ You'll also need to add the following directive for the directory to allow execution of scripts: <Directory /var/www/cgi-bin> AllowOverride All Options ExecCGI <IfModule mod_access.c> Order allow,deny Allow from all </IfModule> </Directory> My guess is one of the two is missing. If not, can you please post your commonhttpd.conf file? |
All times are GMT -5. The time now is 07:16 PM. |