• 阿里云 centos 安装apache和php


    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

  • 相关阅读:
    tp5.1 order by limit 分页时会出现数据重复,丢数据
    使用composer 出现Could not find a matching version of package xxx
    tp5.1 使用 tcpdf库 生成pdf
    Java调用FTP
    Quartz的org.quartz.jobStore.misfireThreshold属性理解
    第3章:WinDbg 内核调试
    第38章: PE32+
    第37章: x64处理器
    第36章:64位计算
    django框架
  • 原文地址:https://www.cnblogs.com/the-moving-ear/p/4645201.html
Copyright © 2020-2023  润新知