Report this

What is the reason for this report?

I need help to properly configure wordpress subdirectory + nginx

Posted on May 6, 2018
LS1

By LS1

So far I have installed wordpress on mysite.com/blog and it works until know.

But I have 2 more questions.

  1. Should I create another php-fpm pool site?

  2. What about opcache, how can I configure it for mysite.com/blog ?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You should not need to do either of these things. Creating a second site by using a different domain or subdomain would be a separate server block in Nginx and then would require the same configuration as your main site including a new server block, PHP-FPM configuration, etc.

Since you are running /blog under your main site, as far as Nginx is concerned all your site’s content is one PHP website.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.