Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Nginix pointing to opnsense plugin after installation through command line
« previous
next »
Print
Pages: [
1
]
Author
Topic: Nginix pointing to opnsense plugin after installation through command line (Read 941 times)
baz
Jr. Member
Posts: 52
Karma: 1
Nginix pointing to opnsense plugin after installation through command line
«
on:
April 28, 2023, 06:49:00 am »
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:
Code:
[Select]
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:
Code:
[Select]
/usr/local/sbin/nginx
Any idea how to resolve this?
«
Last Edit: April 28, 2023, 08:12:08 am by baz
»
Logged
franco
Administrator
Hero Member
Posts: 17675
Karma: 1613
Re: Nginix pointing to opnsense plugin after installation through command line
«
Reply #1 on:
April 28, 2023, 08:56:23 am »
You installed
nginx
, but not
os-nginx
which has the GUI and configuration bits (including setup.sh).
Cheers,
Franco
Logged
baz
Jr. Member
Posts: 52
Karma: 1
Re: Nginix pointing to opnsense plugin after installation through command line
«
Reply #2 on:
April 28, 2023, 04:37:00 pm »
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.
«
Last Edit: April 29, 2023, 12:17:47 am by baz
»
Logged
franco
Administrator
Hero Member
Posts: 17675
Karma: 1613
Re: Nginix pointing to opnsense plugin after installation through command line
«
Reply #3 on:
May 02, 2023, 07:48:34 am »
You want to edit /etc/rc.conf.d/nginx then and remove nginix_setup line.
Cheers,
Franco
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Nginix pointing to opnsense plugin after installation through command line