Page 1 of 1
nginx незапускается
Posted: Thu Jun 28, 2018 8:23 pm
by uadesign
Сильно не пинайте
хотел увеличить
upload_max_filesize =
залез php.ini
запустил перезагрузку и сайты легли
потом заменил обратно файл php.ini но nginx не в какую не грузиться и сайты лежат тока панель работает
команда
[root@a1775112 ~]# service nginx start
Redirecting to /bin/systemctl start nginx.service
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.
команда
[root@a1775112 ~]# systemctl status nginx.service
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/nginx.service.d
└─limits.conf
Active: failed (Result: exit-code) since Thu 2018-06-28 22:17:29 CEST; 1min 33s ago
Process: 858 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 849 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Jun 28 22:17:29 a1775112.example.com systemd[1]: Starting The nginx HTTP and reverse proxy server...
Jun 28 22:17:29 a1775112.example.com nginx[858]: nginx: [emerg] open() "/home/admin/conf/web/p...:59
Jun 28 22:17:29 a1775112.example.com nginx[858]: nginx: configuration file /etc/nginx/nginx.co...led
Jun 28 22:17:29 a1775112.example.com systemd[1]: nginx.service: control process exited, code=e...s=1
Jun 28 22:17:29 a1775112.example.com systemd[1]: Failed to start The nginx HTTP and reverse pr...er.
Jun 28 22:17:29 a1775112.example.com systemd[1]: Unit nginx.service entered failed state.
Jun 28 22:17:29 a1775112.example.com systemd[1]: nginx.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
Re: nginx незапускается
Posted: Thu Jun 28, 2018 8:27 pm
by imperio
Укажите ОС и используемый веб-стек
Code: Select all
Jun 28 22:17:29 a1775112.example.com nginx[858]: nginx: [emerg] open() "/home/admin/conf/web/p...:59
Не полная строка
Re: nginx незапускается
Posted: Thu Jun 28, 2018 8:33 pm
by uadesign
к сожалению Bitvise SSH Client тока так показывает
через что еще можно зайти?
Re: nginx незапускается
Posted: Thu Jun 28, 2018 8:38 pm
by imperio
putty к примеру. Попробуйте окно терминала расширить
Re: nginx незапускается
Posted: Thu Jun 28, 2018 8:45 pm
by uadesign
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/nginx.service.d
└─limits.conf
Active: failed (Result: exit-code) since Thu 2018-06-28 22:41:07 CEST; 3min 57s ago
Process: 868 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
Process: 860 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Jun 28 22:41:07 a1775112.example.com systemd[1]: Starting The nginx HTTP and reverse proxy server...
Jun 28 22:41:07 a1775112.example.com nginx[868]: nginx: [emerg] open() "/home/admin/conf/web/
Jun 28 22:41:07 a1775112.example.com nginx[868]: nginx: configuration file /etc/nginx/nginx.conf test failed
Jun 28 22:41:07 a1775112.example.com systemd[1]: nginx.service: control process exited, code=exited status=1
Jun 28 22:41:07 a1775112.example.com systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
Jun 28 22:41:07 a1775112.example.com systemd[1]: Unit nginx.service entered failed state.
Jun 28 22:41:07 a1775112.example.com systemd[1]: nginx.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
Re: nginx незапускается
Posted: Thu Jun 28, 2018 8:46 pm
by uadesign
еще я поменял в настройках домена в панеле
Шаблон Web:
wordpress2_rewrite
Backend Support:
да
Поддержка SSL:
Lets Encrypt
Шаблон Backend:
socket
если это влияет конечно
Re: nginx незапускается
Posted: Thu Jun 28, 2018 8:57 pm
by imperio
По ОС, версии панели Вы так и не ответили. Используют ли домены https соединение
Скиньте содержимое файла шаблона
Code: Select all
/usr/local/vesta/data/templates/web/nginx/php5-fpm/wordpress2_rewrite.tpl
/usr/local/vesta/data/templates/web/nginx/php5-fpm/wordpress2_rewrite.stpl
Re: nginx незапускается
Posted: Thu Jun 28, 2018 8:58 pm
by uadesign
CentOS-7-amd64
Версия:
0.9.8 (x86_64)
Релиз:
22
Поддержка SSL:
Lets Encrypt
Re: nginx незапускается
Posted: Thu Jun 28, 2018 9:01 pm
by uadesign
wordpress2_rewrite.tpl
Code: Select all
server {
listen %ip%:%web_port%;
server_name %domain_idn% %alias_idn%;
root %docroot%;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/%domain%.log combined;
access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location / {
try_files $uri $uri/ /index.php?$args;
if (!-e $request_filename)
{
rewrite ^(.+)$ /index.php?q=$1 last;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass %backend_lsnr%;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
error_page 403 /error/404.html;
error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html;
location /error/ {
alias %home%/%user%/web/%domain%/document_errors/;
}
location ~* "/\.(htaccess|htpasswd)$" {
deny all;
return 404;
}
location /vstats/ {
alias %home%/%user%/web/%domain%/stats/;
include %home%/%user%/conf/web/%domain%.auth;
}
include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
include /etc/nginx/conf.d/webmail.inc*;
include %home%/%user%/conf/web/nginx.%domain_idn%.conf*;
}
wordpress2_rewrite.stpl
Code: Select all
server {
listen %ip%:%web_ssl_port%;
server_name %domain_idn% %alias_idn%;
root %docroot%;
index index.php index.html index.htm;
access_log /var/log/nginx/domains/%domain%.log combined;
access_log /var/log/nginx/domains/%domain%.bytes bytes;
error_log /var/log/nginx/domains/%domain%.error.log error;
ssl on;
ssl_certificate %ssl_pem%;
ssl_certificate_key %ssl_key%;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location / {
try_files $uri $uri/ /index.php?$args;
if (!-e $request_filename)
{
rewrite ^(.+)$ /index.php?q=$1 last;
}
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass %backend_lsnr%;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
error_page 403 /error/404.html;
error_page 404 /error/404.html;
error_page 500 502 503 504 /error/50x.html;
location /error/ {
alias %home%/%user%/web/%domain%/document_errors/;
}
location ~* "/\.(htaccess|htpasswd)$" {
deny all;
return 404;
}
location /vstats/ {
alias %home%/%user%/web/%domain%/stats/;
include %home%/%user%/conf/web/%domain%.auth;
}
include /etc/nginx/conf.d/phpmyadmin.inc*;
include /etc/nginx/conf.d/phppgadmin.inc*;
include /etc/nginx/conf.d/webmail.inc*;
include %home%/%user%/conf/web/nginx.%domain_idn%.conf*;
}