[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: Default location for Apache on RH 6
- From: "Karl-Heinz Schulz" <karlheinz khschulz com>
- To: <redhat-install-list redhat com>
- Subject: RE: Default location for Apache on RH 6
- Date: Thu, 30 Sep 1999 11:34:37 -0400
Great - Thank you
-----Original Message-----
From: Tyler Nally [mailto:tnally iquest net]
Sent: Thursday, September 30, 1999 10:45 AM
To: redhat-install-list redhat com
Subject: Re: Default location for Apache on RH 6
On Thu, 30 Sep 1999, Jan van Deijk wrote:
> /home/httpd/html webpages (default is index.html)
> /etc/httpd.conf configuration
> /etc/rc.d/init.d/httpd restart to starting the server
>
> Or something like this.
On my Linux-Mandrake machine (with RH 6.0), the configuration
files are in ...
/etc/httpd/conf
... the server document root directory is at ...
/home/httpd/html
... with the cgi-bin stuff in ...
/home/httpd/cgi-bin
... and the "icons" directory next door at ...
/home/httpd/icons
Question about how to change the directory to the proper permissions
so that you can put new pages in .... not normally is this done as
you don't want folks that have any access to the machine to replace
the home page, etc... but if you must...
As "root", change directory to /home/httpd
# cd /home/httpd
... change permissions to something less restrictive ...
# chmod 775 html (owner read/write/execute,
group read/write/execute,
world read/execute)
... maybe even change the group from "root" to "users" so
that anybody that has a group of "users" (or whatever group you'd
like it to be) can change things....
# chgrp users html
... maybe make a "www" group and give those that have "www" page
permissions that privelege, then it'd be ...
# chgrp www html
The same can be done to the cgi-bin directory as well though you've
got to make sure that someone doesn't put a cgi-bin script in there
that'll compromise server security as someone can install an executable
script that'll give out your password file (or exploit a flaw somewhere)
to cause sensitive information to be given out. You should be more
cautious as to whom you allow "cgi-bin" writing privileges. Maybe with
those that are trusted, make another group called "cgi" and give people
that permission to that group as that group might have write privileges
to "cgi-bin" as folks with "www" have permission to the "html" directory.
If you need to change individual html page file ownership so that
someone can re-write to the file... a simple "chown" command execution
as "root" will do the necessary task. As an example... to change the
index.html file to user "bob" it'd be ...
# chown bob index.html
Most all of these change ownership, change group, change mode (chown,
chgrp, chmod respectively) commands I think have a "recursive" flag that'll
allow you to change everything in the current tree (or directory path
specified) downward.... so that if you want to change everything to
be owned by user "bob", you can do it with a ...
# chown -R bob *
... I think.
Tyler
--
+-----------------------+---------------------------+-----------------------
--+
| Tyler Nally | tnally iquest net |
http://www.informit.com |
| Sr Programmer Analyst | tyler nally informit com | phone: (317) 581-4651
|
| Macmillan USA, Inc | tnally netzero net | fax : (317) 817-7025
|
+-----------------------+---------------------------+-----------------------
--+
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-install-list-request redhat com with
"unsubscribe" as the Subject.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]