LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Permissions and Apache Web Server (https://www.linuxquestions.org/questions/linux-newbie-8/permissions-and-apache-web-server-73182/)

Ethen 07-16-2003 04:33 AM

Permissions and Apache Web Server
 
My first post so I better make it a good one.
As a complete beginner with Linux I recently tried to have a play with Apache Web Server which came with my Linux distribution.

The location the web server uses for files is defined in the httpd2.conf file. This specifies the location /var/www/html for the source files. If I change this location I get an error telling me I don't have permissions to access '/' ?

Things go away if I change the owner of such directories but I don't really want to keep doing this...:confused:

help me Obi Wan Kenobi....you're my only hope.

ckone 07-16-2003 08:14 AM

Logon as root or change the script to Apache to allow the following users to gain access to the Apache Web server.....

Sorry can't remember the file that points to that permissions....

Took down my Redhat 8.0 server about 2 months ago playing with Freebsd 5.1 right know if I had it up I could tell you.....

You have designed webpages before and understand how the Apache Webserver points at files right......


If not your going to need to understand you can change the intro screen as well as the folders and webpages it points at.....

good luck got to run later....

Ethen 07-16-2003 08:31 AM

You lost me a little bit........

ckone 07-16-2003 10:39 PM

Look simple
Webserver is just that a separate computer usually that does nothing but allow people to view webpages and administrator to edit data.

Second to gain access to the Webserver you set a password to allow access by the administrator...

Now if you set the password to the web server to the same password as the Date base or other Applicational Servers he could inturn do harm to the hole network....

Generally you would set the Web Server to a different Administrator password then the rest of the network and also only allow those using the web server to edit content on the Web pages....

Know by default the Apache web server doesnt allow root or other users to access the Apache server with common names..

There is a config file that allows you to set permissions to the Apache Web Server...

This config file tells who can edit the webpages and web server....

Now I can't remember the config needed to allow access to the Web server to edit code...

Second you must understand how directory's work in order to change the target to point the webpages for instance you said webpages are to be stored in /var/www/html so if your going change the location of the webpages you must have administrative rights in order to change data........ or your going to get that this individual can't edit the pages or change the with out root or "/" permissions........

Meaning the user has no rights to make changes to the Web server or file system.....

Well good luck hope this helps....


Later....

Sorry it took so long to respond started writing a book on what a web server is.......


:study:


All times are GMT -5. The time now is 11:24 PM.