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!
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.
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.
I hope this is the right forum for my question. I hope so, since I always seem to find the right solutions from you people. Here's my problem:
I'm working on a virtual host. successfully installed php, mysql etc.
I've uploaded some stuff on my wwwroot which is:
/home/httpd/vhosts/default/htdocs/
installed awstats, and here is the strange thing- I have a folder named:
awstatsicons with some gifs jpgs etc. when I try to view files from that folder, I get:
Forbidden
You don't have permission to access /awstatsicons/other/hp.png on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
but when I change the folder name from awstatsicons to lets say: icons,
It's fine! I get no error and I could see the file. (The same happened with another folder, once I changed the name I didn't get the 'forbidden' error any more) I tried googling to see if I could find a similar story. I didn't.(Everyone semed to say to place an index.htm file in the home directory, which I did)
Any ideas?
Thanks, really appreiciate if someone could hrlp me out here.
Are you possibly using a linux distro that has selinux enabled?
FWIW: I had a very similar problem using apache on a FC3 based system even after I did a chmod 777 on the directory that was forbidden. Once I disabled selnux, all was fine with apache and I could reset the directory permissions back to normal.
<Directory "/home/httpd/vhosts">
AllowOverride None
# Options SymLinksIfOwnerMatch
Options +Indexes FollowSymLinks
Order allow,deny
Allow from all
# php_admin_flag engine off
</Directory>
<Directory "/var/mailman">
AllowOverride None
Options SymLinksIfOwnerMatch
Order allow,deny
Allow from all
php_admin_flag engine off
</Directory>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.