View previous topic :: View next topic |
Author |
Message |
Nicko n00b
Joined: 21 Jul 2003 Posts: 67 Location: Israel
|
Posted: Fri Aug 29, 2003 12:33 am Post subject: how to configure apache? or whereis httpd.conf? |
|
|
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 |
|
|
thompson42 n00b
Joined: 03 May 2002 Posts: 20 Location: Connecticut, USA
|
Posted: Fri Aug 29, 2003 12:51 am Post subject: |
|
|
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 |
|
|
Vergo n00b
Joined: 19 Apr 2003 Posts: 42 Location: Oulu, Finland
|
Posted: Fri Aug 29, 2003 12:51 am Post subject: Re: how to configure apache? or whereis httpd.conf? |
|
|
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 |
|
|
Nicko n00b
Joined: 21 Jul 2003 Posts: 67 Location: Israel
|
Posted: Fri Aug 29, 2003 12:58 am Post subject: |
|
|
ok, thanks.
i didn't found anything talking about my ServerName localhost in the conf's... |
|
Back to top |
|
|
Nicko n00b
Joined: 21 Jul 2003 Posts: 67 Location: Israel
|
Posted: Fri Aug 29, 2003 1:16 am Post subject: Re: how to configure apache? or whereis httpd.conf? |
|
|
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 |
|
|
zhenlin Veteran
Joined: 09 Nov 2002 Posts: 1361
|
Posted: Fri Aug 29, 2003 1:19 am Post subject: |
|
|
/etc/conf.d/apache2 |
|
Back to top |
|
|
Nicko n00b
Joined: 21 Jul 2003 Posts: 67 Location: Israel
|
Posted: Fri Aug 29, 2003 1:24 am Post subject: |
|
|
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 |
|
|
chtof n00b
Joined: 29 Aug 2003 Posts: 62 Location: France
|
Posted: Sat Aug 30, 2003 10:13 am Post subject: Apache or Apache 2 ?? |
|
|
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 |
|
|
amittp Tux's lil' helper
Joined: 02 Jul 2002 Posts: 123 Location: USA
|
Posted: Sat Aug 30, 2003 11:25 am Post subject: |
|
|
For finding any file use
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 |
|
|
|