• [php ] linux php 搭建


    [php ] linux php 搭建

    作者:flymaster

    qq:908601287

    blog:http://www.cnblogs.com/flymaster500/

    yum install -y freetype-devel libjpeg-turbo-devel libpng-devel gdbm-devel libcurl-devel libxslt-devel
    rpm -qa freetype-devel libjpeg-turbo-devel libpng-devel gdbm-devel libcurl-devel libxslt-devel

    libjpeg-turbo-devel-1.2.1-3.el6_5.x86_64
    libpng-devel-1.2.49-2.el6_7.x86_64
    libcurl-devel-7.19.7-53.el6_9.x86_64
    libxslt-devel-1.1.26-2.el6_3.1.x86_64
    freetype-devel-2.3.11-17.el6.x86_64
    gd-devel-2.0.35-11.el6.x86_64

    ###编译安装php需要库libiconv
    cd /home/oldboy/tools
    wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
    tar zxf libiconv-1.14.tar.gz
    cd libiconv-1.14
    ./configure --prefix=/usr/local/libiconv
    make && make install

    #####安装libmcrypt-devel
    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
    yum clean all
    yum makecache
    yum list|grep libmcry/echo
    yum install -y libmcrypt-devel
    rpm -qa|grep libmcr*

    #####安装mhash-devel
    yum install -y mhash-devel
    rpm -qa|grep mhash

    ###安装php
    ./configure
    --prefix=/application/php5.5.26
    --with-mysql=/application/mysql
    --with-iconv-dir=/usr/local/libiconv
    --with-freetype-dir
    --with-jpeg-dir
    --with-png-dir
    --with-zlib
    --with-libxml-dir=/usr
    --enable-xml
    --disable-rpath
    --enable-safe-mode
    --enable-bcmath
    --enable-shmop
    --enable-sysvsem
    --enable-inline-optimization
    --with-curl
    --with-curlwrappers
    --enable-fpm
    --enable-mbregex
    --enable-mbstring
    --with-mcrypt
    --with-gd
    --enable-gd-native-ttf
    --with-openssl
    --enable-pcntl
    --enable-sockets
    --with-xmlrpc
    --enable-zip
    --enable-soap
    --enable-short-tags
    --enable-zend-multibyte
    --enable-static
    --with-xsl
    --with-fpm-user=nginx
    --with-fpm-group=nginx
    --enable-ftp
    make
    make install
    ln -s /application/mysql/lib/libmysqlclient.so.18 /usr/lib64/
    touch ext/phar/phar.phar
    ln -s /application/php5.5.26/ /application/php
    ###配置文件
    cd /home/oldboy/tools/php-5.5.26
    cp php.ini-production /application/php/lib/php.ini

    cd /application/php/etc/
    cp php-fpm.conf.default php-fpm.conf
    /application/php/sbin/php-fpm ##启动
    ps -ef|grep php-fpm ##查看进程
    ss -lntup|grep php-fpm ###查看连接

    作者:flymaster

    qq:908601287

    blog:http://www.cnblogs.com/flymaster500/

  • 相关阅读:
    window servet 2012 r2 配置php服务器环境
    thinkphp5 input坑
    tp5命名空间补充
    cookie和session
    thinkphp5.0 模型的应用
    JavaScript--计时器
    Runtime Only VS Runtime+Compil
    Object.keys
    [LeetCode 17]电话号码的字母组合
    数组里的字符串转换成数字或者把数字转换成字符串
  • 原文地址:https://www.cnblogs.com/flymaster500/p/10155827.html
Copyright © 2020-2023  润新知