libiconv
./configure --prefix=/usr/local/libiconv
make
make install
1.apache
--prefix=/usr/local/apache--enable-so --enable-rewrite --enable-mods-shared=most
make && make install
vi /usr/local/apache/conf/httpd.conf
---------------------------------------------------------------------------------------------------------------------
#ServerName www.example.com:80
ServerName 127.0.0.1
2.mysqlcmake
./configure
make && make install
cmake-DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
-DMYSQL_DATADIR=/data/mysql/data \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_ARCHIVE_STORAGE_ENGINE=1 \
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DEXTRA_CHARSETS=all \
-DMYSQL_TCP_PORT=3306make && make install
/usr/sbin/groupadd-r -g 3306 mysql
/usr/sbin/useradd-u 3306 -g mysql -r -M -s /sbin/nologin mysql
--更改数据文件属组及权限
chown -R mysql:mysql/data/mysql
chmod -R 755/data/mysql/
--建立cnf文件
cpsupport-files/my-medium.cnf /etc/my.cnf
--初使化数据库
/usr/local/mysql/scripts/mysql_install_db--user=mysql --basedir=/usr/local/mysql --datadir=/data/mysql/data &
# cpsupport-files/mysql.server /etc/init.d/mysqld
#chmod +x /etc/init.d/mysqld
3.php
./configure--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs\
--enable-cgi--with-mysql=/usr/local/mysql \
--with-config-file-path=/usr/local/php/etc\
--with-pdo-mysql=/usr/local/mysql/ \
--with-mysqli=/usr/local/mysql/bin/mysql_config\
--enable-zip--enable-sqlite-utf8 --enable-sockets \
--enable-soap--enable-pcntl --enable-mbstring \
--enable-calendar--enable-bcmath \
--with-iconv=/usr/local/libiconv/\
--enable-exif--with-mcrypt --with-mhash --with-gd \
--with-png-dir--with-jpeg-dir --with-freetype-dir \
--with-libxml-dir--with-curl --with-curlwrappers \
--with-zlib --with-openssl --with-kerberos=shared \
--with-gettext=shared--with-xmlrpc=shared --with-xsl \
make && make installcp php.ini- production /usr/local/php/etc/php.ini
--整合Apache、PHP及系统初使化配置
sudo vim/usr/local/apache/conf/httpd.conf
查找AddTypeapplication/x-gzip .gz .tgz,在该行下面添加
AddTypeapplication/x-httpd-php .php
查找DirectoryIndexindex.html 把该行修改成
DirectoryIndexindex.html index.htm index.php
4.zendvi php.ini
extension=/usr/local/Zend/ZendOptimizer.so
5.freetds
./configure--prefix=/usr/local/freetds --with-tdsver=7.1--enable-msdblib --with-gnu-ld --enable-shared --enable-static
make && make installvim/usr/local/freetds/etc/freetds.conf
[mysqlserver]
host =192.168.176.20
port = 1433
tds version = 8.0
client charset=utf-8
#cd/usr/local//src/php-5.2.17/ext/mssql/ / /进入php解压目录
#/usr/local/php/bin/phpize
#./configure--with-php-config=/usr/local/php/bin/php-config --with-mssql=/usr/local/freetds/
#make
#makeinstall
5.memcached./configure --with-libevent=/usr/local/libevent
#/usr/local/bin/memcached -d -m 2000 -P/tmp/memcached.pid
echo "/usr/local/bin/memcached -d -m 20000 -u root-P /tmp/memcached.pid " >> /etc/rc.local
6.memcache/usr/local/php/bin/phpize
./configure --enable-memcache--with-php-config=/usr/local/php/bin/php-config --with-zlib-dir
make
make install