LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-07-2003, 06:25 PM   #1
danweis
LQ Newbie
 
Registered: Oct 2003
Location: Arizona
Posts: 1

Rep: Reputation: 0
Need help with Apache and Mandrake


Hello,

I'm kind of new to Linux but have been hacking at Unix for years. I'm running Mandrake 9.1 and the Apache Web Server 2.0.44. I'm also using the webmin tool to help with configuration.

I've got most everything working: I can get the index page in var/www/html up with a web browser on a remote machine; I can execute perl scripts in the /var/www/perl directory; BUT, I cannot get scripts working from the /var/www/cgi-bin directory. I believe all permissions are set correctly, that the directory ownership and group is apache and the directories are 755 as are the scripts. I can successfully execute the script from the command line, however when I try from a browser I get the "500 Internal Server Error" message. I've checked and re-checked the httpd2.conf and commonhttpd.conf files for the correct things like ExecCGI being present where it's supposed to be. Now I can't claim I've checked EVERYTHING as I'm by no means at all proficient with all of this.

So, anyone have any suggestions? I've checked all of the other threads herein using the search function, and have tried all of the suggestions I found.

Thanks, Dan
 
Old 10-08-2003, 01:22 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

To run scripts outside script aliased directories you need an AddHandler directive - eg:
AddHandler cgi-script .pl
AddHandler cgi-script .cgi
 
  


Reply



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
Mandrake with apache dlh44 Mandriva 1 06-07-2005 07:01 AM
Apache and Mandrake 10.1 rbudj Mandriva 4 12-17-2004 10:51 AM
Mandrake and Apache jriis Linux - Networking 4 01-20-2004 09:55 AM
Mandrake 9.0 Apache Help SlackX Linux - Software 1 08-29-2003 01:56 PM
Apache in Mandrake... m_pahlevanzadeh Linux - Networking 1 12-30-2002 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:21 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration