Answers.Body: <p>Yes, CiviCRM works fine with WordPress on Nginx. However, since Nginx doesn't use .htaccess you'll want to add any changes to your site-specific configuration.</p>
  
  <p>For example, there are a few upload directories that have .htaccess files denying access to their contents. To do the same thing in Nginx, you'd want to add a location block to your site's configuration.</p>
  
  <pre><code>location ~* ^/wp-content/plugins/files/civicrm/(?:ConfigAndLog|custom|upload|templates_c) {
    access_log off;
    return 404;
  }
  </code></pre>
  
  <p>See more details in my blog post: <a href="https://blog.rudeotter.com/install-civicrm-on-wordpress-with-nginx/" rel="nofollow">https://blog.rudeotter.com/install-civicrm-on-wordpress-with-nginx/</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-25T15:39:08.120Z
Answers.Text: It would be great to some documentation on this in the Installation and Upgrade section of the CiviCRM wiki (http://wiki.civicrm.org/confluence/display/CRMDOC/Installation+and+Upgrades)
Answers.UserDisplayName: Graham
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-25T08:05:51.890Z
Answers.LastActivityDate: 2016-02-27T15:15:36.620Z
Answers.LastEditDate: 2016-02-27T15:15:36.620Z
Answers.UserDisplayName: James Bradach
Answers.Body: <p>No problems here. My local Wordpress dev environment (<a href="https://github.com/Varying-Vagrant-Vagrants/VVV">vvv</a>) uses nginx and I've had no problems with Civi.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-30T18:42:42.797Z
Answers.Text: Just want to add that from the Drupal side of things CiviCRM works great on BOA systems, which use nginx. https://github.com/omega8cc/boa I'm running several production CiviCRM instances for 2+ years now with no issues.
Answers.UserDisplayName: LunkRat
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-24T18:17:56.510Z
Answers.LastActivityDate: 2015-03-24T18:17:56.510Z
Answers.UserDisplayName: EranSch
Answers.Body: <p>Detailed install and configuration tutorial was just posted here:
  <a href="https://blog.rudeotter.com/install-civicrm-on-wordpress-with-nginx/">https://blog.rudeotter.com/install-civicrm-on-wordpress-with-nginx/</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-25T04:03:41.617Z
Answers.Text: Thanks, Dave. I wrote that article and I'm glad others find it useful! Just a quick followup, I run a few CiviCRM instances for clients on both WordPress and Drupal using Nginx and haven't had any trouble. You'll just want to keep in mind that Nginx doesn't use .htaccess files so some rules you'll have to include in your site-specific configuration.
Answers.UserDisplayName: James Bradach
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-24T20:55:43.627Z
Answers.LastActivityDate: 2015-03-24T20:55:43.627Z
Answers.UserDisplayName: Dave Greenberg
Answers.Body: <p>Yes all fine, but a quick note that you may need to add an extra line to the NGINX config file to set the CiviCRM file folder to not be accessible from the web as the .htaccess file will no longer block this folder otherwise your clients files that they upload against activities etc can be found. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-03-25T14:18:57.340Z
Answers.LastActivityDate: 2015-03-25T14:18:57.340Z
Answers.UserDisplayName: Jamie Novick - Compucorp
Answers.Body: <p>Yes. It is compatible. For the longest time I thought my server was using Apache, until I discovered it is using nginx. Haven't noticed any differences.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-06-05T19:38:45.117Z
Answers.LastActivityDate: 2017-06-05T19:38:45.117Z
Answers.UserDisplayName: Codedogs
Body: <p>If I have PHP installed on nginx, and Wordpress installed too, can I still run CiviCRM as a Wordpress Plugin?</p>
  
Tags: <wordpress><php><nginx><evaluating-civicrm><compatiblity>
Title: Is CiviCRM compatible with Nginx?
ThreadText: # Is CiviCRM compatible with Nginx?
  
  (Asked by: username_0 on 2015-03-24)
  
  If I have PHP installed on nginx, and Wordpress installed too, can I still run CiviCRM as a Wordpress Plugin?
  
  **Tags:** wordpress, php, nginx, evaluating-civicrm, compatiblity
  
  
  ---
  
  ## 5 answers
  
  ### Answer by username_1 on 2015-03-25. Score: 10 | Accepted answer
  
  Yes, CiviCRM works fine with WordPress on Nginx. However, since Nginx doesn't use .htaccess you'll want to add any changes to your site-specific configuration.
  
  For example, there are a few upload directories that have .htaccess files denying access to their contents. To do the same thing in Nginx, you'd want to add a location block to your site's configuration.
  
  ```
  location ~* ^/wp-content/plugins/files/civicrm/(?:ConfigAndLog|custom|upload|templates_c) {
    access_log off;
    return 404;
  }
  
  ```
  
  See more details in my blog post: <https://blog.rudeotter.com/install-civicrm-on-wordpress-with-nginx/>
  
  > **Comments:**
  > **username_2**: It would be great to some documentation on this in the Installation and Upgrade section of the CiviCRM wiki (http://wiki.civicrm.org/confluence/display/CRMDOC/Installation+and+Upgrades)  
  
  ---
  
  ### Answer by username_3 on 2015-03-24. Score: 9
  
  No problems here. My local Wordpress dev environment ([vvv](https://github.com/Varying-Vagrant-Vagrants/VVV)) uses nginx and I've had no problems with Civi.
  
  > **Comments:**
  > **username_4**: Just want to add that from the Drupal side of things CiviCRM works great on BOA systems, which use nginx. https://github.com/omega8cc/boa I'm running several production CiviCRM instances for 2+ years now with no issues.  
  
  ---
  
  ### Answer by username_5 on 2015-03-24. Score: 8
  
  Detailed install and configuration tutorial was just posted here:
  <https://blog.rudeotter.com/install-civicrm-on-wordpress-with-nginx/>
  
  > **Comments:**
  > **username_1**: Thanks, username_5. I wrote that article and I'm glad others find it useful! Just a quick followup, I run a few CiviCRM instances for clients on both WordPress and Drupal using Nginx and haven't had any trouble. You'll just want to keep in mind that Nginx doesn't use .htaccess files so some rules you'll have to include in your site-specific configuration.  
  
  ---
  
  ### Answer by username_6 on 2015-03-25. Score: 3
  
  Yes all fine, but a quick note that you may need to add an extra line to the NGINX config file to set the CiviCRM file folder to not be accessible from the web as the .htaccess file will no longer block this folder otherwise your clients files that they upload against activities etc can be found.
  
  
  ---
  
  ### Answer by username_7 on 2017-06-05. Score: 1
  
  Yes. It is compatible. For the longest time I thought my server was using Apache, until I discovered it is using nginx. Haven't noticed any differences.
  
  
  ---
  
  