Page 1 of 1

Обновление php 5.4 на php 5.6 + opcache под VestaCP на Centos 7.2

Posted: Sat Feb 27, 2016 7:50 pm
by SPEC1AL1ST
Здравствуйте, уже все излазил, почитал мануалы, но все же не могу найти верного способа корректного обновления php на версию 5.6 mod_php с opcache, модулем для mysqli, под VestaCP. ОС Centos 7.2
То ошибки вылезают, то вообще сервер крашится, то не работает половина.
Необходимо обновить версию со всеми модулями, которые могут пригодиться (чтобы не ставить в дальнейшем) и при этом удалить мусор, оставшийся после обновления, чтобы не вызывал ошибок.
Обязательно opcache (собственно ради него все и задумывается).
Буду очень признателен за полный мануал.

Re: Обновление php 5.4 на php 5.6 + opcache под VestaCP на Centos 7.2

Posted: Sat Feb 27, 2016 8:02 pm
by SPEC1AL1ST
Вот допустим сейчас вышло вот так, хотя вроде делаю всё по мануалу:
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.
nginx:

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
Веб службы не стартуют после команды reboot:
Image

НО!!! В ручную с 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