# make test
Build complete.
Don't forget to run 'make test'.
=====================================================================
PHP : /usr/local/src/php/php-5.6/php-5.6.40/sapi/cli/php
PHP_SAPI : cli
PHP_VERSION : 5.6.40
ZEND_VERSION: 2.6.0
PHP_OS : Linux - Linux raspberrypi 6.1.31-v8.1.el9.altarch #1 SMP PREEMPT Sat Jun 10 22:16:20 UTC 2023 aarch64
INI actual : /usr/local/src/php/php-5.6/php-5.6.40/tmp-php.ini
More .INIs :
CWD : /usr/local/src/php/php-5.6/php-5.6.40
Extra dirs :
VALGRIND : Not used
=====================================================================
TIME START 2025-06-15 08:38:42
=====================================================================
TEST 1/12329 [tests/run-test/test001.phpt]PASS EXPECT [tests/run-test/test001.phpt]
TEST 2/12329 [tests/run-test/test002.phpt]PASS EXPECTF [tests/run-test/test002.phpt]
TEST 3/12329 [tests/run-test/test003.phpt]PASS EXPECTREGEX [tests/run-test/test003.phpt]
TEST 4/12329 [tests/run-test/test004.phpt]PASS INI section allows '=' [tests/run-test/test004.phpt]
:
FPM: Test fastcgi_finish_request function [sapi/fpm/tests/017.phpt]
FPM: Test global prefix [sapi/fpm/tests/019.phpt]
FPM: Test pool prefix [sapi/fpm/tests/020.phpt]
FPM: HTTP_PROXY - CVE-2016-5385 [sapi/fpm/tests/022-cve-2016-5385.phpt]
=====================================================================
=====================================================================
WARNED TEST SUMMARY
---------------------------------------------------------------------
zend multibyte (2) [ext/mbstring/tests/zend_multibyte-02.phpt] (warn: XFAIL section but test passes)
zend multibyte (6) [ext/mbstring/tests/zend_multibyte-06.phpt] (warn: XFAIL section but test passes)
zend multibyte (8) [ext/mbstring/tests/zend_multibyte-08.phpt] (warn: XFAIL section but test passes)
zend multibyte (10) [ext/mbstring/tests/zend_multibyte-10.phpt] (warn: XFAIL section but test passes)
zend multibyte (11) [ext/mbstring/tests/zend_multibyte-11.phpt] (warn: XFAIL section but test passes)
Phar: bug #69958: Segfault in Phar::convertToData on invalid file [ext/phar/tests/bug69958.phpt] (warn: XFAIL section but test passes)
Bug #69111 Crash in SessionHandler::read() [ext/session/tests/bug69111.phpt] (warn: XFAIL section but test passes)
Bug #70172 - Use After Free Vulnerability in unserialize() [ext/standard/tests/serialize/bug70172.phpt] (warn: XFAIL section but test passes)
=====================================================================
You may have found a problem in PHP.
This report can be automatically sent to the PHP QA team at
and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it. You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? [Yns]:
Please enter your email address.
(Your address will be mangled so that it will not go out on any
mailinglist in plain text):
Posting to http://qa.php.net/buildtest-process.php
Thank you for helping to make PHP better.
#
# cd /usr/local/php-5.6/etc/php
#
# cp php-fpm.conf.default php-fpm.conf
#
# vi php-fpm.conf
#
# diff -c php-fpm.conf.default php-fpm.conf
*** php-fpm.conf.default 2025-06-15 20:37:00.409739726 +0900
--- php-fpm.conf 2025-06-14 09:36:04.680649715 +0900
***************
*** 146,153 ****
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
! user = nginx
! group = nginx
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
--- 146,153 ----
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
! ;user = nginx
! ;group = nginx
; The address on which to accept FastCGI requests.
; Valid syntaxes are:
***************
*** 161,167 ****
; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
! listen = 127.0.0.1:9000
; Set listen(2) backlog.
; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
--- 161,168 ----
; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory.
! ;listen = 127.0.0.1:9000
! listen = /usr/local/php-5.6/var/run/php-fpm/php-fpm-5.6.sock
; Set listen(2) backlog.
; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
***************
*** 172,180 ****
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0660
! ;listen.owner = nginx
! ;listen.group = nginx
! ;listen.mode = 0660
; When POSIX Access Control Lists are supported you can set them using
; these options, value is a comma separated list of user/group names.
; When set, listen.owner and listen.group are ignored
--- 173,181 ----
; BSD-derived systems allow connections regardless of permissions.
; Default Values: user and group are set as the running user
; mode is set to 0660
! listen.owner = nginx
! listen.group = nginx
! listen.mode = 0660
; When POSIX Access Control Lists are supported you can set them using
; these options, value is a comma separated list of user/group names.
; When set, listen.owner and listen.group are ignored
***************
*** 187,193 ****
; must be separated by a comma. If this value is left blank, connections will be
; accepted from any ip address.
; Default Value: any
! ;listen.allowed_clients = 127.0.0.1
; Specify the nice(2) priority to apply to the pool processes (only if set)
; The value can vary from -19 (highest priority) to 20 (lower priority)
--- 188,194 ----
; must be separated by a comma. If this value is left blank, connections will be
; accepted from any ip address.
; Default Value: any
! listen.allowed_clients = 127.0.0.1
; Specify the nice(2) priority to apply to the pool processes (only if set)
; The value can vary from -19 (highest priority) to 20 (lower priority)
#
# mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 116
Server version: 10.5.27-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> grant all privileges on *.* to matcha@localhost identified by 'mypassword' with grant option;
Query OK, 0 rows affected (0.008 sec)
MariaDB [(none)]> create database matcha;
Query OK, 1 row affected (0.001 sec)
MariaDB [(none)]>
MAriaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.003 sec)
MariaDB [(none)]>
MariaDB [(none)]> commit;
Query OK, 0 rows affected (0.000 sec)
MariaDB [(none)]>
MariaDB [(none)]> exit
Bye
#
$ cd /home/matcha
$
$ mkdir matcha
$
$ cd matcha
$
$ pwd
/home/matcha/matcha
$
$ composer create-project --prefer-dist cakephp/app app
Creating a "cakephp/app" project at "./app"
Installing cakephp/app (3.10.1)
- Installing cakephp/app (3.10.1): Extracting archive
Created project in /home/matcha/matcha/app
Loading composer repositories with package information
Updating dependencies
Lock file operations: 74 installs, 0 updates, 0 removals
- Locking ajgl/breakpoint-twig-extension (0.3.5)
- Locking aptoma/twig-markdown (2.0.0)
- Locking asm89/twig-cache-extension (1.4.0)
:
- Locking wyrihaximus/twig-view (4.4.0)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 74 installs, 0 updates, 0 removals
cakephp/plugin-installer contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "cakephp/plugin-installer" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?] y <---Yを入力
- Installing cakephp/plugin-installer (1.3.1): Extracting archive
- Installing aura/intl (3.0.1): Extracting archive
- Installing symfony/polyfill-ctype (v1.19.0): Extracting archive
:
- Installing psy/psysh (v0.10.12): Extracting archive
24 package suggestions were added by new dependencies, use composer suggest to see details.
Package laminas/laminas-zendframework-bridge is abandoned, you should avoid using it. No replacement was suggested.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package aptoma/twig-markdown is abandoned, you should avoid using it. No replacement was suggested.
Package asm89/twig-cache-extension is abandoned, you should avoid using it. Use twig/cache-extension instead.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
> Cake\Composer\Installer\PluginInstaller::postAutoloadDump
Action required!
The CakePHP plugin installer v1.3+ no longer requires the
"post-autoload-dump" hook. Please update your app's composer.json
file and remove usage of
Cake\Composer\Installer\PluginInstaller::postAutoloadDump
24 packages you are using are looking for funding.
Use the composer fund command to find out more!
> App\Console\Installer::postInstall
Created config/app_local.php file
Created /home/matcha/matcha/app/tmp/cache/views directory
Set Folder Permissions ? (Default to Y) [Y,n]? Y <----Yを入力
Permissions set on /home/matcha/matcha/app/tmp/cache
Permissions set on /home/matcha/matcha/app/tmp/cache/models
Permissions set on /home/matcha/matcha/app/tmp/cache/persistent
Permissions set on /home/matcha/matcha/app/tmp/cache/views
Permissions set on /home/matcha/matcha/app/tmp/sessions
Permissions set on /home/matcha/matcha/app/tmp/tests
Permissions set on /home/matcha/matcha/app/tmp
Permissions set on /home/matcha/matcha/app/logs
Updated Security.salt value in config/app_local.php
$
nginxへのアクセスを設定する。
CakePHPのホームページ表示用の設定を行う。
# cd /etc/nginx/conf.d
#
# vi matcha.conf
#
# cat matcha.conf
server {
listen 443 ssl http2;
server_name test.testtest.jp;
root /home/matcha/matca/app/webroot;
location / {
index index.php;
location ~\.php$ {
try_files $uri =404;
fastcgi_pass unix:/usr/local/php-5.6/var/run/php-fpm/php-fpm-5.6.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
}
#
$ cd app/conifg
$
$ cp app.php app.php_org
$
$ vi app.php
$
$ diff -c app.php_org app.php
*** app.php_org 2025-06-28 08:10:58.605441921 +0900
--- app.php 2025-06-28 08:12:59.853170261 +0900
***************
*** 273,281 ****
/*
* It is recommended to set these options through your environment or app_local.php
*/
! //'username' => 'my_app',
! //'password' => 'secret',
! //'database' => 'my_app',
/*
* You do not need to set this flag to use full utf-8 encoding (internal default since CakePHP 3.6).
*/
--- 273,281 ----
/*
* It is recommended to set these options through your environment or app_local.php
*/
! 'username' => 'matcha',
! 'password' => 'mypassword',
! 'database' => 'matcha',
/*
* You do not need to set this flag to use full utf-8 encoding (internal default since CakePHP 3.6).
*/
$
$ cp app_local.php app_local.php_org
$
$ vi app_local.php
$
$ diff -c app_local.php_org app_local.php
*** app_local.php_org 2025-06-28 08:45:53.332701290 +0900
--- app_local.php 2025-06-28 08:46:33.436610736 +0900
***************
*** 43,51 ****
* the following line and set the port accordingly
*/
//'port' => 'non_standard_port_number',
! 'username' => 'my_app',
! 'password' => 'secret',
! 'database' => 'my_app',
'log' => true,
'url' => env('DATABASE_URL', null),
],
--- 43,51 ----
* the following line and set the port accordingly
*/
//'port' => 'non_standard_port_number',
! 'username' => 'matcha',
! 'password' => 'mypassword',
! 'database' => 'matcha',
'log' => true,
'url' => env('DATABASE_URL', null),
],
$
php.iniファイルにMySQLのソケット記述を追加する。
phpがMySQLにアクセスするためのソケット記述を追加する。
$ exit
ログアウト
#
# cp /usr/local/php-5.6/etc/php/php.ini /usr/local/php-5.6/etc/php/php.ini_org
#
# vi /usr/local/php-5.6/etc/php/php.ini
#
# diff -c /usr/local/php-5.6/etc/php/php.ini_org /usr/local/php-5.6/etc/php/php.ini
*** /usr/local/php-5.6/etc/php/php.ini_org 2025-06-28 08:28:54.119008377 +0900
--- /usr/local/php-5.6/etc/php/php.ini 2025-06-28 08:29:40.954901826 +0900
***************
*** 1,4 ****
--- 1,5 ----
memory_limit = 256M
+ pdo_mysql.default_socket=/var/lib/mysql/mysql.sock
[Date]
; Defines the default timezone used by the date functions
#
# cd /usr/local/php-5.6/etc/php
#
# vi php.ini
#
# cat php.ini
memory_limit = 256M
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Asia/Tokyo"
#