|
.tar.gz
.tar.gz17
--with-apxs2=/usr/local/apache2/bin/apxs \ //Build shared Apache 2.0 Handler module[apxs]
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-openssl \ //Include OpenSSL support(requires OpenSSL>=0.9.6)
--with-curl \ //Include cURL support
--with-gdbm \ //DBA: GDBM support qdbm gdbm ndbm
--with-png-dir \ //GD: Set the path to libpng install prefix
--with-ttf \ //GD: Include FreeType 1.x support
--with-iconv-dir=/usr/local \ //Exclude iconv support
--enable-exif \ //Enable EXIF (metadata from images) support
--enable-shared \ //Build share libraries [default=yes]
--enable-calendar \ //Enable support for calendar conversion
--enable-xml \
--enable-shmop \ //Enable shmop support \
--prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-config-file-path=/usr/local/php/etc --with-libxml-dir=/usr --with-openssl --with-zlib --with-bz2 --with-curl --with-curlwrappers --enable-dba --with-gdbm --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-ldap --with-ttf --with-mcrypt --with-freetype-dir --with-iconv-dir=/usr/local --enable-gd-native-ttf --enable-mbstring --enable-exif --enable-ftp --enable-wddx --enable-shared --enable-safe-mode --enable-magic-quotes --enable-calendar --disable-ipv6 --enable-bcmath --enable-xml --with-mhash --enable-inline-optimization --enable-shmop --enable-sockets --enable-gd-native-ttf ----
make install
/*如果没有使用别的方法,make install将会安装pear.2Add this for PHP5:
AddType application/x-httpd-php-source .phps
===============================================================================
tar zxvf ZendOptimizer-3.3.
-linux-glibc23-i386
zend_extension=/usr/local/apache2/modules/ZendOptimizer.so
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
, Copyright (c) 1998-2007, by Zend Technologies
#eaccelerator是PHP的加速软件,使用后PHP的执行效率会有较大幅度的提升
tar jxvf eaccelerator-0.9.
/
$PHP_PREFIX/bin/phpize
Zend Module Api No: 20060613 ./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
#安装完成后,屏幕会显示出 eaccelerator.so所在的路径
#建立缓存目录
#eaccelerator即可以安装为PHP扩展,也可以安装成Zend扩展,以下是安装成Zend扩展
cp /usr/local/
/etc/php.ini
[eaccelerator]
eaccelerator.cache_dir="/usr/local/eaccelerator_cache"
eaccelerator.check_mtime="1"
eaccelerator.shm_max="0"
eaccelerator.shm_only="0"
===============================================================================
cd PDO_MYSQL-1.0.2/
Configuring for:
Zend Extension Api No: 220060519
make install
Install memcache
wget http://pecl.php.net/get/memcache-2.2.6.tgz6cd memcache-2.2.
$PHP_PREFIX/bin/phpize
Zend Module Api No: 20060613
make
#vi /usr/local/php/etc/php.ini
查找/usr/local/php/etc/php.ini中的extension_dir = "./"
extension = "memcache.so"
修改为output_buffering = .
sed -i 's#output_buffering = Off#output_buffering = .#' /usr/local/php/etc/php.ini
vi /usr/local/Zend/etc/php.ini
#upload_max_filesize = 2M //修改上传文件的限制
sed -i 's/post_max_size = 8M/ post_max_size = 30M/g' /usr/local/Zend/etc/php.ini
sed -i '/display_errors/s/On/Off/' /usr/local/php/etc/php.ini
NameVirtualHost *:80
"nagios.jetsum.com
ServerAdmin DocumentRoot "cacti.jetsum.com
Timeout 15
KeepAliveTimeout 5
ServerTokens Prod
MinSpareServers 10
MaxRequestsPerChild 10000
|
|
|
|
|
|
|