• loaded my files, setup the config files and tried to run the install program and got this:

    There doesn’t seem to be a wp-config.php file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php file through a web interface, but this doesn’t work for all server setups. The safest way is to manually create the file.

    ??????

    the files are loaded in a subfolder called “wordpress”. The install command (…….com/wordpress/wp-admin/install.php) gives the above message. I notice that the install.php and the wp-config.php files are in different directories, but copying and pasting didnt seem to fix it.

    HELP?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hey, do you have a config.sample.php file?

    Also, your login.php and config.php should together outside of the wp-admin, wp-content, wp-includes folder.

    The config file should look like this:

    <?php
    // ** MySQL settings ** //
    define(‘DB_NAME’, ‘putyourdbnamehere’); // The name of the database
    define(‘DB_USER’, ‘usernamehere’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘yourpasswordhere’); // …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’);
    ?>

    I’m getting the same message (“wp-config.php file. I need this before we can get started. Need more help? We got it.” etc) after reinstalling. (Note that the start of the message is missing.}

    I ran the install from Firefox. When I tried it in IE7 it did nothing, not even show an error message. Weird.

    What’s puzzling me is that install.php looks for ‘../wp-config.php’ and the file is clearly in the directory immediately above.

    I’m tempted to put an absolute address into the install file, but I don’t know what other problems this might disguise.

    Did you rename the wp-sample-config.php to just wp-config.php?

    Yes. It’s not the first time I’ve installed WP.

    BTW, I decided to hard-code the path into the required file names listed at the start of install.php and it made no difference. This is one weird error.

    Are you installing WP in the root or a sub directory?

    It’s installed in F:/xampp/htdocs/[blogname]. When I installed it previously, it had a different blogname.

    I uninstalled both WP and XAMPP, reinstalled XAMPP, copied WP to the blogname directory, set up my database and user, changed wp-config-sample.php to wp-config.php and put in the database name, etc, and finally tried running install.php in Firefox.

    I’ve checked the registry but there’s nothing untoward there.

    This has reached the point of absurdity. I changed:

    if (!file_exists('../wp-config.php')) {...}
    to
    if (file_exists('../wp-config.php')) {...}

    and got the same result.

    I’m definitely executing the same program (checked via View Source in the browser). I’ve run the code through FF3, IE7, Opera, and Safari, and it fails in all of them.

    so obviously the server isnt executing the PHP. so that means its not a wordpress problem, right? thats where I’m led.

    You could well be right. I think I’m being thrown by the apparent processing of the wp_die command. But I should have realised that if the beginning of the message isn’t being printed, then the code must be being treated like HTML.

    Thanks for pointing me in the right direction.

    Problem solved. User error. Don’t install when you’re tired and don’t know whether you’re in the server or client space.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘“There doesn’t seem to be a wp-config.php file.”’ is closed to new replies.