Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am getting the following error when I try to access my Wordpress website. It was working quite fine previously. Could anyone help me on this.

No configuration file found and no installation code available. Exiting...

share|improve this question

1 Answer 1

up vote 1 down vote accepted

In Wordpress there will be a default wp-config.php file and I think this has been missing from your package. Please Check if it is there, else create a new one with file name wp-config.php and Place the following code in it with appropriate Database Credentials.

<?php
// ** MySQL settings ** //
define('DB_NAME', 'DATABASE-NAME');    // The name of the database
define('DB_USER', 'DATABASE-USERNAME');     // Your MySQL username
define('DB_PASSWORD', 'DATABASE-PASSWORD'); // ...and password
define('DB_HOST', 'localhost');  
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

// You can have multiple installations in one database if you give each a unique prefix
$table_prefix  = 'wp_';   // Only numbers, letters, and underscores please!

// 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', '');

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

define('ABSPATH', dirname(__FILE__).'/');
require_once(ABSPATH.'wp-settings.php');
?>
share|improve this answer
    
ok i will check that and revert back –  Thejdeep Apr 8 '13 at 9:58
    
thanks uzair that one solved my issue thanks alot....!You are awesome....! –  Thejdeep Apr 8 '13 at 10:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.