[TriLUG] what is this stuff?
Marc Wiatrowski
wia at iglass.net
Fri Sep 15 17:13:15 EDT 2006
If you compiled the apache source yourself the default install
location for everything is below /usr/local/apache2. The document
root (where all the html files go) is then /usr/local/apache2/htdocs,
the httpd executable would be in /usr/local/apache2/bin, logs in
/usr/local/apache2/logs.
If RedHat's (or CentOS's) packaged rpm for apache was installed
its more integrated into the rest of the system as opposed to
isolated in /usr/local. The document root is /var/www/html,
httpd is put in /usr/sbin/, and logs in /var/log/httpd
So it looks like you have CentOS's apache installed, probability
from when you first setup the system.
Mysql is going to be similar depending on if you installed from
source or the rpm.
marc
> -----Original Message-----
> From: trilug-bounces at trilug.org
> [mailto:trilug-bounces at trilug.org] On Behalf Of jason watts
> Sent: Friday, September 15, 2006 3:36 PM
> To: trilug at trilug.org
> Subject: [TriLUG] what is this stuff?
>
> ok, paying attention to the book i am reading, php and mysql
>
> it has me setting up my enviornment installing mysql, php and
> appache 2
>
> appache 2 and php is there from my former workings on the
> computer, or the
> original install
>
> the book said appache should be in ./usr/local/apache2
> also says if i had mysql installed, it would be in the same place,
> ../usr/local/mysql
>
> it also says that the root directory for apache is in
> /usr/local/apache2/htdocs
>
> on my system, the root directory for apache is in /var/www/html
>
> and as far as for apache, i ran find . -name httpd and came
> up with several
> things
>
> [root at localhost /]# find . -name httpd
> ../etc/sysconfig/httpd
> ../etc/rc.d/init.d/httpd
> ../etc/logrotate.d/httpd
> ../etc/httpd
> ../usr/lib/httpd
> ../usr/sbin/httpd
> ../var/lock/subsys/httpd
> ../var/log/httpd
>
>
> my question is, which of these is the directory i need?
>
> what do these and some of the other ones not listed usually
> used for? (eg,
> what is var usr etc dev lib proc srv )
>
> and, where is it recomended to install my apache and mysql too?
>
> sorry for all the questions of late, just trying to acutally make my
> computers do things now
>
> jsn
More information about the TriLUG
mailing list