On 25/05/2024 17:51, F Bax wrote:
I tried a few things with nginx not in chroot; but got permission
errors. The message provided no clue as to which file/directory might
be causing it; so eventually I gave up.
After some brainstorming; we decided to run inside chroot; use php
functions other than system() and use a cron job to do the work that
is outside chroot.
Now a new issue; nginx does not start during boot; yet does start
manually - why? The following commands were issued immediately after boot.
# cat /etc/rc.conf.local
nginx_flags=""
pkg_scripts=php83_fpm
# /etc/rc.d/nginx start
You forgot to run rcctl enable nginx so that nginx is added to the
pkg_scripts= line. Only system daemons can be enabled by adding them as
$daemon_flags= in /etc/rc.conf.local . Package daemons must be
explicitely added to pkg_scripts= .
Cheers,
Noth
nginx(ok)
On Fri, May 17, 2024 at 10:19 AM Souji Thenria
<m...@souji-thenria.net> wrote:
On Fri May 17, 2024 at 2:56 PM BST, F Bax wrote:
> In /etc/rc.conf.local - I changed nginx_flags="-u -p /home/Testing"
> (home directory of a real user).
> reboot system and now browser is refused connection
> This site can’t be reached 192.168.1.131 refused to connect.
> Neither /var/www/logs/{access|error}.log is changed.
> What else needs to change?
Can you verify that nginx is running?
You may have an error in your configuration. You can check the nginx
configuration using nginx -t.
Another issue might be that nginx is still running as www and doesn't
have access to /home/Testing.
Regards,
Souji