• 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?

Viewing 13 replies - 1 through 13 (of 13 total)
  • 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!

    Thread Starter f-varis

    (@f-varis)

    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?

    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.

    Thread Starter f-varis

    (@f-varis)

    @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?

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

    Thread Starter f-varis

    (@f-varis)

    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?

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

    Thread Starter f-varis

    (@f-varis)

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

    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.

    Thread Starter f-varis

    (@f-varis)

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

    Mika Epstein

    (@ipstenu-dh)

    DreamHost Rep

    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 [email protected]

    Moderator Kira Schroder

    (@kirasong)

    4.5 Release Lead

    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:
    https://codex.www.ads-software.com/Editing_wp-config.php#Configure_Error_Logging

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Where can I find wp_config.php file?’ is closed to new replies.