Can't find Wordpress install directory?

Anyone knows what it would be?

I can't seem to access Linode through FTP/SSH after installing a plugin (P3 Performance) which checks the website to see what's slowing it down, while it was scanning I started getting Error 500 and now can't access through SSH/FTP to disable the plugin & the only way is Weblish and I can't seem to find the Wordpress directory.

1 Reply

Assuming you installed WP at the suggested location, you need to look at your apache2/nginx configuration (you don't say which web server you're using). That will tell you.

For apache2 the web server configuration file is (usually) at /etc/apache2/httpd.conf. The DocumentRoot directive gives the path you want.

For nginx, you're on your own as to the location of the configuration file you need to look at. When you find it, it will contain something similar to this:

server {
    listen       80;
    server_name  localhost;

    location / {
        root   /var/www;                  # << this is the path you want
        index  index.html index.htm;
    }

    #error_page  404              /404.html;

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /var/www;
    }
}

The usual document root location for both apache2/nginx is /var/www/html.

Happy hunting!

-- sw

P.S. You shouldn't use ftp…it's inherently insecure. sftp eliminates this shortcoming and, my now, your plugin(s) surely support it. Once you get ssh set up correctly, you get sftp as part of that.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct