Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache Configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kricha01
n00b
n00b


Joined: 28 Jul 2004
Posts: 7

PostPosted: Wed Jul 28, 2004 12:55 pm    Post subject: Apache Configuration Reply with quote

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
View user's profile Send private message
Nossie
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 181

PostPosted: Wed Jul 28, 2004 12:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
kricha01
n00b
n00b


Joined: 28 Jul 2004
Posts: 7

PostPosted: Wed Jul 28, 2004 1:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Wed Jul 28, 2004 1:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nossie
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 181

PostPosted: Wed Jul 28, 2004 1:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum