We help IT Professionals succeed at work.

Wordpress on Godaddy Free Hosting

LZ1 used Ask the Experts™
Hi Experts!!

I have a client that absolutley wants to stay on free Godaddy hosting and install Wordpress. As I'm sure you're aware, you can't simply "install" it from their free applications if your on free hosting.  I keep getting a
"Error establishing a database connection".

I've Googled, Binged and Yahooed everything under the sun and can't figure it out.  I just need to know that either there's a way to get this working or not.  I've changed the wp-config.php file numerous times, deleted and remade databases but nothing is connecting.

The full error is:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at wordpress.db.4441573.hostedresource.com. This could mean your host's database server is down.

•Are you sure you have the correct username and password?
•Are you sure that you have typed the correct hostname?
•Are you sure that the database server is running?
If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Are you sure a database comes with godaddy free hosting? If it does, installing Wordpress is not that hard, as long as your database variables are correct. Have you checked your database info for typos?
Top Expert 2011


I've checked and triple checked.  I have all the variables in the wp-config.php file, but no go.  Also, I can have up to 10 MySQL DB's on one hosting account.
Can you post the contents of your wp-config file, but of course, change your user name to "username" and your password to "password" to protect that information.
And  your got:

from Godaddy, right?

Top Expert 2011


Yep.  I copied and pasted everything right from Godaddy's MySQL configuration page.



 * The base configurations of the WordPress.


 * This file has the following configurations: MySQL settings, Table Prefix,

 * Secret Keys, WordPress Language, and ABSPATH. You can find more information

 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing

 * wp-config.php} Codex page. You can get the MySQL settings from your web host.


 * This file is used by the wp-config.php creation script during the

 * installation. You don't have to use the web site, you can just copy this file

 * to "wp-config.php" and fill in the values.


 * @package WordPress


// ** MySQL settings - You can get this info from your web host ** //

/** The name of the database for WordPress */
define('DB_NAME', 'my_name');

/** MySQL database username */
define('DB_USER', 'my_username ');

/** MySQL database password */
define('DB_PASSWORD', 'my_password');

/** MySQL hostname */
define('DB_HOST', 'copied and pasted right from Godaddy');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');


 * Authentication Unique Keys and Salts.


 * Change these to different unique phrases!

 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}

 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.


 * @since 2.6.0


define('AUTH_KEY',        'BVbi|P3iQ:s>W^V=GK6gl@g{+|~A{RX6~&uedp*$!$ fnJsz?$7JABkm8m)w9B|I');

define('SECURE_AUTH_KEY', '-]nL9+2C+D~3wF>7IWx,TL`:g6|hdDKKGdsm0~PL1|_# s#HE&;,9TK2h0u|r1U-');

define('LOGGED_IN_KEY',   '>44&1mI&@,oWn#T%S8%+V2[kmk!mPth&|N&yqvh>?#k46fn/1ub@KvT(0}dUn~iP');

define('NONCE_KEY',       '?|Ip9aZ1s|yUpn%|=+D|Lh./7T3<CR(n.#88 eY`!2^?<ztf@QB~vf,p6u?Ez4o;');

define('AUTH_SALT',        'put your unique phrase here');

define('SECURE_AUTH_SALT', 'put your unique phrase here');

define('LOGGED_IN_SALT',   'put your unique phrase here');

define('NONCE_SALT',       'put your unique phrase here');



 * WordPress Database Table prefix.


 * You can have multiple installations in one database if you give each a unique

 * prefix. Only numbers, letters, and underscores please!


$table_prefix  = 'wp_';


 * WordPress Localized Language, defaults to English.


 * Change this to localize WordPress.  A corresponding MO file for the chosen

 * language must be installed to wp-content/languages. For example, install

 * de.mo to wp-content/languages and set WPLANG to 'de' to enable German

 * language support.


define ('WPLANG', '');


 * For developers: WordPress debugging mode.


 * Change this to true to enable the display of notices during development.

 * It is strongly recommended that plugin and theme developers use WP_DEBUG

 * in their development environments.


define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */

if ( !defined('ABSPATH') )

	define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */

require_once(ABSPATH . 'wp-settings.php');

Open in new window

In godaddy, the database name and username are the same right? And all of the db hosts I have used on Godaddy have "secureserver" in the hostname. Are these things true for you?
This is probably a typo when you copied this info into experts exchange, but make sure you don't have a space inside the name, username, password, like you have done in the username:
'my_username '
Top Expert 2011


Nope.  No spaces.  I did read at one point though, that no matter what Godaddy will not allow you to setup WP on a free plan.
Don't talk to me.
Hi LZ1,

1) Do you have a link to any page at GoDaddy that describes the free hosting plan?  I want to see what they offer with that and maybe it will give me a clue as to what to try.

2) It would be fairly trivial to set up a server to ignore calls to a file that WP needs to run.  If GoDaddy is adamant about not letting you do it, there's very little we can do and your client may need to learn the meaning of "the ISP won't allow it"

3) What you could do is setup a remotely hosted WordPress (http://wordpress.com/) and then just include it in a iframe on the clients domain...
True, you could sign up for a free wordpress blog:
and then have the domain name redirect to it, it will be something like yourclientsdomain.wordpress.com.

You can have the domain name redirect either just point to the free blog, or mask it so you only see yourclientsdomain.com, and not yourclientsdomain.wordpress.com.

Top Expert 2011


Thanks for everything thus far guys.  
Here is the godaddy link for their hosting plans:

WP is listed in there under Linux plan details.  (yes, it is the free Linux plan)

I'd rather not go the way of the iFrame if I can help it.  I may just need to tell the client that this will not work unless you pony up some $$$.  

Let me know if there is anything else I can do, otherwise I will award points and close the question
Using a redirect does NOT involve an iframe. I have used a redirect on this website:
which then redirects to the actual site, and this site:
where  I have masked the real URL in the godaddy domain manager. You can't see it, but the site is actually here:
No iframes needed.
Top Expert 2011


Thanks guys!  I'm just going to make him pony up the $40/year for Godaddy hosting.