Install Wordpress into subdirectory on LEMP installation

November 29, 2018 434 views
LEMP WordPress

Hi there,

I've followed the below tutorial but changing the directory to /var/www/directory-name but having a '502 Bad Gateway' error when trying to view it in my browser.

https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-16-04

Any solutions would be appreciated, thank you.

1 comment
1 Answer

Hi albertramsbottom.

I've tried it with and without the block but had the same error message.

Thanks.

  • No I mean what did you put in here? As it would be

    <Directory /var/www/html/directory-name/>
    AllowOverride All
    </Directory>

    Cheers

    • Ah, sorry, this is what I added at the end of the config file;

      <Directory /var/www/directory-name/>
      AllowOverride All
      </Directory>

      Thanks.

Have another answer? Share your knowledge.