Re: TOS 4.2.16 is released for update!
Posted: 14 Oct 2021, 09:57
{L_BUTTON_AT}Budo68
Hi! Judging from your screenshot, there is an error in the system. It is recommended that you reinstall the system.
viewtopic.php?f=75&t=423bash /etc/init.d/nginx stopTMnorah wrote: ↑17 Oct 2021, 13:17 Hi,
If you get a 502 bad gateway error and you cannot log in to the TOS webpage after updating TOS,It may be that the nginx service has not been activated successfully. you can try to log in using SSH, and then restart nginx by referring to the following command to manually start the service.
/etc/init.d/nginx stop
/etc/init.d/nginx start
Code: Select all
sudo /etc/init.d/nginx stop
Code: Select all
sudo /etc/init.d/nginx start
Code: Select all
sudo /etc/init.d/nginx stop
sudo /etc/init.d/nginx start
Code: Select all
user root root;
worker_processes 4;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
worker_rlimit_nofile 51200;
events {
use epoll;
worker_connections 512;
}
http {
include mime.types;
#include fastcgi.conf;
default_type application/octet-stream;
#fastcgi_cache_path /tmp/php_cache levels=1:2 keys_zone=cache_php:30m inactive=10s max_size=64m;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
include nginx-http.conf;
upstream unix_php_cgi_sock{
server unix:/tmp/php-fpm.sock;
}
#HTTP server
server {
listen 8181;
include nginx-ipv6.conf;
server_name znasnginx;
root /usr/www/;
index index.html index.htm index.php;
access_log /var/log/nginx/access.log;
#error_page 404 /404.html;
include conf.d/*.conf;
include nginx-extend.conf;
# phpBB3, important Flag...don't delete me!!!
location ~ \.php(.*)$ {
keepalive_timeout 75;
fastcgi_pass unix_php_cgi_sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
fastcgi_param HTTPS off;
}
}
#HTTP server
#HTTPS server
server {
listen 5443;
include nginx-ipv6-https.conf;
server_name znasnginx;
root /usr/www/;
index index.html index.htm index.php;
ssl on;
ssl_certificate /etc/nginx/tnas.link.crt;
ssl_certificate_key /etc/nginx/tnas.link.key;
access_log /var/log/nginx/access.log;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4:!DH:!DHE;
ssl_prefer_server_ciphers on;
include conf.d/*.conf;
include nginx-extend.conf;
location ~ \.php(.*)$ {
keepalive_timeout 75;
fastcgi_pass unix_php_cgi_sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi_params;
fastcgi_param HTTPS on;
}
}
#HTTPS server
}
Code: Select all
sudo /etc/init.d/php-fpm restart
-bash-4.4$ sudo /etc/init.d/php-fpm restart