首页 > 代码库 > centos6.5上配置apache + mysql + php4.4.9 + eaccelerator-0.9.5 + postgresql-8.3.13 备忘
centos6.5上配置apache + mysql + php4.4.9 + eaccelerator-0.9.5 + postgresql-8.3.13 备忘
1、apache + mysql 直接利用 yum 安装
yum -y install httpd httpd-devel mysql mysql-server httpd-manual mod_perl mod_auth_mysql mysql-connector-odbc mysql-devel libdbi-dbd-mysql
2、编译postgresql
-----
3、编译php4.4.9
./configure --enable-mbstring --with-zlib --without-iconv --with-mysql --with-pgsql=/usr/local/pgsql --with-apxs2=/usr/sbin/apxs
make clean
make
make install
4、编译eaccelerator
export PHP_PREFIX="/usr/local"
$PHP_PREFIX/bin/phpize
./configure --enable-shared --with-php-config=$PHP_PREFIX/bin/php-config
make
make install
5、修改php.ini文件
extension="/usr/local/lib/php/extensions/no-debug-non-zts-20020429/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
建立目录
mkdir -p /tmp/eaccelerator
chmod 777 /tmp/eaccelerator