WordPress.org

Ready to get started?Download WordPress

Forums

Where can I find wp_config.php file? (14 posts)

  1. f-varis
    Member
    Posted 1 year ago #

    I installed a plugin which has a bug. I contacted the author and told me to find the wp_config.php file in order to see the log errors. But I can't find the wp_config.php file. Where is it? Somewhere on the wp Dashboard? Or somewhere inside my hosting company? (Dreamhost)

    And if it's the second where exactly?

  2. Pothi
    Member
    Posted 1 year ago #

    The wp-config.php file can be accessed via FTP. It doesn't show any errors, though. However, we may enable debugging in wp-config.php file. That will create a file 'debug.log' in /wp-content/ folder (that can be accessed via FTP as well). Hope this helps!

  3. f-varis
    Member
    Posted 1 year ago #

    Thank you both for the answers.

    @Pothi
    Since you said about ftp I downloaded filezilla and did some experiments. I don't know much about FTP so I tried the "quick connect" option which only asks "host", "username" and "password".

    I put my domain name as a host (not my hosting service.. right?)
    My ftp username (my hosting provider adds automatically a new ftp user)
    And my password. I connected successfully but the only things I can see there are only 2 directories. The "Maildir" and "logs". "Logs" have nothing inside. A Wp folder doesn't exist. Now? Whee can I find wordpress?

    PS: Yes he did say something similar. To be exact: First, open the file wp_config.php and find the text "define ('WP_DEBUG', false);" and replace "false" to "true". What you said and what he said is the same thing?

  4. Pothi
    Member
    Posted 1 year ago #

    I put my domain name as a host (not my hosting service.. right?)

    That's right.

    A Wp folder doesn't exist.

    That's weird!

    Now? Whee can I find wordpress?

    Please check, if there are any other FTP accounts within Dreamhost panel. Alternatively, please check with Dreamhost to see, if they can help from here. As per DH wiki with Filezilla, there should be more than those two directories.

    What you said and what he said is the same thing?

    Yes.

  5. RobinInTexas
    Member
    Posted 1 year ago #

  6. f-varis
    Member
    Posted 1 year ago #

    @Robin
    Thank you! I'll read it thoroughly later

    @Pothi
    You were right! Dreamhost had 2 ftp users. I changed user, I logged in and I found the desired wp_config.php! At last!!

    Then I did as you told me. First I edited the file (I changed "false" as "true") but I can't see the "debug.log" into /wp-content/ folder. Why?

  7. Pothi
    Member
    Posted 1 year ago #

    Not sure why. May be you didn't upload the modified file?

  8. f-varis
    Member
    Posted 1 year ago #

    I did. Filezilla asked me if I want to upload it and I said yes. Then informed that the procedure ended.

    Also, something strange happened on my wordpress dashboard. Various notices appeared on the top of the screen. They look like this: Notice: Undefined index: error in (folder path here/)blah-blah.php on line "X"

    blah-blah = the filename of a php document
    "X" = The number of the line

    Is this the same as debug.log?

  9. Pothi
    Member
    Posted 1 year ago #

    Kind of. In debug.log , we may see more info.

  10. f-varis
    Member
    Posted 1 year ago #

    I see... One last question... is there a chance to find it somewhere else?

  11. Pothi
    Member
    Posted 1 year ago #

    Nope. The location of debug.log is fixed at /wp-content/ directory. If we don't have the right permission (that may vary depending on the host), WordPress can not create it.

  12. f-varis
    Member
    Posted 1 year ago #

    Ah... too bad. Well at least I tried...
    Thank you very much for all the info. Be well :)

  13. Ipstenu-DH
    DreamHost Rep
    Posted 1 year ago #

    put my domain name as a host (not my hosting service.. right?)
    My ftp username (my hosting provider adds automatically a new ftp user)
    And my password. I connected successfully but the only things I can see there are only 2 directories. The "Maildir" and "logs". "Logs" have nothing inside. A Wp folder doesn't exist. Now? Whee can I find wordpress?

    f-varis, there should be a folder for your domain name (like I have elftest.net in mine). If you;re not seeing that, can you post your domain and I'll go take a look for you?

    If you don't want to post, you can email me at mikae@support.dreamhost.com

  14. Mike Schroder
    DreamHost Technician
    Posted 1 year ago #

    Just to note, you'll only see a debug.log created if you have error logging enabled -- WP_DEBUG will help with displaying errors, but won't create a log file.

    If you want a log file, you'll want to enable debug logging with WP_DEBUG_LOG ( define('WP_DEBUG_LOG', true); )

    For some example full configurations, check out:
    http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Logging

Topic Closed

This topic has been closed to new replies.

About this Topic