CakePHP 繧、繝ウ繧ケ繝医シ繝ォ繝サ險ュ螳

莠句燕貅門y

Xampp

繝ュ繝シ繧ォ繝ォ縺ァ髢狗匱縺吶k蝣エ蜷
XAMPP縲榊盾辣ァ

Composer

PHP Composer縲榊盾辣ァ

PHP

繝ェ繝昴ず繝医Μ繝代ャ繧ア繝シ繧ク繧、繝ウ繧ケ繝医シ繝ォ
# yum install -y epel-release
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
繝ェ繝昴ず繝医Μ謖螳壹う繝ウ繧ケ繝医シ繝ォ
# yum install -y –enablerepo=remi-php71 php
# yum install -y –enablerepo=remi-php71 php-devel
# yum install -y –enablerepo=remi-php71 php-mysql
# yum install -y –enablerepo=remi-php71 php-mbstring
# yum install -y –enablerepo=remi-php71 php-gd
# yum install -y –enablerepo=remi-php71 php-pear
# yum install -y –enablerepo=remi-php71 httpd-devel
# yum install -y –enablerepo=remi-php71 php-intl

繧、繝ウ繧ケ繝医シ繝ォ

Composer繧貞茜逕ィ
xampp縺ョ蜈ャ髢九ョ繧」繝ャ繧ッ繝医Μ(htdocs)縺ォcakephptest縺ィ縺縺繝励Ο繧ク繧ァ繧ッ繝医r菴懈

cd C:\xampp\htdocs
composer create-project –prefer-dist cakephp/app cakephptest

險ュ螳

apache

mod_rewrite繝「繧ク繝・繝シ繝ォ繧定ェュ縺ソ霎シ縺ソ
WEB繧オ繝シ繝舌シシ哂pache/mod_rewrite繝「繧ク繝・繝シ繝ォ縲榊盾辣ァ
蜈ャ髢九ョ繧」繝ャ繧ッ繝医Μ縺ョ荳頑嶌縺崎ィア蜿ッ
WEB繧オ繝シ繝舌シシ哂pache/蜈ャ髢九ョ繧」繝ャ繧ッ繝医Μ縲榊盾辣ァ

PHP

php_intl

窶サス杤php\php.ini
竊薙r霑ス蜉

extension=php_intl.dll
CakePHP縺ォ蠢隕√↑PHP諡。蠑オ繝「繧ク繝・繝シ繝ォ縺ョ繝ュ繝シ繝

Security.salt

~\xampp\htdocs\cakephptest\config\app.php
‘Security’ => [
‘salt’ => env(‘SECURITY_SALT’, ‘aaaaabbbbbcccccddddd‘),
],

繝。繝シ繝ォ險ュ螳

~\xampp\htdocs\cakephptest\config\app.php
‘EmailTransport’ => [
‘default’ => [
‘className’ => ‘Smtp‘,
‘host’ => ‘XXXXXXXXXX‘,
‘port’ => 587,
‘timeout’ => 30,
‘username’ => ‘XXXX@XXXXXXXXXX‘,
‘password’ => ‘XXXXXXXX‘,
‘client’ => null,
‘tls’ => null,
‘url’ => env(‘EMAIL_TRANSPORT_DEFAULT_URL’, null),
],
],
‘Email’ => [
‘default’ => [
‘transport’ => ‘default’,
‘from’ => ‘XXXX@XXXXXXXXXX‘,
//’charset’ => ‘utf-8′,
//’headerCharset’ => ‘utf-8’,
],
],
Xampp縺ョ繝。繝シ繝ォ險ュ螳壹ッ縲XAMPP/SendMail縲榊盾辣ァ

DB

~\xampp\htdocs\cakephptest\config\app.php
‘Datasources’ => [
‘default’ => [
‘className’ => ‘Cake\Database\Connection’,
‘driver’ => ‘Cake\Database\Driver\Mysql’,
‘persistent’ => false,
‘host’ => ‘localhost‘,
/**
* CakePHP will use the default DB port based on the driver selected
* MySQL on MAMP uses port 8889, MAMP users will want to uncomment
* the following line and set the port accordingly
*/
//’port’ => ‘non_standard_port_number’,
‘username’ => ‘テ療療療‘,
‘password’ => ‘テ療療療‘,
‘database’ => ‘test‘,
‘encoding’ => ‘utf8’,
‘timezone’ => ‘UTC’,
‘flags’ => [],
‘cacheMetadata’ => true,
‘log’ => false,
繝繝シ繧ソ繝吶シ繧ケシ嗾est
繝繝シ繝悶Νシ嗾ests
繧剃ス懈

SELinux

繧サ繧ュ繝・繝ェ繝繧」讖溯ス
迥カ諷狗「コ隱
getenforece
permissive繝「繝シ繝峨∈
setenforce 0
enforcing繝「繝シ繝峨∈
setenforce 1
窶サ/etc/selinux/config
enforcing繝「繝シ繝峨∈
SELINUX=enforcing
permissive繝「繝シ繝峨∈
SELINUX=permissive
辟。蜉ケ
SELINUX=disabled

Follow me!

谺。縺ョ險倅コ

CakePHP 讒区