PHP5(OLD)
location : /usr/ports/lang/php5
+--------------------------------------------------------------
| Options for php5 5.3.8
+--------------------------------------------------------------
| [X] CLI Build CLI version
| [ ] CGI Build CGI version
| [ ] FPM Build FPM version (experimental)
| [X] APACHE Build Apache module
| [ ] AP2FILTER Use Apache 2.x filter interface (experimental)
| [ ] DEBUG Enable debug
| [X] SUHOSIN Enable Suhosin protection system
| [X] MULTIBYTE Enable zend multibyte support
| [ ] IPV6 Enable ipv6 support
| [X] MAILHEAD Enable mail header patch
| [ ] LINKTHR Link thread lib (for threaded extensions)
+---------------------------------------------------------------
make package-depends:
pcre-8.12:devel/pcre
libxml2-2.7.8_1:textproc/libxml2
libiconv-1.13.1_1:converters/libiconv
pkg-config-0.25_1:devel/pkg-config
apache-2.2.16:www/apache22
expat-2.0.1_2:textproc/expat2
apr-ipv6-devrandom-gdbm-db42-1.4.2.1.3.10:devel/apr1
gdbm-1.9.1:databases/gdbm
db42-4.2.52_5:databases/db42
perl-threaded-5.10.1_5:lang/perl5.10
-- apacheのための設定
拡張子phpを phpとして動作させるための設定を加えましょう
file:/usr/local/etc/apache22/httpd.conf
Make sure index.php is part of your DirectoryIndex.
You should add the following to your Apache configuration file:
下2行を追加しましょう
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps