Welcome! Log In Create A New Profile

Advanced

Re: newbie help - unknown directive memc_pass

Yichun Zhang (agentzh)
February 23, 2014 02:54PM
Hello!

On Sun, Feb 23, 2014 at 9:40 AM, vikingboy wrote:
> but still get the error when trying to restart nginx.
>
> 2014/02/23 17:20:59 [emerg] 31056#0: unknown directive "memc_pass" in
> /etc/nginx/sites-enabled/irj972.co.uk:55
>

One common cause is that your nginx startup script invokes a different
nginx in another path which does not include the ngx_memc module.

Try starting your new nginx with its absolute path directly, that is,

/path/to/your/new/nginx/sbin/nginx -c /path/to/nginx.conf -p
/path/to/your/prefix/

> and also tried compiling the openresty build but identical results - still
> no known directive for memc_pass.
>

The ngx_openresty bundle installs nginx into
/usr/local/openresty/nginx/ by default, so ensure your startup script
start the nginx in the right path, that is,

/usr/local/openresty/nginx/sbin/nginx

See the following sample for more details:

http://openresty.org/#GettingStarted

Regards,
-agentzh

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

newbie help - unknown directive memc_pass

vikingboy February 23, 2014 12:40PM

Re: newbie help - unknown directive memc_pass

Yichun Zhang (agentzh) February 23, 2014 02:54PM

Re: newbie help - unknown directive memc_pass

vikingboy February 23, 2014 06:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready