403 after httpd-devel install

6 posts / 0 new
Last post
#1 Sat, 08/08/2009 - 09:09
SBNDawg

403 after httpd-devel install

I installed httpd-devel via the web-min software packages feature. Installed this to gain APXS.

Now all website access produces a 403 error. I am a beginner and I'm at a loss as what to do.

Thanks for any assistance.

-Roger

Sat, 08/08/2009 - 11:06
andreychek

Howdy,

Well, in theory, the httpd-devel package shouldn't do that :-)

If you log in over SSH, and restart Apache:

/etc/init.d/httpd restart

Do you see any errors?

Also, check out the system error logs for Apache -- in /var/log/httpd/error_log.

If you don't see anything there -- you might want to look in the individual error logs for the various domains you're trying. You can find those in $HOME/logs/error_log.

-Eric

Sat, 08/08/2009 - 11:23
SBNDawg

Hello...

Only thing unusual shows up in the domain error log.

Directory index forbidden by Options directive: /home//public_html/

I have no .htaccess setup for the domain. It's a fresh setup.

Thank you for the help.

-Roger

Sat, 08/08/2009 - 11:28
andreychek

Are there any files in your public_html dir?

What happens if you create an index.html file, and add some text to it -- does that work?

-Eric

Sat, 08/08/2009 - 11:38
SBNDawg

Well, in theory, the httpd-devel package shouldn't do that :-)

I don't know that much about Linux. But, I am well experienced windows network administrator and MCSE. I know all about the "in theory" thing... heheheh...

Well... with an index.html page present. It is displayed properly. So is this a suexec thingie??

Thanks again

Sat, 08/08/2009 - 11:47
andreychek

I can't really speak to why it worked before.

However, by default, Apache isn't setup to allow browsing of files.

That is, if you have a website setup (such as that index.html), it will gladly display it.

But if you just request a directory without an index file, for security reasons, it won't display the contents of the directory, and will instead show that 403 error.

To allow directory/file browsing, you could edit /etc/httpd/conf/httpd.conf, and for the VirtualHost sections you want to enable browsing on, look for the line beginning with "Options", and make sure one of the options enabled is "Indexes".

Then restart Apache:

/etc/init.d/httpd start

However, in general, it sounds like you may just need to upload your website, and you should be in good shape!

-Eric

Topic locked