2007. 1. 3. 17:25

[포트설치]Apache 2.0 + mod_php4 + mysql-server

Apache 2.0 + mod_php4 + mysql-server

_##]

Apache 2.0 + mod_php4 + mysql-server

cd /usr/ports/apache2/
make install clean

cd /usr/ports/mod_php4/
make WITH_APACHE2=yes with-language=korean with-charset=euc_kr install clean

cd /usr/ports/databases/mysql323-server
make install clean WITH_CHARSET=euc_kr

vi /usr/local/etc/apache2/httpd.conf 하여 아래 부분을 추가해준다.

LoadModule php4_module libexec/apache2/libphp4.so

#AddDefaultCharset ISO-8859-1
AddDefaultCharset EUC-KR    <=== 한글화 처리부분

DirectoryIndex index.php index.php3 index.html index.htm

AddType application/x-httpd-php .php .php3 .php4 .phtml .html .htm
AddType application/x-httpd-php-source .phps