LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 01-01-2005, 02:55 AM   #1
amachine7
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
Unhappy 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...
 
Old 01-01-2005, 09:50 PM   #2
amachine7
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Original Poster
Rep: Reputation: 0
has anyone had this problem before?
 
Old 01-02-2005, 03:25 PM   #3
Maqo
LQ Newbie
 
Registered: Jan 2003
Location: NY
Distribution: Mandrake 10.0 Official
Posts: 21

Rep: Reputation: 15
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?

Last edited by Maqo; 01-02-2005 at 03:27 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
serious perl problems vmlinuz101 Linux From Scratch 1 11-27-2006 09:29 AM
Perl problems gharvey Linux - Newbie 8 12-21-2004 07:21 AM
Perl problems rickenbacherus Linux - Software 1 06-08-2004 11:57 PM
Perl problems Vindane Linux - Software 1 06-05-2004 05:09 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM


All times are GMT -5. The time now is 12:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration