Forums

Unable acsess wp-settings.php (2 posts)

  1. Beatnut
    Member
    Posted 4 years ago #

    After editing wp-config.php and uploading WP to my homepage, I recieve the following message when I tries to open wp-admin/install.php:

    Warning: require_once() [function.require-once]: Unable to access /home/virtual/academynightrace.com/public_html/wp-settings.php in /home/virtual/academynightrace.com/public_html/wp-config.php on line 22
    
    Warning: require_once(/home/virtual/academynightrace.com/public_html/wp-settings.php) [function.require-once]: failed to open stream: No such file or directory in /home/virtual/academynightrace.com/public_html/wp-config.php on line 22
    
    Fatal error: require_once() [function.require]: Failed opening required '/home/virtual/academynightrace.com/public_html/wp-settings.php' (include_path='.:/usr/local/lib/php') in /home/virtual/academynightrace.com/public_html/wp-config.php on line 22

    I get almost the same message at teh index-page also.

    The wp-config.php looks like this(except the password ;-) ):

    <?php
    // ** MySQL settings ** //
    define('DB_NAME', 'mysql04.cliche.no');    // The name of the database
    define('DB_USER', 'academynightrace.com');     // Your MySQL username
    define('DB_PASSWORD', '*****'); // ...and password
    define('DB_HOST', 'localhost');    // 99% chance you won't need to change this value
    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');
    ?>

    Anyone who knows what wrong?

  2. MichaelH
    Volunteer
    Posted 4 years ago #

    I would consider deleting and reuploading your wordpress files. Make sure you are using ASCII mode to upload the files. Please review Uploading WordPress to a remote host.

    Also I will guess that mysql04.cliche.no is NOT your DB_NAME but your DB_HOST.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.