Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to configure apache? or whereis httpd.conf?
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
Nicko
n00b
n00b


Joined: 21 Jul 2003
Posts: 67
Location: Israel

PostPosted: Fri Aug 29, 2003 12:33 am    Post subject: how to configure apache? or whereis httpd.conf? Reply with quote

my apache is running, but in the howto's i saw that i need to edit /etc/httpd.conf but threre is no such file!
how do i run apache as user? and how do i know that is not running as root?

how do i add php support? i can not see php.

thanks.
Back to top
View user's profile Send private message
thompson42
n00b
n00b


Joined: 03 May 2002
Posts: 20
Location: Connecticut, USA

PostPosted: Fri Aug 29, 2003 12:51 am    Post subject: Reply with quote

If you emerged apache, the configuration info that goes into httpd.conf is in two files in /etc/apache/conf/, called apache.conf and commonapache.conf.

The apache ebuild configures apache to run as user apache, not root. Check this by examining the output of "ps -ef".

Check for php on your box with the command "emerge search mod_php"
Back to top
View user's profile Send private message
Vergo
n00b
n00b


Joined: 19 Apr 2003
Posts: 42
Location: Oulu, Finland

PostPosted: Fri Aug 29, 2003 12:51 am    Post subject: Re: how to configure apache? or whereis httpd.conf? Reply with quote

Nicko wrote:
my apache is running, but in the howto's i saw that i need to edit /etc/httpd.conf but threre is no such file!

/etc/apache/conf/apache.conf

Nicko wrote:
how do i run apache as user? and how do i know that is not running as root?

Most likely it's already running as the user apache, ps aux | grep apache will tell.

Nicko wrote:
how do i add php support? i can not see php.

emerge mod_php and add -D PHP4 to APACHE_OPTS in /etc/conf/apache
Back to top
View user's profile Send private message
Nicko
n00b
n00b


Joined: 21 Jul 2003
Posts: 67
Location: Israel

PostPosted: Fri Aug 29, 2003 12:58 am    Post subject: Reply with quote

ok, thanks.

i didn't found anything talking about my ServerName localhost in the conf's...
Back to top
View user's profile Send private message
Nicko
n00b
n00b


Joined: 21 Jul 2003
Posts: 67
Location: Israel

PostPosted: Fri Aug 29, 2003 1:16 am    Post subject: Re: how to configure apache? or whereis httpd.conf? Reply with quote

Nicko wrote:
how do i add php support? i can not see php.

emerge mod_php and add -D PHP4 to APACHE_OPTS in /etc/conf/apache[/quote]

i don't have /etc/conf/apache.
i have /etc/apache2/conf/apache2.conf
i didnt anderstand what to write there.
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Fri Aug 29, 2003 1:19 am    Post subject: Reply with quote

/etc/conf.d/apache2
Back to top
View user's profile Send private message
Nicko
n00b
n00b


Joined: 21 Jul 2003
Posts: 67
Location: Israel

PostPosted: Fri Aug 29, 2003 1:24 am    Post subject: Reply with quote

my /etc/conf.d/apache look's like this:
APACHE2_OPTS="-D PHP4"
but i steal can't see php.
i get "download index.php" when i'm treing to get to php page.
Back to top
View user's profile Send private message
chtof
n00b
n00b


Joined: 29 Aug 2003
Posts: 62
Location: France

PostPosted: Sat Aug 30, 2003 10:13 am    Post subject: Apache or Apache 2 ?? Reply with quote

You have to add APACHE2_OPTS="-D PHP4" in /etc/conf.d/apache2 and not in /etc/conf.d/apache. After this change, don't forget to restart Apache2 with an apache2ctl restart.
Back to top
View user's profile Send private message
amittp
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2002
Posts: 123
Location: USA

PostPosted: Sat Aug 30, 2003 11:25 am    Post subject: Reply with quote

For finding any file use
Code:

$locate blah.foo


Locate won't find immediate changes made to the system. It updates changes only after running
Code:

#updatedb
OR
#locate -u


BTW, I strongly recommend you to take a look at webmin. It has made my life easy.
Webmin is a nice tool that helps in configuring services and keeping them running. It does other things as well .You may also look at usermin. (Usermin is not needed for http services, but since was telling you to use webmin, I couldn't help giving word about usermin as well)
_________________
Believe in yourself
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