edo1z blog

プログラミングなどに関するブログです

さくらレンタルサーバでcakephp3を動かす

すでにさくらサーバでgitが使えるようになっています。たしかデフォルトだと使えなかった気がする。マルチドメインで使います。 さくらサーバの管理画面の設定は抜かします。

composer installしたらエラーになりました。

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for cakephp/cakephp 3.3.11 -> satisfiable by cakephp/cakephp[3.3.11].
    - cakephp/cakephp 3.3.11 requires ext-intl * -> the requested PHP extension intl is missing from your system.
  Problem 2
    - cakephp/cakephp 3.3.11 requires ext-intl * -> the requested PHP extension intl is missing from your system.
    - cakephp/debug_kit 3.5.0 requires cakephp/cakephp >=3.1.0 <4.0 -> satisfiable by cakephp/cakephp[3.3.11].
    - Installation request for cakephp/debug_kit 3.5.0 -> satisfiable by cakephp/debug_kit[3.5.0].

  To enable extensions, verify that they are enabled in your .ini files:
    - /usr/local/php/5.6/etc/php.ini
    - /usr/local/php/5.6/etc/conf.d/opcache.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

デフォルトではintlがないらしい。

この参考記事のようにするとできるらしいけど、別のサーバ使うことにした。 参考:さくらのレンタルサーバでCakePHP3を使うためにintl extensionを導入する方法