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.
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...