Pukiwiki でメモしたデータがあるので Mac Mini M2 に持っていく。 PukiWiki は PHP のアプリケーションであるため、PHP を動かさなければならない。 Mac Mini M2 で Apacheを動かした時、PHPがサポートされていないので CGI で動かす設定 をしたが、 これだけではだめ なようなので、結局、PHP をインストールした。 インストールした PHPは「署名して認証」しないと動かなかった。 PukiWiki は最新版にアップデートする必要があった。 PHP インストール $ brew install php ... $ To enable PHP in Apache add the following to httpd.conf and restart Apache: LoadModule php_module /opt/homebrew/opt/php/lib/httpd/modules/libphp.so < FilesMatch \.php$ > SetHandler application/x-httpd-php </ FilesMatch > Finally, check DirectoryIndex includes index.php DirectoryIndex index.php index.html The php.ini and php-fpm.ini file can be found in: /opt/homebrew/etc/php/8.2/ To start php now and restart at login: brew services start php httpd.conf を編集したが、エラーがでている。 $ apachectl configtest [Fri Feb 24 20:46:41.855315 2023] [so:error] [pid 13516] AH06665: No code signing authority for module at /opt/homebrew/opt/php/lib/httpd/modules/libphp.so s...






コメント
コメントを投稿