やりたいこと:CMS concrete5(ver5.6.5.7/php5.6)をローカル環境で動作させたい
PC:Windows10
1.MAMP_4.2.0をインストール
2.起動確認
3.起動終了
4.phpのバージョンを5.6にする
ディレクトリ、MAMP\bin\php
php5.6.0, php5.3.23 以外に「アンダーバー追加」
5.起動
6.アプリは立ち上がるが、ApacheもMySQLもスタートしない
php_error.logに以下のようなエラーがでていましたが、関係があるのかよくわかりません。
///[27-Jun-2020 06:42:54 UTC] PHP Warning: mysqli_connect(): (HY000/2002): �Ώۂ̃R���s���[�^�[�ɂ���ċ��ۂ��ꂽ���߁A�ڑ��ł��܂���ł����B in Command line code on line 1 [27-Jun-2020 06:42:54 UTC] PHP Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in Command line code on line 1 [27-Jun-2020 06:42:54 UTC] PHP Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, null given in Command line code on line 1 [27-Jun-2020 06:42:54 UTC] PHP Warning: mysqli_close() expects parameter 1 to be mysqli, boolean given in Command line code on line 1
Window10とMAMPの相性が悪いとアドバイスをいただきXAMMPで検証
1.XAMMP_x64-7.4.7をインストール
2.https://qiita.com/maniwac/items/a76fab2e03a655f22e6a
に従って、concrete5 5.6.5.7(現在公開しているサイトで使用中のバージョン) を
インストールし、my.int/php.iniをカスタマイズ
3.HTTP ERROR 500エラー
/// 、"PHP Fatal error: Cannot use Concrete\Core\Foundation\Object as Object because 'Object' is a special class name"
4.XAMMPを一端アンイストールし、ダウングレード版 XAMMP-win32-5.6.36(php5.6)をインストール
5.HTTP ERROR 500エラー
/// PHP Fatal error: Class 'Symfony\Component\ClassLoader\Psr4ClassLoader' not found in C:\xampp\htdocs\concrete5\concrete\src\Foundation\ClassLoader.php on line 227 PHP Warning: include(C:/xampp/htdocs/concrete5/application/bootstrap/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\concrete5\concrete\bootstrap\autoload.php on line 8 PHP Warning: include(): Failed opening 'C:/xampp/htdocs/concrete5/application/bootstrap/autoload.php' for inclusion (include_path='C:\xampp\htdocs\concrete5\concrete\vendor;C:\xampp\php\PEAR') in C:\xampp\htdocs\concrete5\concrete\bootstrap\autoload.php on line 8 PHP Fatal error: Class 'Symfony\Component\ClassLoader\Psr4ClassLoader' not found in C:\xampp\htdocs\concrete5\concrete\src\Foundation\ClassLoader.php on line 227 PHP Warning: include(C:/xampp/htdocs/concrete5/application/bootstrap/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\concrete5\concrete\bootstrap\autoload.php on line 8 PHP Warning: include(): Failed opening 'C:/xampp/htdocs/concrete5/application/bootstrap/autoload.php' for inclusion (include_path='C:\xampp\htdocs\concrete5\concrete\vendor;C:\xampp\php\PEAR') in C:\xampp\htdocs\concrete5\concrete\bootstrap\autoload.php on line 8 PHP Fatal error: Class 'Symfony\Component\ClassLoader\Psr4ClassLoader' not found in C:\xampp\htdocs\concrete5\concrete\src\Foundation\ClassLoader.php on line 227 PHP Warning: include(C:/xampp/htdocs/concrete5/application/bootstrap/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\concrete5\concrete\bootstrap\autoload.php on line 8 PHP Warning: include(): Failed opening 'C:/xampp/htdocs/concrete5/application/bootstrap/autoload.php' for inclusion (include_path='C:\xampp\htdocs\concrete5\concrete\vendor;C:\xampp\php\PEAR') in C:\xampp\htdocs\concrete5\concrete\bootstrap\autoload.php on line 8 PHP Fatal error: Class 'Symfony\Component\ClassLoader\Psr4ClassLoader' not found in C:\xampp\htdocs\concrete5\concrete\src\Foundation\ClassLoader.php on line 227 PHP Warning: include(C:/xampp/htdocs/concrete5/application/bootstrap/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\concrete5\concrete\bootstrap\autoload.php on line 8 PHP Warning: include(): Failed opening 'C:/xampp/htdocs/concrete5/application/bootstrap/autoload.php' for inclusion (include_path='C:\xampp\htdocs\concrete5\concrete\vendor;C:\xampp\php\PEAR') in C:\xampp\htdocs\concrete5\concrete\bootstrap\autoload.php on line 8 PHP Fatal error: Class 'Symfony\Component\ClassLoader\Psr4ClassLoader' not found in C:\xampp\htdocs\concrete5\concrete\src\Foundation\ClassLoader.php on line 227
phpのバージョン ダウングレードだけではうまくいかなかった
回答1件
あなたの回答
tips
プレビュー