PHP / Perl

PHP, MySQL, PostgreSQL, Apacheのインストールmemo


もう完全にメモ。殴り書き。

[ mysql ]
# tar xzf mysql-5.1.43.tar.gz
# cd mysql-5.1.43
# ./configure --prefix=/usr/local/mysql -with-charset=utf8 -with-extra-charsets=all
# make; make install; make clean

[ postgresql ]
# tar xzf postgresql-8.4.2.tar.gz
# cd postgresql-8.4.2
# ./configure --prefix=/usr/local/pgsql
# make; make install; make clean


[ openssl ]
# ./config --prefix=/usr/local/openssl enable-tlsext; make depend; make; make install; make clean;

[ apache ]
# ./configure --prefix=/usr/local/apache --enable-so --enable-ssl --with-ssl=/usr/local/openssl --enable-deflate
# make; make install; make clean

[ php ]
# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --enable-mbstring --enable-mbregex
# make; make install; make clean
# cp php.ini-production /usr/local/php/lib/php.ini

[ php.ini ]
----
[mbstring]
mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
mbstring.http_input = auto
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = none;
mbstring.script_encoding=auto
----

[ httpd.conf ]
----
DirectoryIndex index.html index.php
AddType application/x-httpd-php .php
----

[ index.php ]
----
<?php phpinfo() ?>
----

このページの先頭へ