I am sorry, my English is not good.
I have a problem when my server restarts, the nginx service won't autostart. must be started manually. please solution. i am using ubuntu 20.04, aapanel version 6.8.24, nginx 1.21.4.
I am sorry, my English is not good.
I have a problem when my server restarts, the nginx service won't autostart. must be started manually. please solution. i am using ubuntu 20.04, aapanel version 6.8.24, nginx 1.21.4.
aaP_Fr4n5
Hello, try to execute the following command as root to set nginx to start on boot.
/sbin/update-rc.d nginx defaults
If there is an error, please paste it.
I've run it, no error appears. but after i restart the server, nginx doesn't autostart yet.
I have a new problem. when i restart nginx error.
aaP_Fr4n5
Try to set nginx to start on boot. Pay attention to check whether it starts automatically the next time you restart.
aaP_Fr4n5
Tip 888 and 80 ports are occupied. When the problem occurs, you can use the following command to check which program is occupying the port
lsof -i:80
netstat -tulnp|grep 80
aaP_Fr4n5
Hello, openlitespeed cannot coexist with nginx, please remove one.
The nginx start command is
/etc/init.t/nginx start
aaPanel_Kern
thanks. problem solved. I meant to install WebSite Speed, but what I installed was Openlitespeed. Once again I thank you.
I had the same problem and wrote a workaround script to fix nginx with aaPanel in a very clean way.
You can find it there,
https://github.com/broogly/aaPanel-nginx-fix/
Hope it helps !
Broogly Thanks , its working good ,