PHP安基本流程

安装过程基本如下

//install gd lib first!!
./configure --prefix=/usr/local/gd
make
make install

shell> groupadd mysql
shell> useradd -g mysql mysql
shell> gunzip < mysql-VERSION.tar.gz | tar -xvf -
shell> cd mysql-VERSION
shell> ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data
shell> make
shell> make install
shell> scripts/mysql_install_db
shell> chown -R root /usr/local/mysql
shell> chown -R mysql /usr/local/mysql/data
shell> chgrp -R mysql /usr/local/mysql
shell> cp support-files/my-medium.cnf /etc/my.cnf

#先配置apache

./configure --prefix=/usr/local/apache --sysconfdir=/usr/local/apache/conf --localstatedir=/www/servers --logfiledir=/usr/local/apache/logs --runtimedir=/usr/local/apache/logs
#配置php
./configure --with-mysql=/usr/local/mysql --with-apache=../apache-VERSION --with-gd=/usr/local/gd --enable-track-vars
make
make install
cp ./libs/libphp4.a ../apache-1.3.27/src/
#再次配置apache
./configure --prefix=/usr/local/apache --sysconfdir=/usr/local/apache/conf --localstatedir=/www/servers --logfiledir=/usr/local/apache/logs --runtimedir=/usr/local/apache/logs --activate-module=src/module/php4/libphp4.a
make
make install


來源文章:www.phpchina.com/5173/viewspace_1309.html



創作者介紹

創造心理的感動

gisanfu 發表在 痞客邦 PIXNET 留言(0) 人氣()