Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 10-22-2004, 11:48 AM   #1
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 623
Blog Entries: 1

Rep: Reputation: 49
Making Perl/CGI work on "localhost".

On Mandrake 9.0, I have Apache 1.3 set up such that http://localhost points to /var/www/html and renders it just as if I were surfing the web. However, I can't get it to execute Perl scripts. If I put the script in /var/www/cgi-bin, I get the "forbidden" message. If I put the script in the /var/www/html directory along with a .htaccess file specifying that CGI scripts are allowed in that directory, I get the "Method not allowed" message. I have set the execute permission on the script. I have read the Apache documentation and the httpd.conf file. All directives look to be in order to set up /var/www/cgi-bin as the global CGI directory and to also allow local Perl scripts using .htaccess files. What now needs to be done? Please advise.
Old 10-24-2004, 11:15 AM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
If you are getting a forbidden message then make sure that the user your webserver is running as has read an execute permissions on your script and directory.

You may also get further information from the apache error_log file.
Old 10-25-2004, 10:23 PM   #3
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 623
Blog Entries: 1

Original Poster
Rep: Reputation: 49
Thanks. It all works now. The missing link that needed to be updated was the commonhttpd.conf file.


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
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 04:51 AM
Perl/CGI Problem "Premature Premature end of script headers:" newuser455 Linux - Software 2 07-18-2004 11:47 AM
"<" ">" Keyboard keys on Toshiba Satellite 1005-s157 dont work RodCas Linux - Laptop and Netbook 1 05-08-2004 04:22 PM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 03:31 PM
<input type="button" disabled="true" > does not work in ns4.7 or 4.9 cybercop12us Programming 2 11-29-2002 08:31 AM > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 02:33 AM.

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