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

  • Posted January 7, 2015


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/

   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?


Submit an 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.

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.