Testing wordpress on my domain in a subfolder?

[ad_1]

I am learning wordpress and have a domain that already has a service at ‘/’. I am using nginx and added the following location direction:

location /wp {
deny all;
allow MY_PUBLIC_IP_ADDRESS;
alias /path/to/where/i/extracted/wordpress;
index index.php;
}

This just pulls up a notice that this is the index.php etc. But according to this: [https://www.tutorialspoint.com/wordpress/wordpress\_installation.htm](https://www.tutorialspoint.com/wordpress/wordpress_installation.htm)

It should be displaying the setup wizard. If i remove the `index index.php` line i get a 403 forbidden error.

I tried running these commands on the directory to set the correct permissions:

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

But i still get the 403 error. what am i doing wrong?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer