Archive for 05月 27th, 2008

apache限速模块

星期二, 05月 27th, 2008

下载地址 http://bwmod.sourceforge.net/ tips: 1.安装apache的时候一定要enable-so 2.使用apxs -i -a -c mod_bw.c example: httpd.conf BandwidthModule On ForceBandWidthModule On LargeFileLimit .iso 1 2000000

Linux下编译安装apache+php+mysql

星期二, 05月 27th, 2008

1. 编译mysql ./configure --prefix=/usr/local/mysql --with-charset=gb2312 make make install groupadd mysql useradd -g mysql mysql cd /usr/local/mysql chown -R mysql . chgrp -R mysql . scripts/mysql_install_db --user=mysql chown -R root . chown -R mysql data bin/mysqld_safe --user=mysql & cp /usr/local/mysql/share/mysql/mysql.server /etc/init.d/ 以后启动就可以直接用/etc/init.d/mysql.server start 或者在rc*.d(debian 4 etch在rc2.d,其余linux系统基本在rc3.d)里面加上启动脚本 2. 编译apache ./configure --prefix=/usr/local/apache2 --enable-module-so --enable-rewrite make make install 3. 编译php ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs \ --disable-debug --disable-rpath --enable-inline-optimization \ --with-mysql=/usr/local/mysql --with-gd --with-freetype-dir \ --with-png-dir --with-iconv --with-jpeg-dir --with-zlib make make install cp %php_source%/php.ini-dist ...