php、mysql编译配置
与apache一起使用:
Configure Command => './configure' '--prefix=/home/sujunjie/local/php' '--with-apxs2=/home/sujunjie/local/apache/bin/apxs' '--with-mysql=/home/sujunjie/local/mysql' '--with-mysqli=/home/sujunjie/local/mysql/bin/mysql_config' '--with-mhash=/home/sujunjie/local/mhash-0.9.7.1' '--with-libxml-dir=/home/sujunjie/local/libxml2-2.6.30' '--with-gd=/home/sujunjie/local/gd-2.0.33' '--with-png-dir=/home/sujunjie/local/libpng-1.2.12' '--with-mcrypt=/home/sujunjie/local/libmcrypt-2.5.7' '--with-zlib-dir=/home/sujunjie/local/zlib-1.2.3' '--with-pdo-mysql=/home/sujunjie/local/mysql' '--enable-bcmath' '--enable-ftp' '--enable-sockets' '--enable-wddx' '--enable-mbstring' '--enable-dom' '--enable-pcntl' '--without-sqlite' '--enable-shmop' '--enable-soap' '--with-curl'
与nginx一起使用:
Configure Command => './configure' '--prefix=/home/sujunjie/local/php-5.3.24' '--enable-fastcgi' '--enable-fpm' '--with-mysql=/home/sujunjie/local/mysql' '--with-mysqli=/home/sujunjie/local/mysql/bin/mysql_config' '--with-mhash=/home/sujunjie/local/mhash-0.9.7.1' '--with-libxml-dir=/home/sujunjie/local/libxml2-2.6.30' '--with-gd=/home/sujunjie/local/gd-2.0.33' '--with-png-dir=/home/sujunjie/local/libpng-1.2.12' '--with-mcrypt=/home/sujunjie/local/libmcrypt-2.5.7' '--with-zlib-dir=/home/sujunjie/local/zlib-1.2.3' '--with-pdo-mysql=/home/sujunjie/local/mysql' '--enable-bcmath' '--enable-ftp' '--enable-sockets' '--enable-wddx' '--enable-mbstring' '--enable-dom' '--enable-pcntl' '--without-sqlite' '--enable-shmop' '--enable-soap' '--with-curl'
mysql安装:
./configure \
--prefix=/home/ssd6/sujunjie/local/mysql-5.0.45 \
--with-xcharset=all \
--with-charset=utf8 \
--enable-local-infile \
--with-unix-socket-path=/home/ssd6/sujunjie/local/mysql-5.0.45/mysql.sock \
--with-tcp-port=3306 \
--with-mysqld-user=sujunjie
cp /home/ssd6/sujunjie/local/mysql-5.0.45/share/mysql/my-huge.cnf /home/ssd6/sujunjie/local/mysql-5.0.45/my.cnf
/home/ssd6/sujunjie/local/mysql-5.0.45/bin/mysql_install_db --defaults-file=/home/ssd6/sujunjie/local/mysql-5.0.45/my.cnf