We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
nginx незапускается
nginx незапускается
Сильно не пинайте
хотел увеличить
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.
хотел увеличить
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 незапускается
Укажите ОС и используемый веб-стек
Не полная строка
Code: Select all
Jun 28 22:17:29 a1775112.example.com nginx[858]: nginx: [emerg] open() "/home/admin/conf/web/p...:59
Re: nginx незапускается
к сожалению Bitvise SSH Client тока так показывает
через что еще можно зайти?
через что еще можно зайти?
Re: nginx незапускается
putty к примеру. Попробуйте окно терминала расширить
Re: nginx незапускается
● 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.
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.
Last edited by uadesign on Thu Jun 28, 2018 9:34 pm, edited 1 time in total.
Re: nginx незапускается
еще я поменял в настройках домена в панеле
Шаблон Web:
wordpress2_rewrite
Backend Support:
да
Поддержка SSL:
Lets Encrypt
Шаблон Backend:
socket
если это влияет конечно
Шаблон Web:
wordpress2_rewrite
Backend Support:
да
Поддержка SSL:
Lets Encrypt
Шаблон Backend:
socket
если это влияет конечно
Re: nginx незапускается
По ОС, версии панели Вы так и не ответили. Используют ли домены 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 незапускается
CentOS-7-amd64
Версия:
0.9.8 (x86_64)
Релиз:
22
Поддержка SSL:
Lets Encrypt
Версия:
0.9.8 (x86_64)
Релиз:
22
Поддержка SSL:
Lets Encrypt
Last edited by uadesign on Thu Jun 28, 2018 9:04 pm, edited 2 times in total.
Re: nginx незапускается
wordpress2_rewrite.tpl
wordpress2_rewrite.stpl
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*;
}
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*;
}