Linux - SoftwareThis 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.
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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!