OpenBSD 安裝 apache1.3+php5
#tar zxf apache_1.3.33
#cd apache_1.3.33
#./configure --prefix=/var/www --enable-module=so --activate-module=src/modules/php5/libphp5.a
#cd ../php-5.2.4
#./configure --with-mysql=/usr/local/mysql --with-apache=../apache_1.3.33 --with-config-file-path=/usr/local/lib --with-gd --enable-sockets --with-xmlrpc
#make && make install
#cd ../apache_1.3.33
#./configure --prefix=/var/www --enable-module=so --activate-module=src/modules/php5/libphp5.a
#make && make install
#cd ../php-5.2.4
#cp php.ini-dist /usr/local/lib/php.ini
#vi /var/www/conf/httpd.conf
加入底下這行
AddType application/x-httpd-php .php
※在configure --with-mysql php時,如果出現底下這樣的error message,
表示找不到mysql位置, 必須改成 ./configure --with-mysql=/usr/local/mysql
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
※在安裝apache2.2之前要先安裝底下packages:
apr-1.2.7.tgz
apr-util-1.2.7.tgz
db-4.2.52p11.tgz
2007年11月15日 星期四
OpenBSD 安裝 apache1.3+php5
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言