zoukankan      html  css  js  c++  java
  • L9-3.安装PHP软件包

    安装扩展工具包:

    image

    查看是否安装成功:

    image

    做软连接:

    image

    安装libxml

    先安装python:

    image

    image

    image

    做软连接:

    image

    同样安装

    libmcrypt和mhash

    image

    make && make install

    image

    image

    make && make install

    image

    安装mcrypt

    image

    image

    安装libpng:

    image

    make && make install

    image

    安装libiconv

    image

    make && make install

    image

    安装freetype

    安装autoconf

    image

    安装jpeg-9a

    image

    安装libgd

    image

    gettxt

    image

    安装gettxt

    安装PHP

    image

    ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-apxs2=/usr/local/httpd/bin/apxs --with-openssl --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-zlib-dir=/usr/local/zlib --with-libxml-dir=/usr/local/libxml2 --with-mhash --with-png-dir=/usr/local/libpng --with-iconv-dir=/usr/local/libiconv --with-freetype-dir=/usr/local/freetype --with-jpeg-dir=/usr/local/jpeg --with-gd=/usr/local/libgd --enable-mbstring=all --enable-sockets --enable-libxml --enable-soap --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-mbregex --enable-gd-native-ttf --enable-pcntl --with-xmlrpc --enable-zip --enable-phar --without-pear --enable-ftp --enable-maintainer-zts --disable-rpath --with-gettext --enable-opcache=no --with-xpm-dir=/usr/lib64

    make && make install

    出了个错误:

    image

    重新做个软连接

    image

    重新./configure 没有报错:

    image

    安装成功:

    image

    进行php配置:

    image

    修改字符集:

    image

    整合:

    vim /usr/local/httpd/conf/httpd.conf

    image

    image

    重启httpd,新建测试php文件

    image

    image

    检验:

    image

    image

    image

    至此LAMP环境搭建成功!

  • 相关阅读:
    项目管理软件选择:redmine or JIRA
    为已编译的DLL附带强命名
    NET简单的一个画图程序
    公共的Json操作类
    ASP.NET 程序优化
    提高ASP.NET页面载入速度的方法
    DataTable快速定制之Expression属性表达式
    TCP和UDP Client 代码
    Jquery实现异步上传图片
    C语言Socket编程(计算机网络作业)
  • 原文地址:https://www.cnblogs.com/oraclesea/p/3917042.html
Copyright © 2011-2022 走看看