Question

Wordpress Permalinks Not Working (Ubuntu 14.04 + Nginx + HHVM)

  • Posted on January 7, 2015
  • azlyjnorAsked by azlyjnor

Hello,

This is my stack:

  • Ubuntu 14.04
  • Nginx
  • HHVM
  • Wordpress 4.1

Everything works fine except for the permalinks. I understand that Wordpress 4.1 update should have fixed the rewrite rules for Nginx, however, I am getting the white-screen of death everytime I changed the permalink setting. Even when I switched back to default permalink, the pages does not show.

I am however still able to see the homepage (index.php).

I’ve added the following to /etc/nginx/sites-enabled/domain.com:

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

However, when I reload Nginx, and changed the permalink in WP admin panel, Wordpress is still automatically creating a .htaccess file. As I would understand .htaccess is not recognised in Nginx.

Can anyone point me to where I should be looking at in the configs?

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

osCommerce not install naginxand wordpress on cento6.5

hey oscommerce not working Warning: require_once(/usr/share/nginx/html/wp-content/plugins/osCommerce/classes/osc_db.class.php): failed to open stream: No such file or directory in /usr/share/nginx/html/wp-content/plugins/oscommerce/osCommerce.php on line 37 Fatal error: require_once(): Failed opening required ‘/usr/share/nginx/html/wp-content/plugins/osCommerce/classes/osc_db.class.php’ (include_path=‘.:/usr/share/pear:/usr/share/php’) in /usr/share/nginx/html/wp-content/plugins/oscommerce/osCommerce.php on

Ok I just figured out the problem. It was a plugin conflict.