• Resolved matthewgeier

    (@matthewgeier)


    I can’t get the wp-content/db.php thing to work.

    I get no error activating the plugin, but the link is not made. When I look in my web host, the db.php is not there.

    As i’m on a shared host, I do not have command line access. If I try to put a copy of db.php into my wp-content directory using ftp, it still doesn’t work.
    Does the code REQUIRE it to be a symlink ?

    https://www.ads-software.com/plugins/query-monitor/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Hi Matthew,

    If you have FTP access to your files, you should be able to relax the file permissions of the wp-content directory so it’s writable. Then deactivate and reactivate Query Monitor and it’ll attempt to put the db.php symlink into place again.

    Failing that, you can copy the file into place instead of symlinking it (as you’ve already done), and then edit line 40 so it points to the relative path to the Backtrace.php file in Query Monitor plugin directory, which is probably plugins/query-monitor/classes/Backtrace.php.

    The reason it uses a symlink by default is to avoid problems when the plugin gets updated and this file needs to change.

    John

    Thread Starter matthewgeier

    (@matthewgeier)

    Then deactivate and reactivate Query Monitor and it’ll attempt to put the db.php symlink into place again.

    It appears my shared webhost has installed some sort of security extension to PHP. The ‘symlink’ function silently fails even if the folder is writeable.

    Even running a php script that does nothing but call ‘symlink()’ fails.

    I had to put the full path into line 40 before it would work for me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Any tips for db.php’ is closed to new replies.