WordPress 404 and 500 server errors Help
admin on Mar 13 2008 at 7:41 am | Filed under: wordpress
It is only fitting that we start our very first blog post with some setup help tips for WordPress that is installed on Cobalt Raq3 or Raq4 Apache Servers.
If you changed the permalink settings, then you might be getting 404 and 500 errors from your web server.
This tip may very well work with different web servers, but I will stay focused to the servers I mentioned above.
If you are having problems with wordpress comments, 500 server errors, 404 file not found, then use your favorite editor from an SSH or Telnet shell.
cd /home/sites/siteX/web/wordpress
or
cd /home/sites/siteX/web/<your new directory name>
Using your favorite text editor, edit the httpd.conf file:
<your text editor program name> /etc/httpd/conf/httpd.conf
scroll to your virtual host section.
This is ours:
<VirtualHost X.X.X.X>
ServerName blog.hughestech.com
ServerAdmin admin
DocumentRoot /home/sites/site2/web
Insert the following under the DocumentRoot and Before the RewriteEngine on:
<Directory /home/sites/site2/web/blog>
AllowOverride All
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
# Make sure you set the /site[number] to your site number and the /web/[sub-directory] to your directory name, our is [blog] wordpress by default is [wordpress]
Save the httpd.conf file
If wordpress is having a permissions problem with your .htaccess file:
Again using your text editor create a file named .htaccess
now insert the following:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress
Remember our wordpress directory is called blog, the default for wordpress is wordpress.
now change the permissions of the .htaccess file:
chmod 777 .htaccess
If you still have issues, then leave us a comment
Leave a Reply
You must be logged in to post a comment.
