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.
500 Internal Server Error
500 Internal Server Error
Установил связку Nginx + PHP-FPM на Debian 8. Ставил на чистую ось.
При импорте базы данных в phpmyadmin, выскакивает ошибка 500 Internal Server Error. Размер базы: 48мб
А база в 17мб, прошла без проблем.
До этого я всегда ставил Nginx + apache. И когда там возникала подобная ошибка, я выставлял параметры:
Но сейчас они не помогают.
Не пойму в чем дело...
При импорте базы данных в phpmyadmin, выскакивает ошибка 500 Internal Server Error. Размер базы: 48мб
А база в 17мб, прошла без проблем.
До этого я всегда ставил Nginx + apache. И когда там возникала подобная ошибка, я выставлял параметры:
Code: Select all
proxy_send_timeout
proxy_read_timeout
Не пойму в чем дело...
mysqlShow
170122 15:10:36 [Note] Plugin 'FEDERATED' is disabled.
170122 15:10:36 InnoDB: The InnoDB memory heap is disabled
170122 15:10:36 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170122 15:10:36 InnoDB: Compressed tables use zlib 1.2.8
170122 15:10:36 InnoDB: Using Linux native AIO
170122 15:10:36 InnoDB: Initializing buffer pool, size = 128.0M
170122 15:10:37 InnoDB: Completed initialization of buffer pool
170122 15:10:37 InnoDB: highest supported file format is Barracuda.
170122 15:10:37 InnoDB: Waiting for the background threads to start
170122 15:10:38 InnoDB: 5.5.54 started; log sequence number 95722257
170122 15:10:38 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
170122 15:10:38 [Note] - '0.0.0.0' resolves to '0.0.0.0';
170122 15:10:38 [Note] Server socket created on IP: '0.0.0.0'.
170122 15:10:38 [Note] Event Scheduler: Loaded 0 events
170122 15:10:38 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.54-0+deb8u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Debian)
170122 15:13:27 [Warning] IP address '155.94.224.200' has been resolved to the host name '155.94.224.200.static.quadranet.com', which resembles IPv4-address itself.
170122 15:10:36 InnoDB: The InnoDB memory heap is disabled
170122 15:10:36 InnoDB: Mutexes and rw_locks use GCC atomic builtins
170122 15:10:36 InnoDB: Compressed tables use zlib 1.2.8
170122 15:10:36 InnoDB: Using Linux native AIO
170122 15:10:36 InnoDB: Initializing buffer pool, size = 128.0M
170122 15:10:37 InnoDB: Completed initialization of buffer pool
170122 15:10:37 InnoDB: highest supported file format is Barracuda.
170122 15:10:37 InnoDB: Waiting for the background threads to start
170122 15:10:38 InnoDB: 5.5.54 started; log sequence number 95722257
170122 15:10:38 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
170122 15:10:38 [Note] - '0.0.0.0' resolves to '0.0.0.0';
170122 15:10:38 [Note] Server socket created on IP: '0.0.0.0'.
170122 15:10:38 [Note] Event Scheduler: Loaded 0 events
170122 15:10:38 [Note] /usr/sbin/mysqld: ready for connections.
Version: '5.5.54-0+deb8u1' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Debian)
170122 15:13:27 [Warning] IP address '155.94.224.200' has been resolved to the host name '155.94.224.200.static.quadranet.com', which resembles IPv4-address itself.
nginxShow
2017/01/22 16:17:33 [error] 24788#0: *659 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: HTTP_CLIENT_IP in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice: Undefined index: HTTP_X_FORWARDED_FOR in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice: Undefined index: HTTP_X_FORWARDED in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice: Undefined index: HTTP_FORWARDED_FOR in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice: Undefined index: HTTP_FORWARDED in /usr/local/vesta/web/inc/main.php on line 14" while reading response header from upstream, client: 178.22.49.198, server: _, request: "$
PHP message: PHP Notice: Undefined index: HTTP_X_FORWARDED_FOR in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice: Undefined index: HTTP_X_FORWARDED in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice: Undefined index: HTTP_FORWARDED_FOR in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice: Undefined index: HTTP_FORWARDED in /usr/local/vesta/web/inc/main.php on line 14" while reading response header from upstream, client: 178.22.49.198, server: _, request: "$
Re: 500 Internal Server Error
Стоит рассматривать и такой вариант:
проблема в том, что /etc/sudoers.d/admin
не содержит вот этот код
# Created by vesta installer
Defaults env_keep="VESTA"
Defaults:admin !syslog
Defaults:admin !requiretty
Defaults:root !requiretty
если вышеописанное вставить, то всё заработает
PS: https://bugs.vestacp.com/issues/464
проблема в том, что /etc/sudoers.d/admin
не содержит вот этот код
# Created by vesta installer
Defaults env_keep="VESTA"
Defaults:admin !syslog
Defaults:admin !requiretty
Defaults:root !requiretty
если вышеописанное вставить, то всё заработает
PS: https://bugs.vestacp.com/issues/464