#author("2018-06-04T14:27:23+09:00","default:ichinomoto","ichinomoto") #author("2018-06-20T15:17:17+09:00","default:ichinomoto","ichinomoto") * FreeBSD [#tb9bdcac] ** Apache [#efe79d21] ***apache24 [#w6262545] cd /usr/ports/www/apache24 make install clean ** PHP72 [#uff5ceef] 問題なければこちら~ ***php72 [#eea4f1fb] cd /usr/ports/lang/php72 make install clean ***php72-extensions [#hd9d6f93] cd /usr/ports/lang/php72-extensions make install clean configは mbstring,openssl,mysql を有効化 ***mod_php72 [#reff3c95] cd /usr/ports/www/mod_php72 make install clean ** PHP56 [#b8563825] 2018年末までなので非推奨 ***php56 [#f74fc9af] cd /usr/ports/lang/php56 make install clean ***php56-extensions [#k8b64fab] cd /usr/ports/lang/php56-extensions make install clean configは mbstring,openssl,mysql を有効化 ***mod_php56 [#db64a4fb] cd /usr/ports/www/mod_php56 make install clean ** php設定 [#w61e3158] /usr/local/etc/php.ini cd /usr/local/etc cp php.ini-production php.ini ** Apacheでのphp有効化 [#e1930681] ***/usr/local/etc/apache24/httpd.conf [#o06d3672] LoadModuleが並んでいる最後に、使うバージョンのものどちらか一方のみ追加。 LoadModule php7_module libexec/apache24/libphp7.so #LoadModule php5_module libexec/apache24/libphp5.so 指定がない場合index.phpも読み込むように設定追加 <IfModule dir_module> DirectoryIndex index.html index.php </IfModule> 最後のIncludeの前に追加 <FilesMatch \.php> SetHandler application/x-httpd-php </FilesMatch> **portsの更新など [#x094d618] automake-16.1更新での問題対応~ [[https://shaunc.com/blog/article/resolving-portmaster-error-pkgstatic-automake1.16.1-conflicts-with-automakewrapper20131203~kH3KuoFdJyLv]]