unable to access any file

when i access any file on any site in my server, i get forbidden notice

Status: 
Closed (fixed)

Comments

bislinks's picture
Submitted by bislinks on Tue, 03/30/2010 - 09:17 Pro Licensee

i am unable to access 13935. i get access denied on virtualmin.com

Well, that's odd. But, no problem, I'll paste in my response from the other request into here:

Do you know what may have changed on your server recently that may have triggered a problem on multiple domains?

It seems to be a permissions issue of some kind, though I'm not sure why at the moment.

It appears possible to temporarily resolve it, by setting the home dir to use permissions "751", and public_html to "755".

But that shouldn't be necessary when using suexec.

So if you have any thoughts on what may have triggered the problem, that may help us figure out what's awry. Thanks!

bislinks's picture
Submitted by bislinks on Tue, 03/30/2010 - 10:49 Pro Licensee

i installed nagios, htop, atop, yesterday/last week. do you think one of them caused the problem. I did not have this problem before installing any of the above.

Okay, with Jamie's help, I think I have the problem figured out.

In order to read those directories, each of your users has to be a member of the "apache" group. But they're not, none of them are. In fact, the only user who's a member of the apache group is "nagios". That looks a bit suspicious, like something went awry during the Nagios install and altered the members of the Apache group in an undesirable way.

I'm not sure how that might have happened, though I do know how to fix it :-)

I went through your /etc/groups file, and re-added the "apache" group to all your users.

After restarting Apache, it seems to work as expected. Can you verify that?

bislinks's picture
Submitted by bislinks on Tue, 03/30/2010 - 16:04 Pro Licensee

I changed the permissions back to 750 and the pages/sites are loading correctly.

Thanks Andreychek and Jamie.

cj

Thanks for the update, I'm glad to hear it's working! Let us know if you have any other questions.

bislinks's picture
Submitted by bislinks on Mon, 04/05/2010 - 00:29 Pro Licensee

Hi,

i am still unable to access a server in particular: analytics.bislinks.com (running piwik exclusively on it)

also i get this error when I restart httpd: [Mon Apr 05 00:25:11 2010] [warn] Useless use of AllowOverride in line 1317. It does not look like a major error as httpd does restart as far as I understand.

i also uninstalled nagios.

bislinks's picture
Submitted by bislinks on Mon, 04/05/2010 - 00:30 Pro Licensee

Hi,

i am still unable to access a server in particular: analytics.bislinks.com (running piwik exclusively on it)

also i get this error when I restart httpd: [Mon Apr 05 00:25:11 2010] [warn] Useless use of AllowOverride in line 1317. It does not look like a major error as httpd does restart as far as I understand.

i also uninstalled nagios.

It looks like the "apache" group still had to be added to the "analytics" group in /etc/groups.

I added that in there, and the index.html file from your site seems to be working.

You can ignore warning you see when restarting, that Apache isn't a problem. Alternatively, you could comment out line 1317 of your Apache conf if you'd like to make that quieter.

Let us know if you have other problems.

Automatically closed -- issue fixed for 2 weeks with no activity.