Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-15-2001, 06:14 AM
|
#1
|
Member
Registered: Apr 2001
Location: South of Atlanta
Distribution: Mandrake 8.1, Suse 7.0
Posts: 207
Rep:
|
where is the web directory on most servers?
|
|
|
05-15-2001, 01:31 PM
|
#2
|
Member
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857
Rep:
|
It can vary greatly, but you can easily determine where it is by looking at the httpd.conf file.
"DocumentRoot" specifies where this is located.
|
|
|
05-15-2001, 01:58 PM
|
#3
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
You can customize as well and put as you feel necessary to your own configuration.
|
|
|
05-16-2001, 05:21 AM
|
#4
|
Member
Registered: Apr 2001
Location: South of Atlanta
Distribution: Mandrake 8.1, Suse 7.0
Posts: 207
Original Poster
Rep:
|
thanks guys...yu have helped me crack a mystery...my book that comes with suse never mentions Document Root...THANKS!
|
|
|
05-16-2001, 03:09 PM
|
#5
|
Member
Registered: Apr 2001
Location: South of Atlanta
Distribution: Mandrake 8.1, Suse 7.0
Posts: 207
Original Poster
Rep:
|
Root Document not finding document!
Ok...I redirected the Root Document to /home/hseritt/httpd. In that directory I created a sample html document. It is called apachetest.html. Next I went to the console and used the following command>>lynx http://prodigius.seritt.net/apachetest.html and it gave a 404 error. What did i do wrong?
|
|
|
05-16-2001, 03:47 PM
|
#6
|
Member
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857
Rep:
|
Does http://localhost/apachetest.html work?
What are the permissions for apachetest.html? What are the permissions for the /home/hseritt/httpd directory?
|
|
|
05-17-2001, 08:14 AM
|
#7
|
Member
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146
Rep:
|
You also need to check the permissions for home and hseritt
|
|
|
05-19-2001, 05:38 AM
|
#8
|
Member
Registered: Apr 2001
Location: South of Atlanta
Distribution: Mandrake 8.1, Suse 7.0
Posts: 207
Original Poster
Rep:
|
my web directory (Root Document) has been redirected in httpd.conf to home/hseritt/httpd...i have made this into a directory that contains one test.html file. the file has been set to where I as a user have permissions and such but i still get a 404 error. whats wrong with it?
|
|
|
05-20-2001, 02:10 AM
|
#9
|
Member
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857
Rep:
|
Web browsing is done as an anonymous user. Not as you.
You need to give World permissions to that dir and the files in it.
chmod 755 /home/hseritt/httpd
chmod 755 /home/hseritt/httpd/*
|
|
|
05-22-2001, 05:35 AM
|
#10
|
Member
Registered: Apr 2001
Location: South of Atlanta
Distribution: Mandrake 8.1, Suse 7.0
Posts: 207
Original Poster
Rep:
|
Please for give me if yu think this is a stupid question but...why chmod 755? what is the 755 for? is that some type of code to denote anonymous user priviledge?
thanks!
|
|
|
05-22-2001, 05:40 AM
|
#11
|
Member
Registered: Apr 2001
Location: South of Atlanta
Distribution: Mandrake 8.1, Suse 7.0
Posts: 207
Original Poster
Rep:
|
ok...tried it...the chmod 755 and i still get...
<b>Forbidden
You don't have permission to access /apachetest.html on this server.
Apache/1.3.12 Server at prodigius.seritt.net Port 80</b>
what next?
|
|
|
05-22-2001, 07:05 AM
|
#12
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
The 755 stands for the read-write-execute for the particular access and rights to a directory or file.
When you see -rwxr--r-- taht indicates that root has full access to the file, and the user and groups only have read access.
Read=4, Write=2 and Execute=1, that is what the numbers represent when they are added up. If you want full access for a regular user, you would indicate a 7, cause if you add 4+2+1=7
Just do a man chmod for that manual pages on it for full detail.
|
|
|
05-22-2001, 08:29 AM
|
#13
|
Member
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146
Rep:
|
Don't forget that not only the direectory that you are using as your web dir needs to be world writeable EVERY parent directory needs to be as well.
If the anonymous user can't change into the parent (/home/hseritt) then it doesn't matter what the permissions are further down.
I would advise against using your home dir as the web root, unless you don't care that every anonymous user is able to see what is in your home dir.
I would use /home/www (or /home/httpd) as the web root as all anon users have access to the /home anyway and you can just give them access to the httpd dir.
mkdir /home/httpd
chmod 755 /home/httpd
|
|
|
All times are GMT -5. The time now is 12:53 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|