Web Hosting Talk







View Full Version : Urgent Help about Wordpress


dewshare
09-15-2009, 02:06 PM
Hi

I am facing a problem that is "Database Connection error" on my blog since last two days I tried every thing but database is not connecting. My other sites on the same server are working well

Would you help me to resolve this Issue ??

I shall be thank full

CreativHost
09-15-2009, 02:10 PM
Have you checked your WordPress config file to ensure it has the correct details of the database for the WordPress that is getting the connection error? This link will help you located the config file for your site - http://codex.wordpress.org/Editing_wp-config.php

dewshare
09-15-2009, 02:13 PM
Yes all ready check this. Configuration is right. I check this carefully

In Firefox it gives Connection Error when I open site in IE it show 500 Internal server Error

CreativHost
09-15-2009, 02:18 PM
The internal server error is usually because of some error in the .htaccess file. Please try renaming the .htaccess file in both the root directory and wordpress directory to htaccess.txt.

Your .htaccess file (by default) should look something like -
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

The other reason of getting this error is when your php server is running out of memory if that happens the only thing to do is create a text file named php.ini and put the next line inside - memory=50mb

dewshare
09-16-2009, 07:13 AM
it does not work there is still DataBase Connection error please help

Avactis
09-16-2009, 07:46 AM
ask your hosting to check what is wrong,
quite possible that the forums DB was blocked, because of spam