Linux - NewbieThis 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!
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 am using SUSE 10.0 and running my web page on Apache. I also teach computers at a community college and the class has files that the class can use with their homework. My problem is I want to add a directory such as http://mydomain.com/ccvfiles that would list a directory of the 4 folders, and each folder would contain their files for them to download. My question is how do I add this directory in Apache? If I go to my domain.com/ccv files now (I have added this folder) it tells me access denied. I appreciate all help in advance.
I use Apache through Yast, and then Network services/http server.
The Apache config file has nothing to do with it. Every directory below the root of the site should be visable. You can't "hide" a directory without setting that up in the configs. It is most certainly a permissions issue. If you have apache running as the default user, which is www-data, you may have changed the permissions for the owner, and if that isn't www-data, it won't work. Check who owns the directory, and all the permissions surrounding it.
The config file is most likely /etc/apache(2?)/apache2.conf.
The owner can be root, but then the 3rd group of permissions (others) should be allowed to read the files. I generally let whatever user apache is running as own the files in the website, but that is subjective and there are as many ways to do this as there are people using apache.
Make sure the directory where ccv points has a permissin of 755 or 750 for security. Check the logs where apache writes to. Usually it will be in /var/log/apache or /var/log/apache2. The log will give you some information why it is giving you permission denied. Probably apache is trying to open a directory but it is no where to be found. It is better that you edit the apache config by hand instead a useless GUI program doing it for you. Also you need to make you set the permission in apache correctly. Apache will create an html page of the directories and files if it is configured properly, so no need to write a fancy PHP or PERL file to do this.