Help With Apache configuration

i’m a new baby to Apache, so what i want to know is which httpd.conf
should i change cause i have two httpd.conf files the first is in
/etc/httpd/conf and the second one is in /usr/local/apache/conf .

Kind Regards,
Phillip
Phillip Leremi
Tel: 011 884 7633
Fax: 011 883 5805
phillip@reportstar.net

Phillip,

You didn’t mention specific OS you’re on but I’m guessing maybe Red Hat? I
don’t have a Red Hat box handy to check these commands so I’m doing it from
memory, so please check the syntax before taking my advice.

It appears you’ve got Apache installed in two places, one via RPM and the
other manually. The server root for the Red Hat RPM version is ‘/var/www’
and it’s got a startup script defined in ‘/etc/rc.d/init.d/httpd’ (I think).
You can probably change the references in that file, after making a backup
of course, to point to the ‘/usr/local/apache’ installation. After that you
can start Apache (as root) by typing ‘service httpd start’.

The service may already be set up to start automatically. You can check for
that by running (as root) ‘chkconfig --list’. That will show you the run
levels the service gets started on. The line for ‘httpd’ may look something
like this:
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

You can turn it on for runlevels 3, 4 and 5 by typing ‘chkconfig --level 345
httpd on’. You may be able to just type ‘chkconfig httpd on’. Please check
the syntax before trying it. Red Hat has (or used to) a graphical runlevel
editor that might be easier.

If none of this makes any sense to you don’t do anything until you’ve done
some research via Google or your OS Vendor’s site. Or maybe you can just
throw caution to the wind and do it anyway, you do have backups, right?

Rick-----Original Message-----
From: Phillip Leremi [mailto:phillip@reportstar.net]
Sent: Tuesday, March 23, 2004 1:08 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Help With Apache configuration

i’m a new baby to Apache, so what i want to know is which httpd.conf
should i change cause i have two httpd.conf files the first is in
/etc/httpd/conf and the second one is in /usr/local/apache/conf .

Kind Regards,
Phillip
Phillip Leremi
Tel: 011 884 7633
Fax: 011 883 5805
phillip@reportstar.net

rt-users mailing list
rt-users@lists.bestpractical.com
http://lists.bestpractical.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

My apologies if that last message came through in RTF or HTML. $#@!&
Outlook!!-----Original Message-----
From: Edwards, Rick [mailto:REdwards@gwsmail.com]
Sent: Tuesday, March 23, 2004 7:15 AM
To: rt-users@lists.bestpractical.com
Subject: RE: [rt-users] Help With Apache configuration

Phillip,
You didn’t mention specific OS you’re on but I’m guessing maybe Red Hat? I
don’t have a Red Hat box handy to check these commands so I’m doing it from
memory, so please check the syntax before taking my advice.

It appears you’ve got Apache installed in two places, one via RPM and the
other manually. The server root for the Red Hat RPM version is ‘/var/www’
and it’s got a startup script defined in ‘/etc/rc.d/init.d/httpd’ (I think).
You can probably change the references in that file, after making a backup
of course, to point to the ‘/usr/local/apache’ installation. After that you
can start Apache (as root) by typing ‘service httpd start’.

The service may already be set up to start automatically. You can check for
that by running (as root) ‘chkconfig --list’. That will show you the run
levels the service gets started on. The line for ‘httpd’ may look something
like this:
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
You can turn it on for runlevels 3, 4 and 5 by typing ‘chkconfig --level 345
httpd on’. You may be able to just type ‘chkconfig httpd on’. Please check
the syntax before trying it. Red Hat has (or used to) a graphical runlevel
editor that might be easier.

If none of this makes any sense to you don’t do anything until you’ve done
some research via Google or your OS Vendor’s site. Or maybe you can just
throw caution to the wind and do it anyway, you do have backups, right?
Rick

-----Original Message-----
From: Phillip Leremi [mailto:phillip@reportstar.net]
Sent: Tuesday, March 23, 2004 1:08 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Help With Apache configuration

i’m a new baby to Apache, so what i want to know is which httpd.conf
should i change cause i have two httpd.conf files the first is in
/etc/httpd/conf and the second one is in /usr/local/apache/conf .
Kind Regards,
Phillip
Phillip Leremi
Tel: 011 884 7633
Fax: 011 883 5805
phillip@reportstar.net

rt-users mailing list
rt-users@lists.bestpractical.com
http://lists.bestpractical.com/mailman/listinfo/rt-users
Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

I’m not sure where you want to go from here. Did you try any of the things I
suggested?

Rick-----Original Message-----
From: Phillip Leremi [mailto:phillip@reportstar.net]
Sent: Tuesday, March 23, 2004 2:41 AM
To: Edwards, Rick
Subject: Re: [rt-users] Help With Apache configuration

Ok I’m using

RedHat 9.0
perl 5.8.0
and the latest CPAN module