TransWikia.com

How to Disable Nginx's module Nchan

Server Fault Asked on November 4, 2021

I’ve had some problems with Nginx occasionally and i noticed it was some error of the module Nchan occasionaly crashing and preventing Nginx from accepting connections.

I don’t use Nchan so i’d like to disable it, i’ve searched online how to do that and everything points to removing the link from /etc/nginx/modules-enabled but my installation doesn’t have that folder (Ubuntu 16, nginx-extras installed via apt-get).

I’ve also looked in nginx.conf and there’s nothing in there about that either.

Version installed:

$ nginx -v
nginx version: nginx/1.18.0

How can i disable it?

EDIT

Here’s some extra info about the package:

$ apt-cache policy nginx-extras 
nginx-extras:
  Installed: 1:1.18.0-8.6.0.6~xenial1
  Candidate: 1:1.18.0-8.6.0.6~xenial1
  Version table:
 *** 1:1.18.0-8.6.0.6~xenial1 500
        500 https://oss-binaries.phusionpassenger.com/apt/passenger xenial/main amd64 Packages

One Answer

On Debian derivatives the directory /etc/nginx/modules-enabled contains the configuration files used to load modules (or better symbolic links to the configuration files). You just need to delete the appropriate file and reload nginx:

systemctl reload nginx

Try this command to disabled nginx:

/******* if you disabled nginx try this command ********/   

sudo update-rc.d -f nginx disable

Answered by abid on November 4, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP