阿里雲 centos 安裝apache和php

 

mysql使用阿里雲的rdsphp

 

httpd服務mysql

1. 安裝apr和apr-util sql

2. 安裝 httpdapache

 

apache.org,apr.apache.orgsession

 

安裝命令:curl

    

./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 socket

        這裏的with-mpm=worker本身確認選擇哪種模式,我的推薦worker性能

       配置httpd.conf阿里雲

       主要是性能參數配置和vhosts配置url

       

 

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

相關文章
相關標籤/搜索