problem getting perl working with apache2 cgi script
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Does awstats directory reside in /usr/lib/cgi-bin? Are the directories set to executable?
You better shouldn't have installed mod_perl. It is more complicated to work with mod_perl all in all and you don't need it to run CGI scripts.
You could run
to see if it spits out warnings in respect of the configuration.
you don't need to uninstall mod_perl but I think you better comment out the
LoadModule mod_perl line in the conf and restart the server.
If you load mod_perl then you have to configure apache according to mod_perl2 rules, name a PerlHandler PerlRun or similar. But mod_perl for apache1 and 2 are different and one has to read a while to get that started.
So if awstats is the only thing to work with perl you are better off using CGI.
apachectl is probably /usr/sbin/apache2ctl
at least you could give that a try,
The ".../sites-enabled/default000" is a default config file that is included by apache2.conf in some distributions.
How did you install apache2? If you are using a debian based system you can simply type
sudo apt-get install apache2
and get a working http server with a configured cgi-bin...