View previous topic :: View next topic |
Author |
Message |
kricha01 n00b
Joined: 28 Jul 2004 Posts: 7
|
Posted: Wed Jul 28, 2004 12:55 pm Post subject: Apache Configuration |
|
|
First off, I am very new to Linux, so please bear with me. I've just finished emerging the ebuild of Apache which I will be using with Cricket. I was able to get cricket working properly, however, I am struggling with Apache. I've consulted the documentation for Apache (on their site), and alot of the directory / file structure they reference is not the same that is currently on my system. Meaning alot of the directories n such are not there. I would appreciate any help that could be provided with getting me started on configuring APache. Perhaps someone who's configured Apached using the ebuild provided on the Gentoo site. Especially with configuring Apache to permit CGI which is needed in order to run cricket. Again, any help would be greatly appreciated. |
|
Back to top |
|
|
Nossie Apprentice
Joined: 19 Apr 2002 Posts: 181
|
Posted: Wed Jul 28, 2004 12:59 pm Post subject: |
|
|
Please post a little more detail about the dirs you cannot find.
The document root and cgi-bin are located at /var/www/localhost
Nossie |
|
Back to top |
|
|
kricha01 n00b
Joined: 28 Jul 2004 Posts: 7
|
Posted: Wed Jul 28, 2004 1:13 pm Post subject: |
|
|
Ok...I will. However, the big picture here is that I have no idea what I'm doing! So, even if I knew where the directories are, i have no idea what to do with them. But anyway....here's some of the thing that are missing...
/usr/local/apache2/cgi-bin/
httpd.conf
The documentation also states to run a "ScriptAlias" command? I attempt to do what they say, and i get a message stating that the command could n ot be found.
Thanks for your help. |
|
Back to top |
|
|
thecooptoo Veteran
Joined: 27 Apr 2003 Posts: 1353 Location: UK
|
Posted: Wed Jul 28, 2004 1:32 pm Post subject: |
|
|
the core apache stuff is in /etc/apache2/conf/apache2.conf
the config stuff you will fiddle with is /..../conf/commonapache2.conf
documents come from /var/www/localhost/htdocs
the default cgi is /var/www/localhost/cgi-bin & IIRC there is already a directive to allow script to run from there.
an understanding of allow/deny is useful is you start getting file permission problems.
tail /var/log/apache2/error_log
is useful for seeing what errors you are generating |
|
Back to top |
|
|
Nossie Apprentice
Joined: 19 Apr 2002 Posts: 181
|
Posted: Wed Jul 28, 2004 1:45 pm Post subject: |
|
|
ok...
The config files for apache2 on Gentoo are located at /etc/apache2/conf/
Instead of httpd.conf, you will find commenapache2.conf and apache2.conf (or someting like that, i currently don't have access to my Gentoo box...). Have a look at those config files. I'm not sure if CGI is suppost to work out of the box, because I have never used CGI myself.
In /etc/conf.d/apache2 (or something like that) you can specify the commandline options that are used to start the server. I know that you must change enable PHP there by adding '-D PHP' to the commandline options. Don't know about CGI though...
I hope this helps you a bit further. I will have a look at my config when I get home..
Nossie |
|
Back to top |
|
|
|