newbie help - unknown directive memc_pass

Yichun Zhang (agentzh) agentzh at gmail.com
Sun Feb 23 19:52:36 UTC 2014


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



More information about the nginx mailing list