logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Forbidden
Author
dforthman



Joined: 21 Jul 2007
Posts: 4
Location: Charlotte, NC

PostPosted: Sat 21 Jul '07 10:00    Post subject: Forbidden Reply with quote

My specs:
SuSe Linux 9.2
Apache2.2.4
PHP 4.4.7
MySQL5

Now, the problem:
After setting up Apache, MySQL, and PHP, I had my website up and running all nice-like. I went and changed the httpd.conf for virtual hosting, but now I can't seem to get anything but an "Access Forbidden" error message when I try to go to my website.

Any help, whatsoever, is greatly appreciated.

Here is my httpd.conf:
ADMIN EDIT: full httpd.conf listing trimmed per the Forum Rules
Code:

ServerRoot "/usr/local/apache2"
Listen 80

... REMOVED...

<IfModule !mpm_netware_module>
User wwwrun
Group www
</IfModule>

ServerAdmin dforthman(at)gmail.com
ServerName www.myshellhost.com:80

DocumentRoot "/var/www/html/myshellhost.com/www"

<Directory "/var/www/html/myshellhost/www">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<Directory "/var/www/html/christycarver.com/www">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<Directory "/var/www/html/acs">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

...REMOVED...

#VHosts
NameVirtualHost *:80

#User: Christy Carver
<VirtualHost *:80>
ServerName christy.myshellhost.com
ServerAlias www.christy.myshellhost.com *.christy.myshellhost.com
DocumentRoot /var/www/html/christycarver.com/www
</VirtualHost>

#[AcS]
<VirtualHost *:80>
ServerName acs.myshellhost.com
ServerAlias www.acs.myshellhost.com *.acs.myshellhost.com
DocumentRoot /var/www/html/acs
</VirtualHost>

#MyShellHost.com Main
<VirtualHost *:80>
ServerName www.myshellhost.com
ServerAlias myshellhost.com *.myshellhost.com
DocumentRoot /var/www/html/myshellhost.com/www
</VirtualHost>
Back to top
dforthman



Joined: 21 Jul 2007
Posts: 4
Location: Charlotte, NC

PostPosted: Sat 21 Jul '07 10:03    Post subject: Reply with quote

Edited
Code:
<Directory "/var/www/html/myshellhost.com/www">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

and still no change. However, I'm sure that didn't help.
Back to top
bentogoa



Joined: 09 Feb 2007
Posts: 66
Location: GOA

PostPosted: Sat 21 Jul '07 15:24    Post subject: Reply with quote

which OS are you using?

Webmaster
http://www.goanwap.com
Bento Fernandes
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Sat 21 Jul '07 16:11    Post subject: Reply with quote

Your problem may be with file permissions.

Check that the user wwwrun , or the group www, has read access to all the files in /var/www/html/...

Code:
chgrp -R www /var/www/html
-or-
Code:
chmod -R +r /var/www/html


-tom-
Back to top
dforthman



Joined: 21 Jul 2007
Posts: 4
Location: Charlotte, NC

PostPosted: Sun 22 Jul '07 18:18    Post subject: Reply with quote

bentogoa wrote:
which OS are you using?

Webmaster
http://www.goanwap.com
Bento Fernandes


I'm using SuSe Linux 9.2
Back to top
dforthman



Joined: 21 Jul 2007
Posts: 4
Location: Charlotte, NC

PostPosted: Sun 22 Jul '07 18:19    Post subject: Reply with quote

tdonovan wrote:
Your problem may be with file permissions.

Check that the user wwwrun , or the group www, has read access to all the files in /var/www/html/...

Code:
chgrp -R www /var/www/html
-or-
Code:
chmod -R +r /var/www/html


-tom-


Thanks for the reply, Tom.

However, it still gives the same error. Maybe I'll just reinstall Apache2.2 and see if that helps.
Back to top


Reply to topic   Topic: Forbidden View previous topic :: View next topic
Post new topic   Forum Index -> Apache