阿里云 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

相关文章
相关标签/搜索