linux+apache+php+fastcgi+mod_python安装流水帐

1,apache

./configure --prefix=/usr/local/httpd --enable-cgi --enable-so --enable-rewrite --enable-mods-shared=most --enable-ssl --with-ssl


2,php

./configure --prefix=/usr/local/php  --with-apxs2=/usr/local/httpd/bin/apxs --with-mysqli=/usr/bin/mysql_config --with-mysql -with-mysql=/usr --enable-zip --with-pdo-mysql --enable-fpm  --enable-mbstring  --with-iconv --with-iconv  --enable-json  --with-curl 
cp php.ini-* /usr/local/php/lib/
cp php.ini-development /usr/local/php/lib/php.ini


3,mod_python

./configure --with-apxs=/usr/local/httpd/bin/apxs --with-python=/usr/bin/python
vim httpd.conf
     LoadModule python_module        modules/mod_python.so


4,apc

svn co http://svn.php.net/repository/pecl/apc/trunk apc
/usr/local/php/bin/phpize
./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/local/php/bin/php-config --prefix=/usr/local/apc
make && make install
vim php.ini
extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20121212"
extension=apc.so
zend_extension=opcache.so

你可能感兴趣的:(linux)