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

Posted January 7, 2015 7.7k views


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?

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.

Submit an Answer
3 answers

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

  • Hmmm… I’m having the same problem in Debian Wheezy (WordPress 4.1 and Nginx 1.2.1), and the only plugin that I have installed (or rather activated) right now is the Podcasting Plugin by TSG. What was the plugin conflict you were having??

hey oscommerce not working Warning: requireonce(/usr/share/nginx/html/wp-content/plugins/osCommerce/classes/oscdb.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: requireonce(): Failed opening required ’/usr/share/nginx/html/wp-content/plugins/osCommerce/classes/oscdb.class.php’ (include_path=’.:/usr/share/pear:/usr/share/php’) in /usr/share/nginx/html/wp-content/plugins/oscommerce/osCommerce.php on

osCommerce not install naginxand wordpress on cento6.5