httpd-2.0.61とPHP5.2.5のインストール。
# cd /usr/local/src # cd ~/httpd-2.0.61.tar.gz . # tar xzfv httpd-2.0.61.tar.gz # cd httpd-2.0.61 # ./configure --enable-so --enable-module=so --enable-module=rewrite # make # make install # cd /usr/local/apache2/bin/ # ./apachectl
- PHPのインストール
# cd ~/php-5.2.5.tar.gz . # tar xzfv php-5.2.5.tar.gz # cd php-5.2.5 # ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-magic-quotes --enable-mbregex --enable-mbstring --enable-zend-multibyte --with-pgsql --with-mysql=/usr/bin/mysql --enable-ftp --with-zlib (本当は1行で記述)
とすると以下のようなエラーが出現
configure: error: xml2-config not found. Please check your libxml2 installation.
どうやらlibxslt-develが足りないらしい。
# yum install libxslt-devel
coLinuxでLinuxを動かしているので、windowsのFW(ウイルスバスター)に引っかかる。
どうやって解決するのだろう?
# tar zxvf mysql-5.0.45.tar.gz # cd mysql-5.0.45 # ./configure --prefix=/usr/local/mysql --with-charset=utf8 --with-extra-charsets=all --with-mysqld-user=mysql # make # make install #cp ./support-files/my-medium.cnf /etc/my.cnf #vi /etc/my.cnf 以下の行を追加、修正 [mysqld] default-character-set=utf8 [mysql] default-character-set=utf8 [mysqldump] default-character-set=utf8 DB初期化 #./scripts/mysql_install_db --user=mysql 起動時に実行 # cp ./support-files/mysql.server /etc/rc.d/init.d/mysql # chmod +x /etc/rc.d/init.d/mysql # /etc/rc.d/init.d/mysql start ようやくPHPをmake # ./configure --with-apxs2=/usr/local/apache2/bin/apxs --enable-magic-quotes --with-xml --enable-mbregex --enable-mbstring --enable-zend-multibyte --without-pgsql --with-mysql=/usr/local/mysql --enable-ftp --with-zlib # make # make install # tar xzfv php-5.2.5.tar.gz Oracleのmake /usr/local/src/php-5.2.2 ./configure --with-oci8=instantclient,/usr/local/lib/instantclient_10_2 --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring --enable-zend-multibyte