View Full Version : linux/apache help wanted
empath
2003-11-25, 10:57 AM
I just installed mandrake linux and set up apache, which works, but it won't run cgi scripts...
anyone know what you need to add to httpd.conf to get this to work? also, i see httpd.conf in a couple of different directories, and there's an httpd2.conf, too.. how do i know which one apache is using?
Ragin Bajin
2003-11-25, 12:10 PM
How do you start apache?
That can tell you what directory the correct httpd.conf file is in.
It's usually in /etc/httpd/conf/ . Also did you install by source or pkg.
Make sure you have the appropriate Directory setup.
ie
"<" Directory /var/www/cgi-bin ">"
AllowOverride All
Options ExecCGI
Order allow,deny
Allow from all
"<"/Directory">"
Of course with out the stupid quotes.
n-root
2003-11-25, 12:11 PM
you need to set ScriptAlias in the conf
empath
2003-11-25, 11:27 PM
allow override all is what i think i need, i'll check that tomorrow...
empath
2003-11-26, 11:59 AM
edit:
nm, i needed to put the directory statement in the commonhttpd.conf instead of the httpd.conf file..
FunkTribe
2003-11-26, 12:57 PM
10100010010001 001110 001110011