zoukankan      html  css  js  c++  java
  • CentOS7安装PHP简易步骤

    安装前准备

    yum update
    yum install -y vim
    yum install -y wget
    yum install -y bzip2
    yum install -y gcc gcc++ libxml2-devel

    开始安装

    安装Apache服务(httpd)

    yum install -y httpd
    rpm -qd httpd #查看httpd的安装路径
    rpm -qc httpd #查看httpd配置文件的安装路径
    rpm -e httpd  #卸载httpd

    编译安装PHP

    wget http://cn2.php.net/distributions/php-7.1.0.tar.gz

    tar -zxvf php-7.1.0.tar.gz

    cd php

    编译 PHP 时需要 --enable-fpm 配置选项来激活 FPM 支持。

    http://php.net/manual/zh/install.fpm.install.php

    ./configure --prefix=/usr/local/php7 --enable-fpm

    Thank you for using PHP.

    make

    Build complete.

    make install

    测试

    vim index.php

    <?php phpinfo();

    /usr/local/php7/bin/php test.php

  • 相关阅读:
    Eclipse安装Hadoop插件
    (转)Ubuntu14.0.4中hadoop2.4.0伪分布模式配置
    Hadoop--DataNode无法启动
    启动与关闭hadoop
    hadoop中执行命令时发生错误
    strings命令
    Deriving data from ElasticSearch Engine
    elasticsearch data importing
    reading words in your computer and changing to female voice, linux festival text2wave saving wav files
    DDNS client on a Linux machine
  • 原文地址:https://www.cnblogs.com/Beyron/p/6208952.html
Copyright © 2011-2022 走看看