MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am having a lot of problems running perl scripts on my server.
my installation is:
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:
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:
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.