WordPress.org

Ready to get started?Download WordPress

Forums

install.php/wp-config.php error. (10 posts)

  1. Lila
    Member
    Posted 9 years ago #

    Hi; I'm sure this topic has been made countless times before, but here it is again: when accessing install.php, I come up with this error --
    "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."
    However, my wp-config.php file seems to be fine --
    <?php
    /** WordPress's config file **/
    /** http://wordpress.org/ **/
    // ** MySQL settings ** //
    define('DB_NAME', 'seanmys_wordpressdb'); // The name of the database
    define('DB_USER', 'seanmys_Lilablog'); // Your MySQL username
    define('DB_PASSWORD', '*****'); // ...and password
    define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
    // Change the prefix if you want to have multiple blogs in a single database.
    $table_prefix = 'wp_'; // example: 'wp_' or 'b2' or 'mylogin_'
    // Change this to localize WordPress. A corresponding MO file for the
    // chosen language must be installed to wp-includes/languages.
    // For example, install de.mo to wp-includes/languages and set WPLANG to 'de'
    // to enable German language support.
    define ('WPLANG', '');
    /* Stop editing */
    $server = DB_HOST;
    $loginsql = DB_USER;
    $passsql = DB_PASSWORD;
    $base = DB_NAME;
    define('ABSPATH', dirname(__FILE__).'/');
    // Get everything else
    require_once(ABSPATH.'wp-settings.php');
    ?>
    In addition, I'm not sure if this is important or not, but when I try to access wp-admin.install.php as directed in the readme, I just get a 404 error, but if I acces install.php by itself it comes up with the aforementioned error.
    I'd be grateful for some assistance. Thanks.

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    This sounds like an ftp or unzipping error.
    When you unzipped the downloaded file, you should have had a folder called 'wordpress'
    In that should have been the following folders
    wp-admin
    wp-includes
    wp-images
    wp-content
    and then a list of files.
    Those should all have been uploaded exactly like that into the folder you want your blog to be in.
    If they unzipped into one great big list of files, that is what has caused the problem. You have to tell Winzip or the Windows thing to 'preserve file structure'

  3. Lila
    Member
    Posted 9 years ago #

    For some reason, no matter how I try downloading the zip file, the folders inside the zip file are not preserved (I'm on Firefox, by the way). Could you tell me which files belong in which folders? Thanks again. --Lila

  4. Joni
    Member
    Posted 9 years ago #

    You can get a trial version of WinZip at http://www.winzip.com. Don't open the zipped file, SAVE it to your hard drive. If you are running Windows XP, you can unzip the zipped file even without Winzip. Just right click on the zip file and you should be good to go. Even Windows has enough sense to ask if you want the directory structure preserved.
    HTH.

  5. Lila
    Member
    Posted 9 years ago #

    I have WinZip -- however, I've been using "classic" version, which didn't open the zip file with folders; I just tried the "wizard" version now and it did open with the folders, so everything's good. Sorry for all the trouble, and thanks for the help.

  6. Lila
    Member
    Posted 9 years ago #

    Oh, um, now I have gone through the installation steps. However, once I log in, I receive this error on an otherwise blank page:
    Warning: Cannot modify header information - headers already sent by (output started at /home/seanmys/public_html/flowers/wp-config.php:34) in /home/seanmys/public_html/flowers/wp-login.php on line 123
    Warning: Cannot modify header information - headers already sent by (output started at /home/seanmys/public_html/flowers/wp-config.php:34) in /home/seanmys/public_html/flowers/wp-login.php on line 124
    Warning: Cannot modify header information - headers already sent by (output started at /home/seanmys/public_html/flowers/wp-config.php:34) in /home/seanmys/public_html/flowers/wp-login.php on line 126
    Warning: Cannot modify header information - headers already sent by (output started at /home/seanmys/public_html/flowers/wp-config.php:34) in /home/seanmys/public_html/flowers/wp-login.php on line 127
    Warning: Cannot modify header information - headers already sent by (output started at /home/seanmys/public_html/flowers/wp-config.php:34) in /home/seanmys/public_html/flowers/wp-login.php on line 128
    Warning: Cannot modify header information - headers already sent by (output started at /home/seanmys/public_html/flowers/wp-config.php:34) in /home/seanmys/public_html/flowers/wp-login.php on line 129
    Warning: Cannot modify header information - headers already sent by (output started at /home/seanmys/public_html/flowers/wp-config.php:34) in /home/seanmys/public_html/flowers/wp-login.php on line 149
    Is this problem fixable?

  7. serendipity
    Member
    Posted 9 years ago #

    Do a search on the forums for "cannot modify header" and/or "whitespace". Or on codex.wordpress.org. The problem is very common and has been explained numerous times.

  8. serendipity
    Member
    Posted 9 years ago #

    P.S.: It's very easy to fix it :)

  9. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Glad it got sorted, and http://faq.wordpress.net/view.php?p=7

  10. Lila
    Member
    Posted 9 years ago #

    I seem to be led along by a string of errors. I have edited out the unnecessary spaces in wp-config.php. However, once they were edited, my index (as in, the blog which should have shown up at flowers.sea-myst.net) is a blank page, and wp-login.php now states:
    Fatal error: Call to undefined function: get_userdatabylogin() in /home/seanmys/public_html/flowers/wp-login.php on line 243
    However, where I believe "get_userdatabylogin" is in my coding (I'm quite new to PHP) does have text within the parentheses:
    $userdata = get_userdatabylogin($user_login);
    I did not find similar errors in what I read of the thread aforelinked (if there actually are, my apologies for repetition).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.