会动的耳朵  

 

mysql使用阿里云的rds

 

httpd服务

1. 安装apr和apr-util 

2. 安装 httpd

 

apache.org,apr.apache.org

 

安装命令:

    

./configure --prefix=/usr/local/apache  --sysconfdir=/etc/httpd --enable-so --enable-ssl --enable-cgi --enable-rewrite --with-zlib --with-pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --enable-mpm --with-mpm=worker 

        这里的with-mpm=worker自己确认选择哪一种模式,个人推荐worker

       配置httpd.conf

       主要是性能参数配置和vhosts配置

       

 

3. 安装php

./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysql --with-mysqli --enable-mysqlnd --with-pdo-mysql --with-mysql-sock=/tmp/mysql.sock --with-gd --with-iconv --with-zlib --enable-xml --enable-inline-optimization --with-curl=/usr --enable-mbregex --enable-fpm --enable-mbstring --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --with-bz2 --enable-soap --with-pear --with-gettext --enable-session --with-mcrypt --with-curl --with-gd --with-png-dir=/usr --with-libxml-dir=/usr --enable-exif --enable-bcmath --enable-shmop --enable-sysvsem --enable-sysvmsg --enable-sysvshm --with-mhash --with-openssl

 

这里不需要 mysql_sock

posted on 2015-07-14 13:24  会动的耳朵  阅读(302)  评论(0编辑  收藏  举报