cakephp2系がうまくインストールできなかったので

今までの方法で、インストールして設定しようとしたらうまくいかず
harucharuru.hatenablog.com

出たエラー
f:id:harucharuru:20210209134503p:plain
f:id:harucharuru:20210209134539p:plain
$ Console/cake bake
PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /home/mznpub/www/tmedeye/lib/Cake/Core/Object.php on line 30

Fatal error: Cannot use 'Object' as class name as it is reserved in /home/mznpub/www/tmedeye/lib/Cake/Core/Object.php on line 30
Fatal Error Error: Cannot use 'Object' as class name as it is reserved in [/home/mznpub/www/tmedeye/lib/Cake/Core/Object.php, line 30]


ということで、別の方法です。

git clone https://github.com/cakephp/cakephp.git -b 2.x
cd ダウンロードしたフォルダ
chmod -R 777 lib/Cake/Cache/
chmod -R 777 app/tmp/

f:id:harucharuru:20210209134718p:plain

セキュリティソルト変更

vi Config/core.php

f:id:harucharuru:20210209134917p:plain