LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-15-2001, 07:01 PM   #1
RecoilUK
Member
 
Registered: Jul 2001
Location: Southampton, England
Distribution: Mandrake 8.2 , Slackware 8.1, $LFS
Posts: 270

Rep: Reputation: 30
Question Apache HTDOCS help needed plz


Hi guys

OK, so i,ve installed apache and mysql, but I have a question.

You know the screen which you get when you goto http://localhost , well it has a link to the apache documentation on it.

So I thought I would also add a link for the MySQL docs also.

So I downloaded the manual.

Moved all the docs to a new directory = htdocs/Manual but whenever I try to access them it will not allow to view them?

Why not?

I noticed that the docs for apache are in the dir manual which has owner and group permissions set to 1134 and 1134, and the dir Manual which has the MySQL docs in it has the owners groups etc set to root, which is probably the reason, but whenever I try to change the owner etc to 1134 it just reverts back to root?????

I had a look in Drakeuser and it doesnt even list a user number 1134?

Does anyone know what I have to do??

Thx again guys.

cheers

RecoilUK
 
Old 07-15-2001, 09:27 PM   #2
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Rep: Reputation: 30
OK let me start off by saying that i am a newbie too, but it seems like you have problems with the permission settings. Ok first of all mysql is a user itself ( i believe) so if you just linked it in your htdocs it wont probably show up. Copy and paste all the manuals and then set the permissions to read and execute. i think you have to type "chmod 755 filename" at the terminal. I dont know if it will work though, but its worth a shot. Let me know if it does
 
Old 07-16-2001, 04:34 AM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
If you get a user/group ID that's numeric it indicates that the user/group who owns the files doesn't have an entry in /etc/passwd. This normally happens when you untar a file and tar restores file ownership and permissions, yet the user doesn't exist on your system. If you want you can do a chown -R root:root * in that directory to change the owner of all files back to root. As far as the manual entrys not being available. As has already been mentioned chmod your files. 755 for a directory (you can get away with 711 if you don't want people to get directory listings) and 644 for the files.

HTH

Jamie...
 
Old 07-16-2001, 05:23 AM   #4
gizmola
Member
 
Registered: Jun 2001
Location: Los Angeles, CA USA
Distribution: RedHat
Posts: 53

Rep: Reputation: 15
Yeah, sounds like a permissions issue. In this case the permissions of the file is going to come into play no matter who the owner is. Each file has permissions for the Owner, Group and Others, ie anyone else. Certainly you can chown the owner to be root, but that is not necessarily gonna fix the problem. You may also need to changemod the file to have an effective r permission, whether that be via group or other.

Last edited by gizmola; 07-16-2001 at 12:50 PM.
 
Old 07-16-2001, 05:54 AM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by gizmola
did you put these files in the document root, or someplace that apache can see em?
The document root being the start of the directory tree that Apache can see... hence he's already done the above!

Cheers

Jamie...
 
Old 07-16-2001, 01:45 PM   #6
gizmola
Member
 
Registered: Jun 2001
Location: Los Angeles, CA USA
Distribution: RedHat
Posts: 53

Rep: Reputation: 15
Quote:
Originally posted by jharris

The document root being the start of the directory tree that Apache can see... hence he's already done the above!

Cheers

Jamie...
I kinda figured that was true, although it is possible to have seperate sections of the config that refer to permissions to browse material if you're doing so from localhost, as oppossed to coming in from one of the other interfaces. This was designed to allow the sysadmin to be able to easily browse html documentation on the local machine, without making that available to the outside world.

At any rate, i basically re-read the question and was editing my reply, when i fell asleep last night :0

I posted the edit this morning, but you had already addressed my initial, somewhat unspecific reply, hehe. I need more sleep i think.
 
Old 07-16-2001, 01:48 PM   #7
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Quote:
Originally posted by gizmola
At any rate, i basically re-read the question and was editing my reply, when i fell asleep last night :0
I know the feeling!! Early hour computing - the only way

cheers

Jamie...
 
Old 07-16-2001, 01:51 PM   #8
gizmola
Member
 
Registered: Jun 2001
Location: Los Angeles, CA USA
Distribution: RedHat
Posts: 53

Rep: Reputation: 15
Quote:
Originally posted by jharris

I know the feeling!! Early hour computing - the only way

cheers

Jamie...
Indeed. I was doing this til about 3:30am, then walked away from the computer with a half written email and the unposted forum reply then fell asleep in a chair reading a perl book. I'm only partially nocturnal at this point
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Triple boot advice needed plz. mortal Slackware 2 11-26-2005 04:27 PM
apache looking for documentroot in /usr/htdocs niehls Linux - Software 3 07-06-2003 05:39 PM
Where is the htdocs folder for Apache? Ekim Gram Linux - Newbie 5 05-24-2003 07:16 AM
Red Hat 7 Help/Tips needed plz LX_NewBie Linux - Newbie 4 02-08-2002 07:35 AM
Help needed plz RecoilUK Linux - General 5 07-15-2001 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:56 AM.

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
Open Source Consulting | Domain Registration