Hi.
After installing Nginx Free Firewall 5.0, Nginx stopped working.
The check was made on:
aaPanel v. 6.8.28
Nginx 1.24.0
Nginx Openresty 1.19.9.1
OS:
CentOS 7.9.2009
AlmaLinux 9
However, the errors are different.
Error Nginx
[emerg] 20853#0: "lua_package_path" directive is duplicate in /www/server/panel/vhost/nginx/free_waf.conf:4
Error Nginx Openresty
[alert] 39995#0: failed to load the 'resty.core' module (https://github.com/openresty/lua-resty-core); ensure you are using an OpenResty release from https://openresty.org/en/download.html (reason: module 'resty.core' not found:
no field package.preload['resty.core']
no file '/www/server/free_waf/resty/core.lua'
no file '/www/server/nginx/site/lualib/resty/core.so'
no file '/www/server/nginx/lualib/resty/core.so'
no file './resty/core.so'
no file '/usr/local/lib/lua/5.1/resty/core.so'
no file '/www/server/nginx/luajit/lib/lua/5.1/resty/core.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/www/server/nginx/site/lualib/resty.so'
no file '/www/server/nginx/lualib/resty.so'
no file './resty.so'
no file '/usr/local/lib/lua/5.1/resty.so'
no file '/www/server/nginx/luajit/lib/lua/5.1/resty.so'
no file '/usr/local/lib/lua/5.1/loadall.so') in /www/server/nginx/conf/nginx.conf:103
How to fix?