June 19, 2023 Linux

ProcessWire on Nginx on Debian/Ubuntu

June 19, 2023
Qice, Editor

Problem

In offical website of ProcessWire.com, ProcessWire is recommended to installe on Apache by offical.

If running on Nginx, some more steps are essential.

Installing ProcessWire

Just following offical guide to install OJS3.3 except the part of Apache. https://processwire.com/docs/start/install/new/

Nginx Configuration

Only add location snippet.

            location / {
                try_files $uri $uri/ /index.php?$args;
            }

If you want to install in subdrectory, try this and don't forget to replace "processwire" with your own subdrectory.

            location /processwire {
                try_files $uri $uri/ /processwire/index.php?$args;
            }

Finally, save config file and reload Nginx.

Thats's done.


References:

  1. https://processwire.com/docs/start/install/new/
  2. https://github.com/processwire/processwire/

© 2023 Lab x LingData. All Rights Reserved
Theme by BlThemes - Powered by Bludit