Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th September 2010, 05:55
LinuxOnMyMac LinuxOnMyMac is offline
Junior Member
 
Join Date: Sep 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Fixing 404 Not Found Errors on Apache on Centos 5 x86_64 Dedi

Hi,

I know there's something I need to do to be able to get access to my blog directories on my Centos 5.4 x86_64 dedicated server. I have set up subdirectories like "www.thisismyblog.com/blogdirectory" and, when I put that URL into the browswer window on either my Mac or Windows boxes, I get "404 Not Found. The requested URL /blogdirectory was not found on this server".

I've made sure the group/user permissions match the apache server (using chown) and the directories contain the wordpress software files.

The content is in "/var/www/html" and I haven't configured the <Directory /> settings beyond the default. Further it's configured not to allow overrides, but "order allow, deny" and "Allow from all".

My question is what Apache config file settings may affect my ability to access to my server's subdirectories?

Is there anything else I should know or consider?

What would help me best is solutions-oriented responses so I can get access to the content in my blog subdirectories and get my blogs live. Thank you.

Lady Techie
Reply With Quote
Sponsored Links
  #2  
Old 29th September 2010, 19:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's the output of
Code:
ls -la /var/www/html
?
Can you post the Apache vhost configuration?

Are there more than one vhosts on the server, or do you just use the default vhost?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 1st October 2010, 04:06
LinuxOnMyMac LinuxOnMyMac is offline
Junior Member
 
Join Date: Sep 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Fixing 404 Not Found Errors on Apache on Centos 5 x86_64 Dedi

Thank you, falko, for trying to help me.

The output of ls -la /var/www/html is similar to (I changed the name of the blog directories):

drwxr-xr-x 14 root root 4096 Sep 7 18:07 .
drwxr-xr-x 9 root root 4096 Sep 5 20:38 ..
drwxr-xr-x 3 apache apache 4096 Sep 9 22:28 firstblog
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 secondblog
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 thirdflyblog
drwxr-xr-x 11 apache apache 4096 Sep 12 02:36 fourthblog
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 fifthblog
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 sixthblog
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 seventhblog
drwxr-xr-x 2 apache apache 4096 Sep 7 18:11 mailserver
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 eighththblog
drwxr-xr-x 2 apache apache 4096 Sep 7 17:58 mailserver
drwxr-xr-x 3 apache apache 4096 Sep 9 22:27 ninthblog
drwxr-xr-x 8 apache apache 4096 Sep 7 00:39 dnserveradmin

There are a number of vhosts on the server:

<VirtualHost *:80>
ServerAdmin webadmin@firstwebsite.com
DocumentRoot "/var/www/html"
ServerName firstwebsite.com
ErrorLog logs/firstwebsite.com-error_log
CustomLog logs/firstwebsite.vom-access_log common
</VirtualHost>

<VirtualHost *:443>
ServerAdmin webadmin@https://server.firstwebsite.com
DocumentRoot "/var/www/html/"
ServerName server.firstwebsite.com
ErrorLog logs/server.firstwebsite.com-error_log
CustomLog logs/server.firstwebsite.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.firstblog.com
DocumentRoot "/var/www/html/firstblog"
ServerName www.firstblog.com
ErrorLog logs/www.firstblog.com-error_log
CustomLog logs/www.firstblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.secondblog.com
DocumentRoot "/var/www/html/secondblog"
ServerName www.secondblog.com
ErrorLog logs/www.secondblog.com-error_log
CustomLog logs/www.secondblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.thirdblog.me
DocumentRoot "/var/www/html/thirdblog"
ServerName www.thirdblog.me
ErrorLog logs/www.thirdblog.me-error_log
CustomLog logs/www.thirdblog.me-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.fourthblog.com
DocumentRoot "/var/www/html/fourthblog"
ServerName www.fourthblog.com
ErrorLog logs/www.fourthblog.com-error_log
CustomLog logs/www.fourthblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.fifthblog.com
DocumentRoot "/var/www/html/fifthblog"
ServerName www.fifthblog.com
ErrorLog logs/www.fifthblog.com-error_log
CustomLog logs/www.fifthblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.sixthblog.com
DocumentRoot "/var/www/html/sixthblog"
ServerName www.sixthblog.com
ErrorLog logs/www.sixthblog.com-error_log
CustomLog logs/www.sixthblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.seventhblog.com
DocumentRoot "/var/www/html/seventhblog"
ServerName www.seventhblog.com
ErrorLog logs/www.seventhblog.com-error_log
CustomLog logs/www.seventhblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.eighthblog.com
DocumentRoot "/var/www/html/eighthblog"
ServerName www.eighthblog.com
ErrorLog logs/www.eighthblog.com-error_log
CustomLog logs/www.eighthblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.ninthblog.com
DocumentRoot "/var/www/html/ninthblog"
ServerName www.ninthblog.com
ErrorLog logs/www.ninthblog.com-error_log
CustomLog logs/www.ninthblog.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.secondwebsite.com
DocumentRoot "/var/www/html"
ServerName www.secondwebsite.com
ErrorLog logs/www.secondwebsite.com-error_log
CustomLog logs/www.secondwebsite.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.thirdwebsite.com
DocumentRoot "/var/www/html"
ServerName www.thirdwebsite.com
ErrorLog logs/www.thirdwebsite.com-error_log
CustomLog logs/www.thirdwebsite.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.fourthwebsite.com
DocumentRoot "/var/www/html"
ServerName www.fourthwebsite.com
ErrorLog logs/www.fourthwebsite.com-error_log
CustomLog logs/www.fourthwebsite.com-access_log common
</VirtualHost>

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.fifthwebsite.com
DocumentRoot "/var/www/html"
ServerName www.fifthwebsite.com
ErrorLog logs/www.fifthwebsite.com-error_log
CustomLog logs/www.fifthwebsite.com-access_log common
</VirtualHost>

Please let me know what to try next.

BTW, I have the following directory permissions format:

<Directory "/var/www/html/documentrootsubdirectory">
Options +Indexes FollowSymLinks +ExecCGI
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>

Again, thanks for your help.

Lady Techie

Last edited by LinuxOnMyMac; 1st October 2010 at 06:54.
Reply With Quote
  #4  
Old 1st October 2010, 16:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Which vhost is giving you the 404 error?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 1st October 2010, 16:55
LinuxOnMyMac LinuxOnMyMac is offline
Junior Member
 
Join Date: Sep 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Fixing 404 Not Found Errors on Apache on Centos 5 x86_64 Dedi

This one:

drwxr-xr-x 11 apache apache 4096 Sep 12 02:36 fourthblog

OR

<VirtualHost 83.123.456.789:80>
ServerAdmin webadmin@www.fourthblog.com
DocumentRoot "/var/www/html/fourthblog"
ServerName www.fourthblog.com
ErrorLog logs/www.fourthblog.com-error_log
CustomLog logs/www.fourthblog.com-access_log common
</VirtualHost>

Thanks.

Lady Techie
Reply With Quote
  #6  
Old 2nd October 2010, 13:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Because /var/www/html/fourthblog is the document root, you must access the directory with www.fourthblog.com, not www.fourthblog.com/fourthblog (which would translate to the directory /var/www/html/fourthblog/fourthblog).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
404, apache, centos 5.4, x86_64

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3 - back-res a Backup and Restore script go0ogl3 Plugins/Modules/Addons 222 26th August 2014 05:00
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 20:58
Network questions regarding Ubuntu Server lubod Installation/Configuration 7 3rd January 2007 18:53
log files, rotation and emailing them hairydog2 General 65 11th October 2006 13:18
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 00:45


All times are GMT +2. The time now is 20:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.