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.
Обновление php 5.4 на php 5.6 + opcache под VestaCP на Centos 7.2
-
- Posts: 142
- Joined: Sun Aug 10, 2014 1:32 pm
Обновление php 5.4 на php 5.6 + opcache под VestaCP на Centos 7.2
Здравствуйте, уже все излазил, почитал мануалы, но все же не могу найти верного способа корректного обновления php на версию 5.6 mod_php с opcache, модулем для mysqli, под VestaCP. ОС Centos 7.2
То ошибки вылезают, то вообще сервер крашится, то не работает половина.
Необходимо обновить версию со всеми модулями, которые могут пригодиться (чтобы не ставить в дальнейшем) и при этом удалить мусор, оставшийся после обновления, чтобы не вызывал ошибок.
Обязательно opcache (собственно ради него все и задумывается).
Буду очень признателен за полный мануал.
То ошибки вылезают, то вообще сервер крашится, то не работает половина.
Необходимо обновить версию со всеми модулями, которые могут пригодиться (чтобы не ставить в дальнейшем) и при этом удалить мусор, оставшийся после обновления, чтобы не вызывал ошибок.
Обязательно opcache (собственно ради него все и задумывается).
Буду очень признателен за полный мануал.
-
- Posts: 142
- Joined: Sun Aug 10, 2014 1:32 pm
Re: Обновление php 5.4 на php 5.6 + opcache под VestaCP на Centos 7.2
Вот допустим сейчас вышло вот так, хотя вроде делаю всё по мануалу:
httpd:
nginx:
Веб службы не стартуют после команды reboot:
НО!!! В ручную с web службы запускаются, как и с консоли... Возможно дело в nginx?
В его error log я нашел такое:
Следовал таким инструкциям:
httpd:
Code: Select all
Feb 27 20:00:56 vm1381.rootwelt.de httpd[543]: [Sat Feb 27 20:00:56.253797 2016] [so:warn] [pid 543] AH01574: module ruid2_module is already loaded, skipping
Feb 27 20:00:56 vm1381.rootwelt.de httpd[543]: (99)Cannot assign requested addre ss: AH00072: make_sock: could not bind to address 185.53.168.101:8080
Feb 27 20:00:56 vm1381.rootwelt.de httpd[543]: no listening sockets available, s hutting down
Feb 27 20:00:56 vm1381.rootwelt.de httpd[543]: AH00015: Unable to open logs
Feb 27 20:00:56 vm1381.rootwelt.de systemd[1]: httpd.service: main process exite d, code=exited, status=1/FAILURE
Feb 27 20:00:56 vm1381.rootwelt.de kill[744]: kill: cannot find process ""
Feb 27 20:00:56 vm1381.rootwelt.de systemd[1]: httpd.service: control process ex ited, code=exited status=1
Feb 27 20:00:56 vm1381.rootwelt.de systemd[1]: Failed to start The Apache HTTP S erver.
Feb 27 20:00:56 vm1381.rootwelt.de systemd[1]: Unit httpd.service entered failed state.
Feb 27 20:00:56 vm1381.rootwelt.de systemd[1]: httpd.service failed.
Code: Select all
[root@vm1381 ~]# service nginx status -l
Redirecting to /bin/systemctl status -l nginx.service
Б≈▐ nginx.service - nginx - high performance web server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2016-02-27 20:13:22 UTC; 4min 59s ago
Docs: http://nginx.org/en/docs/
Process: 516 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
Feb 27 20:13:22 vm1381.rootwelt.de systemd[1]: Starting nginx - high performance web server...
Feb 27 20:13:22 vm1381.rootwelt.de systemd[1]: nginx.service: control process exited, code=exited statu
НО!!! В ручную с web службы запускаются, как и с консоли... Возможно дело в nginx?
В его error log я нашел такое:
Code: Select all
2016/02/27 20:40:18 [emerg] 534#0: bind() to 185.53.168.101:80 failed (99: Cannot assign requested address)
2016/02/27 20:41:29 [emerg] 476#0: bind() to 185.53.168.101:80 failed (99: Cannot assign requested address)
Code: Select all
curl -O http://vestacp.com/pub/vst-install.sh
bash vst-install.sh --nginx yes --apache yes --phpfpm no --vsftpd no --proftpd yes --exim yes --dovecot yes --spamassassin yes --clamav yes --named yes --iptables yes --fail2ban yes --mysql yes --postgresql no --remi yes --quota no --hostname xxx --email xxx --password xxx
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum-config-manager --enable remi-php56
yum update
yum install php-opcache