WordPress.org

Forums

There doesn't seem to be a wp-config.php file... (33 posts)

  1. garhi
    Member
    Posted 10 years ago #

    I am having troubles with this "5 minute installation". the install.php is not seeing the wp-config.php. I uploaded the installation files into a subdirectory called "blog". How to I direct the install.php to find the file?

    my line 3 is like this at present:

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

    what am I doing wrong?

  2. garhi
    Member
    Posted 10 years ago #

    well not I'm connected but it can't connect to the database. Gotta love those cheap hosts! I'll probably have to change hosts to get this thing running, we'll see...

  3. khlara
    Member
    Posted 10 years ago #

    Hey, I'm having this same problem and I'm hoping someone can help. I installed all the files to: http://www.tagnout.com/quella/ and it says that no wp-config-sample.php exsists (and it does, I uploaded that) and I also uploaded wp-config.php with the proper fields. There's no white space or whatever. However, I can't get a single thing to show.
    I use either DOS prompt or FileZilla to edit all my files. This is the only access I have to my website. However, I can get information from my host provider if needed. He followed the install instructions as well and couldn't get it to work either.
    Help!

  4. lawtai
    Member
    Posted 10 years ago #

    Did you create a wp-config.php? WP comes with a wp-config-sample.php file, but that's just so that you can change the necessary elements such as database name, username, and password. wp-config-sample.php itself is just a dummy file which does no good without the correct user info. To create your own wp-config.php file, just make the necessary changes in the sample file and rename wp-config.php

  5. khlara
    Member
    Posted 10 years ago #

    I did that. I have both files up with the correct information in each. But nothing still shows up and when I go to install.php it says there's no config file.

  6. lawtai
    Member
    Posted 10 years ago #

    hmm, did you keep the same folder structure that's in the zip file?

  7. khlara
    Member
    Posted 10 years ago #

    Folder structure? When I undid the zip file there was just files. And I transferred those files into my quella sub-directory. I didn't change anything except the inputs for the wp-config.

  8. lawtai
    Member
    Posted 10 years ago #

    hmm, not sure if this'll make a difference. Try CHMODing your quella folder to 777?

  9. khlara
    Member
    Posted 10 years ago #

    How would I go about doing that? (I tried it in DOS Prompt and it said Invalid.)

  10. Is the wp-config.php in the same directory at install.php? Perhaps this will help: http://codex.wordpress.org/Installing_WordPress#Detailed_Instructions

  11. khlara
    Member
    Posted 10 years ago #

    The detailed instructions don't help as I do not have Cpanel or any of that stuff. I access my site through DOS Prompt or FileZilla.
    The wp-config is in the same directory as install.php.

  12. lawtai
    Member
    Posted 10 years ago #

    hmm, I thought the config file should be one folder under where the install.php file is. you can chmod in filezilla by right clicking and file attributes.

  13. The detailed instructions don't help as I do not have Cpanel or any of that stuff.

    You don't need "Cpanel or any of that stuff." What you do need is an FTP app (FileZilla) and a text editor. Please read the instructions.

  14. khlara
    Member
    Posted 10 years ago #

    I did the 777 thing. Still doesn't recognize the config file. There were no folders when I unzipped the file. Just all the files inside the zip folder which I then transferred into my quella subdirectory. I then went into the wp-config-sample.php, changed what needed to be changed, saved as wp-config.php, uploaded it and now it says it doesn't exsist.

  15. khlara
    Member
    Posted 10 years ago #

    Macmanx: I read the instructions. I have followed the instructions. Nothing shows up. Or if something does show up, it says that there is no wp-config.php . However, I have uploaded this file, so how can there not be one? I have also inserted the username, password and such that it requires me to do so in the config.
    I have placed the files into my subdirectory where I'd like them to appear. Again, nothing shows up.
    I try to run the install scrpt which tells me I do not have a wp-config.php file. But one has been uploaded.
    All the database information is correct. I have checked, doublechecked and rechecked this information.
    I'm pretty sure everything is running. The install script just doesn't understand I have uploaded the wp-config file.

  16. vkaryl
    Member
    Posted 10 years ago #

    khlara: what did you use to unzip the downloaded file? Are you on a pc or mac or a linux box? Or something more exotic like freebsd? When you unzip the file you downloaded, you should see in the wordpress folder the following sub-folders: wp-admin, wp-content, wp-images, and wp-includes. In the wp-content folder you should see the following folders: images, plugins, and themes. Each of those folders will have numerous files inside them.

    If none of that happened when you unzipped the downloaded distro, please post back, and I'll give you a link to where you can see which file goes in which folder so you can put things where they belong on your server. Until files "live" where wp expects to find them your wp-config.php file won't work....

  17. khlara
    Member
    Posted 10 years ago #

    I used Winzip to unzip the files. I'm on a PC running Windows Xp.

    There were no subfolders inside the zipped file. It was all just .php files and .gif files (with 2 .png files).
    There's no folders at all, just all .php files.

    I'm assuming I need to create these folders on the website, under my subdirectory.
    Thanks.

  18. lawtai
    Member
    Posted 10 years ago #

    hmm, I'd suggest redownloading WP. If you extract the zip out onto your computer, you'll end up with a wordpress folder and subfolders of that wordpress folder. If you're unzipping and not getting any folder structure, then something's wrong with your WP zip file.

  19. vkaryl
    Member
    Posted 10 years ago #

    Yeah, but really, winzip should have handled it for you. First try this: start the unzip operation again, but make sure you tell winzip to keep the folder structure intact (sorry, I can't remember what winzip actually says about that - I don't use it any more, winrar is so much better) and see if you get folders this time. You might have to look in "options" or "settings" or something to check on the folder structure setup - or it might even be called "paths".

    If that doesn't work post back - but it's nearly midnight here, so I'll be off to bed pretty soon, might not see a postback until tomorrow. Hang tough, if all else fails I'll list the files and where they go and give you an addy for it tomorrow, okay?

  20. khlara
    Member
    Posted 10 years ago #

    I downloaded and installed winrar and then re-downloaded the wordpress zip (just in case). Unzipped the new wordpress in winrar and all the folders are there!
    Hopefully it'll work now. If not, you'll be seeing this thread move up in the forum shortly.
    Thanks for the help.

  21. vkaryl
    Member
    Posted 10 years ago #

    Just dropped back by on my way to bed. Glad that worked! Post back and I'll check tomorrow, 'kay?

  22. moshu
    Member
    Posted 10 years ago #

    In Winzip after clicking on 'Extract' on the panel that appears in the left bottom corner there are 4 checkboxes (in my version at least) and one says: Use folder names - Make sure it's checked!

  23. khlara
    Member
    Posted 10 years ago #

    So, I reloaded everything and now the install works...better. I still get an error but that's because I believe I put in the wrong hostname. I e-mailed my web provider in the hopes he can tell me the hostname.
    The error is: Error establishing a database connection

    I have the password and username correct and I know the database is running, but the hostname is the only thing I can see as being wrong.

    But yay! It's working!....sort of...

  24. lawtai
    Member
    Posted 10 years ago #

    do you have phpmyadmin? Cause if you do, you can then go into the database and find out the database name yourself.

  25. khlara
    Member
    Posted 10 years ago #

    Unfortunately I don't. But I would do that if I could. Hopefully my web provider will get back to me soon and let me know.

  26. vkaryl
    Member
    Posted 10 years ago #

    Thumbs up, khlara! Keep us posted....

  27. khlara
    Member
    Posted 10 years ago #

    I went through install, and I got a bunch of errors "wordpressdb-contents cannot be found" or something like that. But I was still able to install. Got my username and password for the login into the database.
    So, I try to go log in and it gives me this:
    Directory Listing Denied
    This Virtual Directory does not allow contents to be listed.
    --
    So, how do I go about getting that fixed?

  28. vkaryl
    Member
    Posted 10 years ago #

    That's a weird one. I ran into that on a wordpress theme site somewhere recently too.... and I don't have any ideas for you on that really.

    In your database, do you have 9 tables showing? (Just to check that the install routine did at least that much of what it was supposed to do....)

  29. khlara
    Member
    Posted 10 years ago #

    It said it established the tables, but I didn't see anything.
    I'm e-mailing my host in the hopes he'll have an idea.

  30. wolverinespain
    Member
    Posted 10 years ago #

    hi, I have the same problem "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."
    I´m sure that I have uploaded the wp-config.php to my server, and the sub-folder are correct... I don´t know that is wrong...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.