PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:ops-logs:2018-04-25-dokuwiki-upgrade:2018-04-25-dokuwiki-upgrade

2018-04-25 DokuWiki Upgrade 2018-04-22 Release "Greebo"

changes [DokuWiki]

This release requires PHP 5.6 at least!
[root@mx1 dokuwiki]# tail /var/log/nginx/error.log
2018/04/24 09:07:01 [error] 27188#0: *189173 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:07:02 [error] 27188#0: *189173 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:07:02 [error] 27188#0: *189173 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:07:03 [error] 27188#0: *189173 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:07:03 [error] 27188#0: *189173 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:07:03 [error] 27188#0: *189173 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:07:13 [error] 27188#0: *189173 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:07:14 [error] 27188#0: *189173 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:07:15 [error] 27188#0: *189173 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:08:24 [error] 27188#0: *189273 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 216.244.66.226, server: pg1x.com, request: "GET /start?idx=tech%3Acloud%3Aopenstack%3Aocata%3Ainstall HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
[root@mx1 dokuwiki]# php -v
PHP 5.4.16 (cli) (built: Mar  7 2018 13:34:47)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

HowTos/php7 - CentOS Wiki

yum -y install centos-release-scl.noarch
yum -y install rh-php70 rh-php70-php rh-php70-php-fpm

/etc/nginx/conf.d/pg1x.com.conf

unix:/var/run/php-fpm/php-fpm.sock

/etc/opt/rh/rh-php70/php-fpm.d/www.conf

[wnoguchi@mx1 ~]$ sudo cp -p /etc/opt/rh/rh-php70/php-fpm.d/www.conf /root/

[wnoguchi@mx1 ~]$ sudo systemctl enable rh-php70-php-fpm.service
Created symlink from /etc/systemd/system/multi-user.target.wants/rh-php70-php-fpm.service to /usr/lib/systemd/system/rh-php70-php-fpm.service.
[wnoguchi@mx1 ~]$ sudo systemctl start rh-php70-php-fpm.service
[wnoguchi@mx1 ~]$ sudo systemctl status rh-php70-php-fpm.service
● rh-php70-php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/rh-php70-php-fpm.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2018-04-24 09:30:37 JST; 2s ago
 Main PID: 29390 (php-fpm)
   Status: "Ready to handle connections"
   CGroup: /system.slice/rh-php70-php-fpm.service
           ├─29390 php-fpm: master process (/etc/opt/rh/rh-php70/php-fpm.conf)
           ├─29391 php-fpm: pool www
           ├─29392 php-fpm: pool www
           ├─29393 php-fpm: pool www
           ├─29394 php-fpm: pool www
           └─29395 php-fpm: pool www

Apr 24 09:30:37 mx1.pg1x.com systemd[1]: Starting The PHP FastCGI Process Manager...
Apr 24 09:30:37 mx1.pg1x.com systemd[1]: Started The PHP FastCGI Process Manager.

[wnoguchi@mx1 ~]$ sudo systemctl reload nginx


[root@mx1 ~]# tail /var/log/nginx/
access.log              access.log-20180418.gz  access.log-20180422.gz  error.log-20180415.gz   error.log-20180419.gz   error.log-20180423.gz
access.log-20180415.gz  access.log-20180419.gz  access.log-20180423.gz  error.log-20180416.gz   error.log-20180420.gz   error.log-20180424.gz
access.log-20180416.gz  access.log-20180420.gz  access.log-20180424.gz  error.log-20180417.gz   error.log-20180421.gz
access.log-20180417.gz  access.log-20180421.gz  error.log               error.log-20180418.gz   error.log-20180422.gz
[root@mx1 ~]# tail /var/log/nginx/error.log
2018/04/24 09:07:14 [error] 27188#0: *189173 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:07:15 [error] 27188#0: *189173 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:08:24 [error] 27188#0: *189273 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 216.244.66.226, server: pg1x.com, request: "GET /start?idx=tech%3Acloud%3Aopenstack%3Aocata%3Ainstall HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:16:44 [error] 27188#0: *189351 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 216.244.66.226, server: pg1x.com, request: "GET /robots.txt HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:27:02 [error] 27188#0: *189489 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /var/www/dokuwiki/inc/ActionRouter.php on line 95" while reading response header from upstream, client: 220.181.108.108, server: pg1x.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:31:31 [error] 27188#0: *189546 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to undefined function hash_equals() in /var/www/dokuwiki/inc/PassHash.class.php on line 94" while reading response header from upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "pg1x.com"
2018/04/24 09:31:49 [crit] 29427#0: *189551 connect() to unix:/var/run/php-fpm/php70-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php70-fpm.sock:", host: "pg1x.com"
2018/04/24 09:31:49 [crit] 29427#0: *189551 connect() to unix:/var/run/php-fpm/php70-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php70-fpm.sock:", host: "pg1x.com", referrer: "https://pg1x.com/tech:cloud:openstack:mitaka:install-openstack-mitaka-all-in-one-1:install-openstack-mitaka-all-in-one-1"
2018/04/24 09:31:52 [crit] 29427#0: *189551 connect() to unix:/var/run/php-fpm/php70-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /doku.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php70-fpm.sock:", host: "pg1x.com"
2018/04/24 09:31:53 [crit] 29427#0: *189551 connect() to unix:/var/run/php-fpm/php70-fpm.sock failed (13: Permission denied) while connecting to upstream, client: 203.152.201.78, server: pg1x.com, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php70-fpm.sock:", host: "pg1x.com", referrer: "https://pg1x.com/doku.php"
[root@mx1 ~]# ls -l unix:/var/run/php-fpm/php70-fpm.sock
ls: cannot access unix:/var/run/php-fpm/php70-fpm.sock: No such file or directory
[root@mx1 ~]# ls -l /var/run/php-fpm/php70-fpm.sock
srw-rw---- 1 nobody nobody 0 Apr 24 09:30 /var/run/php-fpm/php70-fpm.sock
[root@mx1 ~]# ls -l /var/run/php-fpm/php-fpm.sock
srw-rw-rw- 1 nobody nobody 0 Mar 30 23:05 /var/run/php-fpm/php-fpm.sock
[root@mx1 ~]# ls -l /var/run/php-fpm/
total 4
srw-rw---- 1 nobody nobody 0 Apr 24 09:30 php70-fpm.sock
-rw-r--r-- 1 root   root   4 Mar 30 23:05 php-fpm.pid
srw-rw-rw- 1 nobody nobody 0 Mar 30 23:05 php-fpm.sock

[root@mx1 ~]# sudo systemctl restart rh-php70-php-fpm.service
[root@mx1 ~]# ls -l /var/run/php-fpm/
total 4
srw-rw-rw- 1 nobody nobody 0 Apr 24 09:39 php70-fpm.sock
-rw-r--r-- 1 root   root   4 Mar 30 23:05 php-fpm.pid
srw-rw-rw- 1 nobody nobody 0 Mar 30 23:05 php-fpm.sock
sudo yum -y install rh-php70-php-mysql
sudo systemctl restart rh-php70-php-fpm.service
tech/ops-logs/2018-04-25-dokuwiki-upgrade/2018-04-25-dokuwiki-upgrade.txt · Last modified: 2018/04/26 08:36 by wnoguchi