Forums

no wp-config file (20 posts)

  1. Zac
    Member
    Posted 9 months ago #

    Well.. I havent made it too far. I have done countless WP installs but this is my first MU. I made the first mistake of creating a config file.. I learned that is wrong and deleted that. I set the permissions to the root and contents folder to 777 but now I can not navigate past the Create a Configuration File page. I click and nothing happens. Any idea on how I can move to step 2 ?

  2. Zac
    Member
    Posted 9 months ago #

    Reading a bit more it seems that this is because the MU install is sub to a root WP install. It looks like I could disable some of my root files during install to make it work but I am afraid I am going to bone my whole site.

  3. TonyBrown
    Member
    Posted 8 months ago #

    I'm having the same problem. I've installed Word Press numerous time without the friggin headache MU is giving me. I need to eventually be able to use BuddyPress but can't get past the

    "There doesn't seem to be a wp-config.php file. I need this before we can get started.

    Create a Configuration File" error message" I can't get past this screen. Any ideas?

  4. MrBrian
    Member
    Posted 8 months ago #

    If wpmu doesn't create the config file, it's because it can't. You either need the root folder permissions as 777 or I believe you might be able to create an empty wp-config.php file and chmod it 777 for the install, then chmod the permission back afterwards for security reasons.

  5. bizref
    Member
    Posted 8 months ago #

    I don't understand why the wp-config.php file isn't even showing up in the unpacked zip file that I downloaded ... isn't there just a wp-config.php file I can upload from somewhere else?

    Changing permissions to 777 doesn't move me past the "There doesn't seem to be a wp-config.php file. I need this before we can get started." error: and it just keeps refreshing this page, doesn't move forward when I click "create a config file"

    I tried creating a blank config file but got a fatal error message regarding the blog-header.php or something, line 20 ... so that didn't work.

    I don't get where the file is ...? It's not even on my hard drive...?

  6. SteveAtty
    Member
    Posted 8 months ago #

    bizref - there isn't one. Its created on the fly by the install process. A blank file will probably confuse it.

    You must have something set incorrectly on your server somewhere.

  7. GrunerNet
    Member
    Posted 8 months ago #

    I've been having the exact same problem, and it definitely was not a permissions problem, as all the relevant files and directories are owned by the user/group that apache is running as. Some test php scripts that created dummy files proved that.

    The problem, layed out again, is the following. After unpacking wordpress-mu, and pointing a browser to that location, a page comes up saying simply this:

    "There doesn't seem to be a wp-config.php file. I need this before we can get started."

    It also has a button saying "Create a Configuration File", but when this is pressed, nothing happens.

  8. GrunerNet
    Member
    Posted 8 months ago #

    Ok I stepped through it and found the problem.

    It turns out this will only happen if you have an already existing wp-config.php file in the directory just below the installation directory. This was happening to me because I had an installation of wordpress in the root folder, and it had its wp-config.php file there.

    The problem is with a single line (ver 2.7):
    In the file wp-blog-header.php, this line searches for two possible wp-config.php files:

    if ( !file_exists( dirname(__FILE__) . '/wp-config.php') && !file_exists( dirname( dirname(__FILE__) ) . '/wp-config.php')) {

    I guess this problem could be fixed by changing this line to:

    if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {

    I haven't tried that myself. I simply moved my root wordpress installation somewhere else temporarily.

  9. dainismichel
    Member
    Posted 8 months ago #

    Hi GrunerNet, that code snippet worked. Ain't that cool? If you like, get in touch with me through the contact form at http://www.music-composition-studio.com and I will paypal you a buck or two!

    Thanks for posting an effective solution!

    Best,
    Dainis

  10. NnamdiOkeke
    Member
    Posted 8 months ago #

    Thanx GrunerNet,
    nice pointout there.

    Well, i just changed the '&&' there to an 'OR'.

    Didn't have much time to investigate the code.
    But do think this way, it should work with
    subdomain mode and otherwise.

  11. chickenandporn
    Member
    Posted 8 months ago #

    Grab my RPM if it helps; or rebuild it yourself. Download details and rebuild details are at:

    http://tech.b.chickenandporn.com/2009/03/27/wordpress-mu-27-5-rpm/

    All it does is get around the concern of "did I copy it all there right?", but my installing into wordpress-mu, it should avoid/preserve your single-user install. You can even configure to use the same database, which I've done to show off old-vs-new themes and such.

  12. nickdunny
    Member
    Posted 7 months ago #

    Word.
    I finally signed up to wp.org forums, and mostly just to thank GrunerNet for the tip.

  13. herbigidea
    Member
    Posted 7 months ago #

    Thank you! It worked!!!

  14. mfalado
    Member
    Posted 3 months ago #

    Hi GrunerNet, buddy you save my life. Thanks vary much. Sorry for my poor english, im a brazilian, but a need reinforce you help.

    Congratulations.

  15. phxwebguy
    Member
    Posted 3 months ago #

    @GrunerNet Props. You rock! Thanks.

  16. pablogt
    Member
    Posted 3 months ago #

    if ( !file_exists( dirname(__FILE__) . '/wp-config.php') ) {

    This worked for as well... thank you GrunerNet

  17. whataboutki
    Member
    Posted 3 months ago #

    GrunerNet you are a God among men.

  18. TruSktr
    Member
    Posted 1 month ago #

    Wow, I would have been stuck on this for DAYS. Thanks GrunerNet! You'd think Auttomatic would fix this...

  19. dctag
    Member
    Posted 1 month ago #

    I love you GrunerNet You are a great man/woman and imho should be the one that got the Nobel Peace prize :-)

  20. andrea_r
    Member
    Posted 1 month ago #

Reply

You must log in to post.

About this Topic