FreeBSD - メンテナンス・トラブルシュート - PHP - pear - cakephp

 クラウディア
1. 概要
2. チャンネルを追加
3. インストール

1. 概要

 cakephp に関しては「ウィキペディア - CakePHP」をご参照ください。  別の箇所に書いていますが NetCommons をインストールするには cakephp が必要なのです。  smarty は、ports に存在しましたが、cakephp は別途インストールするしかないようです。  本項は
PEAR インストーラで CakePHP をインストール
 を参考にさせていただきました。

2. チャンネルを追加

 参考サイトによれば、PHP のバージョンを確認しておけとのこと、一応

$ php -v
PHP 7.2.8 (cli) (built: Jul 24 2018 07:43:55) ( ZTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.8, Copyright (c) 1999-2018, by Zend Technologies
 参考サイトでは、cakephp2 は PHP 5.2 以降と書いてあるので、まぁ、十分ではありますが。  PHP 7.2 は大丈夫なんでしょうね?  下記はチャンネルを追加ということかしら?

$ pear channel-discover pear.cakephp.org
Discovering channel pear.cakephp.org over http:// failed with message: channel-add: Cannot open "http://pear.cakephp.org/channel.xml" (Connection to `ssl://pear.cakephp.org:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)
Trying to discover channel pear.cakephp.org over https:// instead
Discovery of channel "pear.cakephp.org" failed (channel-add: Cannot open "https://pear.cakephp.org/channel.xml" (Connection to `ssl://pear.cakephp.org:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?))
 う~む。SSL を有効にしろと?  おうおう、ターゲットでは PHP-openssl をインストールしていなかったのであった。

cd /usr/ports/lang/php72-extensions
make config
 で「OPENSSL」を有効にして

make deinstall clean
make
make install
 気を取り直して

$ pear channel-discover pear.cakephp.org
Adding Channel "pear.cakephp.org" succeeded
Discovery of channel "pear.cakephp.org" succeeded
 今度は成功したようです。

3. インストール


> pear install cakephp/CakePHP
downloading CakePHP-2.10.11.tgz ...
Starting to download CakePHP-2.10.11.tgz (845,053 bytes)
.........................................................................................................................................................................done: 845,053 bytes
 はぁ。  これで、下記のファイルがダウンロードできたのはわかったのですが・・・。

/tmp/pear/download/CakePHP-2.10.11.tgz
 これから先がわからない!?
earthcar(アースカー)