Nginx fastcgi_cache with conditional purging

I’m trying to follow the wordpress/nginx tutorial to set up nginx fastcgi_cache with purging, but every time I try to install the brianmercer nginx-custom package, I get the following error.

Some packages could not be installed. This may mean that you have  
requested an impossible situation or if you are using the unstable  
distribution that some required packages have not yet been created  
or been moved out of Incoming.  
The following information may help to resolve the situation:  

The following packages have unmet dependencies:  
 nginx-custom : Depends: nginx-common (= 1.4.1-0ppa~precise) but 1.6.0-1+precise0 is to be installed  
E: Unable to correct problems, you have held broken packages.

I’m on Ubuntu 12.04 LTS but have tried it on a newer version as well with similar results. Any help would be greatly appreciated!

I’m sorry… I just realized that I posted an almost identical question a month or two ago. I am going to try the easy engine install and set everything up that way.

@geophrav

Brianmercer nginx repository is not updated, We are fork that nginx repository and update nginx
See: https://launchpad.net/~rtcamp/+archive/nginx

Also EasyEngine can setup everything for you :slight_smile:
Ref: https://rtcamp.com/easyengine/
https://github.com/rtCamp/easyengine

@Mitesh Am I correct assuming:

  • that your repo (like Brianmercer's one) includes the 3rd party Nginx module ngx_cache_purge shipped with the nginx-extras package?
<li>that your <a href="http://wordpress.org/support/plugin/nginx-helper">Nginx (helper) plugin</a>  fastcgi_cache_purge feature/support is based on this module?</li>  

<li>hence, that this recent assertion from a user in <a href="http://wordpress.org/support/topic/digitalocean-tutorial-on-nginx-cache?replies=2">your plugin support forum</a> is <strong>false</strong>: <em>"In fact, if you're using the newest versions of Nginx the method from RT camp and this plugin will not purge your cache because fastcgi_cache_purge is no longer supported in the open source version."</em>?</li>  

If that is the case, could you confirm my answer in this thread is correct i.e. “This Nginx (helper) plugin relies, like WP codex Nginx fastcgi_cache recommandation btw, on the free 3rd party ngx_cache_purge module and its fastcgi_cache_purge directive. How can you claim this plugin’s purge method/feature does not work anymore, whatever your Nginx free version?”?

Our nginx repo is a clone of Briancmercer’s repo which include support for latest nginx version 1.6.0 and more Ubuntu ditsro

The nginx-cache-purge module is shipped with nginx-custom package.
Also nginx-helper plugin works fine with nginx-custom package

You can follow instruction from here https://rtcamp.com/upgrading-nginx-1-6-ubuntu/ (To download/install nginx-custom package)

OK thanks: I’ll give your repo a try, though nginx 1.4.6 is now in Ubuntu Trusty main, and nginx-cache-purge module is actually shipped with both Ubuntu Trusty universe nginx-extras or Nginx/Thomas Ward’s nginx-extras PPA for Nginx 1.6.

May I suggest you to confirm I was right about your plugin being alive & kicking in its support forum? Users including me are confused by this post I mentioned.