WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Trying to put WP on my pc for testing can't open wp-config (13 posts)

  1. Nicola67
    Member
    Posted 3 years ago #

    I am following instructions at webdesignerwall.com for installing on local pc for test site. Downloaded wordpress into folder with path C:\xampp\htdocs\testsite\wordpress. I renamed wp-config-sample.php to wp-config.php as instructed. I want to open this file and reset db_name, user, password, host, but WinZip tells me "Cannot open file: it does not appear to be a valid archive." I started over with the download to make sure the download was good. Also tried opening wp-config-sample.php without renaming. Same result.
    Help....Please :)

  2. govpatel
    Member
    Posted 3 years ago #

    To edit your wp-config.php you need to use editor like Notepad++

    you should be able to use the install script
    like
    http://localhost/testsite/wordpress/wp-admin/install.php

  3. Nicola67
    Member
    Posted 3 years ago #

    how do I edit my wp-config.php? I am a beginner. I cannot open this file. It is zipped.

  4. govpatel
    Member
    Posted 3 years ago #

    You need to unzip the wordpress folder you downloaded and you will have another unzipped folder called wordpress you need have that folder in \htdocs\testsite not unzipped one.

  5. Nicola67
    Member
    Posted 3 years ago #

    When I try to unzip the wordpress file wp-config.php, I get the message:
    "Cannot open file: it does not appear to be a valid archive."
    The file will not open using WinZip.

  6. Slightly dated, but this guide should help, too:

    http://tamba2.org.uk/wordpress/xampp/

  7. esmi
    Forum Moderator
    Posted 3 years ago #

    wp-config.php isn't a zip archive. It's just a file. Try opening it using a plain text editor like NotePad.

  8. govpatel
    Member
    Posted 3 years ago #

    wp-config.php file not zipped you need open in the editor to edit the file.

  9. Nicola67
    Member
    Posted 3 years ago #

    Yey! I have it open in Notepad. Will now attempt changes. I opened the file that is located here: C:\xampp\htdocs\testsite\wordpress. I hope that is ok.

  10. esmi
    Forum Moderator
    Posted 3 years ago #

    That sounds about right.

  11. Nicola67
    Member
    Posted 3 years ago #

    I made the changes and saved the file in Notepad. I then opened a new browser and entered this address: http://localhost/testsite/wordpress/wp-admin/install.php.

    I got the message: Warning: define() expects at least 2 parameters, 1 given in C:\xampp\htdocs\testsite\wordpress\wp-config.php on line 22

  12. esmi
    Forum Moderator
    Posted 3 years ago #

    Go through wp-config.php again. Sounds like you left something out or inadvertently deleted too much.

  13. Nicola67
    Member
    Posted 3 years ago #

    Yes, yes, YES!!! Got it. Thanks to all who helped. Somewhere, somehow I think I screwed up a password between MySql and PHPadmin, which I attempted to fix (successfully I think) by editing in php config file. Then I created a new user for the database wordpress in phpMyAdmin, and tried to straighten out all the pathways and usernames, passwords etc. Somehow, like making sausage, it worked. Only it was like making sausage using a german recipe and a german/english dictionary.

    WordPress is now functioning on my computer.

    Thanks again for all the tips

Topic Closed

This topic has been closed to new replies.

About this Topic