Nginix pointing to opnsense plugin after installation through command line

Started by baz, April 28, 2023, 06:49:00 AM

Previous topic - Next topic
I uninstalled the nginx plugin, then re-installed nginx through the command line using pkg, however when I try to start nginx ("service nginx start") I get the error:

eval: /usr/local/opnsense/scripts/nginx/setup.php: not found

It seems to still be looking for nginx in opnsense.

If I do "which nginx" I get:

/usr/local/sbin/nginx

Any idea how to resolve this?

You installed nginx, but not os-nginx which has the GUI and configuration bits (including setup.sh).


Cheers,
Franco

Ty Franco, I should have mentioned that my goal is to run nginx natively so that I could use config files instead of the GUI. I think there are remnant configurations from the OPNsense install that are interfering with the native install. Specifically it seems to be looking for the command in the OPNSense directories rather than straight sbin. I'm no expert in freebsd tho.

You want to edit /etc/rc.conf.d/nginx then and remove nginix_setup line.


Cheers,
Franco