LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-16-2003, 05:33 AM   #1
Ethen
LQ Newbie
 
Registered: Jul 2003
Location: England
Distribution: Mandrake 9.1
Posts: 5

Rep: Reputation: 0
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...

help me Obi Wan Kenobi....you're my only hope.
 
Old 07-16-2003, 09:14 AM   #2
ckone
Member
 
Registered: Mar 2003
Location: el paso
Distribution: Redhat, Suse, and freebsd
Posts: 90

Rep: Reputation: 15
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....
 
Old 07-16-2003, 09:31 AM   #3
Ethen
LQ Newbie
 
Registered: Jul 2003
Location: England
Distribution: Mandrake 9.1
Posts: 5

Original Poster
Rep: Reputation: 0
You lost me a little bit........
 
Old 07-16-2003, 11:39 PM   #4
ckone
Member
 
Registered: Mar 2003
Location: el paso
Distribution: Redhat, Suse, and freebsd
Posts: 90

Rep: Reputation: 15
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.......


 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Same permissions on two files, but only one can be accessed by web server? murr4y Linux - Software 5 06-14-2005 03:59 AM
*@!Z Yarg!!!! Web site in Apache not showing - think it is Permissions! ServerStorm Linux - Software 4 03-17-2005 11:17 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 01:03 PM
default file permissions for web server AZDAVE Linux - Security 3 11-13-2003 04:22 PM
Web server permissions zmarty Red Hat 5 11-01-2003 12:26 AM


All times are GMT -5. The time now is 05:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration