LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-10-2004, 03:21 PM   #1
Baculus
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
A couple of Apache questions...


Greetings all - first time poster here!

I have a couple of questions that I've been attempting to resolve. Hopefully I can get some assistance on this board. So, here goes:

Question 1. I have installed Apache 2.0 on my Redhat box. What is the proper setup for the permissions and group of the /www and/or /html directories? I couldn't find any documentation on this issue. (I want to be able to allow some local users access at least to the /html directory for FTP and "put" purposes as well as non-local users being able to view the HTML pages in /html.) Basically, what I did was create a new group, "html," and changed the /www and /html directories to this group. I then chmoded the permissions of these directories to 771. First, was this the best way possible, as far as allowing local users access to these directories? Also, is 771 really the best permissions to use in this case? Am I taking the wrong direction for my purposes? I really like to find out what the standard method is for setting up the Apache 2.0 directories, as far as permissions and groups are concerned.

Also, do I really need to allow access for the /www, as opposed to the /html directory? (The full pathway is /var/www/html.) I come from more of an MS background (please forgive me!), so I sometimes get permission inheritance mixed up in my head, and whether or not a directory inherit's the parent directory's permissions.

Question 2: I created a test document, using at first Netscape's HTML editor. I made a very basic page, but without realizing it, the editor had put the version information, "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">," on the top of the page's HTML code. When I went to a local machine to view the page, which was a basic "Hello World" page, I could see the HTML code as opposed to the simple text message. (The page should have simply read as "Hello World" as opposed to seeing the actual HTML code.) After looking over everything, I looked at the page's HTML and noticed the DOCTYPE at the top. I then decided to create a very simple page using a text editor, and voila!, the page worked. The only difference between this page and the first one is that it was missing the DOCTYPE information. For some reason, when the HTML page had the "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">," Apache was not interpreting the HTML when this DOCTYPE was present.

Why is this? Is there a configuration I am missing in the httpd.conf?

I hope these questions make sense of some sort, and I apologize if I had made any errors. Any help would be highly appreciated!

Thanks in advance,

~Ivan
 
  


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
Apache, MySQL, PHP, a couple simple questions. The_Messiah Linux - Software 3 04-09-2005 05:17 PM
Couple of questions please tommytomato Linux - Newbie 7 06-07-2004 09:31 PM
A couple questions breider565 Linux - Newbie 3 06-04-2004 01:47 PM
couple O' questions pathogenik Slackware 10 04-22-2002 01:42 AM
A couple of questions LarcTongi Linux - General 1 03-14-2001 12:48 PM


All times are GMT -5. The time now is 01:11 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