Help us understand the problem. What is going on with this article?


More than 5 years have passed since last update.




$ php composer.phar create-project -s dev cakephp/app


Your requirements could not be resolved to an installable set of packages.
  - Installation request for cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
  - cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.


$ php -i | grep intl


# sudo pecl install intl


# yum install php-pear
# pecl install intl


ERROR: `/tmp/pear/temp/intl/configure --with-icu-dir=DEFAULT' failed


# yum install icu libicu-devel
# pecl install intl
->You should add "" to php.iniって言われるので、その通りにする。


# vi  /etc/php.ini
 ; Dynamic Extensions ;  
 ; If you wish to have an extension loaded automatically, use the following
 ; syntax:


# service httpd restart



mysql> create database xxx;
mysql> grant all on xxx.* to dbuser@localhost identified by 'xxx';


$ vi app/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' => 'nonstandard_port_number',
            'username' => 'xxxx',
            'password' => 'xxxx',
            'database' => 'xxxx',
            'encoding' => 'utf8',
            'timezone' => 'UTC',
            'cacheMetadata' => true,


Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away