PHP安装

  1. 编译安装

    ./configure --prefix=/usr/local/src/php --with-config-file-path=/usr/local/src/php/ --with-gd --with-png-dir=/usr/local/libpng --with-jpeg-dir=/usr/local/jpeg --with-freetype-dir=/usr/local/freetype --with-xpm-dir=/usr/ --with-vpx-dir=/usr/local/libvpx/ --with-zlib-dir=/usr/local/zlib --with-iconv --enable-libxml --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --enable-opcache --enable-mbregex --enable-fpm --enable-mbstring --enable-ftp --enable-gd-native-ttf --with-openssl --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --enable-session --with-mcrypt --with-curl --enable-ctype  --with-pdo-pgsql  --with-pgsql=/opt/PostgreSQL --with-ldap
    make 
    make install    
    
  2. php.ini 文件修改参数如下:

    372 max_execution_time = 300
    393 memory_limit = 128M
    660 post_max_size = 16M
    792 upload_max_filesize = 2M
    382 max_input_time = 300
    910 date.timezone = PRC
    
  3. 启动php服务

    service php-fpm status

  4. php-fpm 参数学习

    PHP-fpm参数学习

  5. 本文配置是为了安装zabbix服务器,中间步骤:略。

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 最近公司已大牛离职,本人临时从当了一下运维完成后台相关应用从aws迁移到腾讯云上,由于机器不多久没有搞自动安装什么...
    窦家骏阅读 483评论 1 1
  • 一、查看 PHP 是否安装 二、安装 PHP(7.0 版本) step1:下载 PHP 安装包 step2:解压安...
    Ada54阅读 8,212评论 4 5
  • 最近遇到一个需求,希望在一台机子上安装多个版本的PHP,用于编译对应版本的PHP扩展。 PHP源码编译 1.下载P...
    wangcanfeng阅读 701评论 0 0
  • 更改ip和dnsVi /etc/sysconfig/network-scripts/ifcfg-eth0vi /...
    Xwei_阅读 1,854评论 0 3
  • 下面列举我们需要用到的一些编译参数 openssl --with-openssl mysql,pdo --wit...
    黑魔术师阅读 1,388评论 0 0