What is the answer on getting /cgi-bin files to work? what files where needed to be edited? I know its 1 or 2 file edits and maybe something with permissions...Something that should take about 5 minutes to have up and running.
Setting up Apache 2.2.3 on a newly installed debiann 4.0 r0 is fast
becoming an annoyance.
The first problem was that apache (for whatever stupid reason) insists
that web pages be loaded into "/var/www/apache2-default"
which means a web page would show up as
After talking to someone who might know, he took a guess that worked
Go to /etc/apache2/sites-available/, the "default" text file is what you
will need to edit. Then stop and start your apache2 web service
Change your directory to "/etc/init.d/"
STOP the apache service by using the command: apache2 -k stop
START the apache service by using the command: apache2 -k start
Your default web content directory should now be in your new directory
Web page works, all is good. Well, except for one thing...
NOW I need to get my webcounter working again. I had set this up years ago
(after the same struggle at not finding any good, direct docs) but this
time I will write it down.
Im using/like/used/and will continue using this counter:
which requires apache to use cgi files.
It is a well-hidden solution as to how to get apache to find and execute
this cgi file and the web is filled with other people asking about this
and my (earlier) problem above. So at least Im not alone.
There MUST be a simple, straing forward 1,2,3 set of instructions to get
this going without having to read a lengthy diatribe that leaves you with
more questions than when you started.
Which apache configuration file needs editing to allow my or anyother CGI
file to run via the web page?
After my basic debian install this is where things are on my system:
/usr/lib/w3m/cgi-bin and I made a symbolic link to it from /cgi-bin so I
can just say (or type) /cgi-bin and it will go to the right place
The .cgi for the web counter can be found at:
the apache2 FAQ says "In general, you should never use .htaccess files
unless you don't have access to the main server configuration file. There
is, for example, a prevailing misconception that user authentication
should always be done in .htaccess files. This is simply not the case. You
can put user authentication configurations in the main server
configuration, and this is, in fact, the preferred way to do things." so I
guess I wont be using that
My guess is that I need to do somthing in httpd.conf, which on my system
can be found at /etc/apache2/httpd.conf and is empyt except for one line
DocumentRoot "/var/www/" which may or may not be doing anything, being a
left over from one of my many tries of sloving the first problem. Before
this line was added, httpd.conf was EMPTY.
So what is the answer on getting /cgi-bin files to work with this verson
of Apache on a debian directory structure?
THANKS in advance.