国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > PHP > 正文

小貝_php源碼安裝

2020-03-24 18:57:31
字體:
來源:轉載
供稿:網友
  • PHP安裝

    一、本文檔相關文件下載

    二、php安裝

    一、本文檔相關文件下載

    1、php下載地址: http://php.net/downloads.php

    (備注: 本文檔下載的是php版本為php-5.6.11.tar.gz)

    2、本測試機系統為 CentOS release 6.3 (Final)

    二、php安裝

    1、安裝php

    a、解壓壓縮文件 tar –zxf php-5.6.11.tar.gz

    b、進入解壓目錄后,執行

    ./configure --prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql--enable-fpm --enable-xml --enable-soap --enable-mbstring --enable-sockets--with-curl --enable-zip --enable-ftp --with-gd --with-bz2--with-openssl --with-zlib --with-mhash --enable-exif --enable-sockets--enable-mbstring --enable-xml --enable-fpm --enable-soap --with-gd --with-curl--with-mcrypt=/usr/local/libmcrypt --with-imap --with-imap-ssl --with-jpeg-dir--with-png-dir --with-zlib-dir --with-freetype-dir --enable-gd-native-ttf--enable-gd-jis-conv --with-kerberos

    c、編譯安裝 make && make install

    2、啟動php

    a、復制php.ini文件

    [root@hadoop phpsrc]# cpphp.ini-production /usr/local/php/etc/php.ini

    b、啟動php-fpm

    [root@hadoop etc]# cpphp-fpm.conf.default php-fpm.conf

    [root@hadoop php]# ./sbin/php-fpm

    c、檢查php-fpm端口

    3、測試php

    4、常見異常及處理

    錯誤一

    checking libxml2 installdir... no

    checking for xml2-configpath...

    configure: error:xml2-config not found. Please check your libxml2 installation.

    解決方案

    yum install libxml2

    yum install libxml2-devel

    錯誤二

    configure: error: Cannot find OpenSSL's<evp.h>

    解決方案

    yum install openssl-devel

    錯誤三

    checking for BZip2 in default path...not found

    configure: error: Please reinstall theBZip2 distribution

    解決方案

    yum install bzip2-devel

    錯誤四

    checking for cURL in default path...not found

    configure: error: Please reinstall thelibcurl distribution -

    easy.h should be in<curl-dir>/include/curl/

    解決方案

    yum install libcurl libcurl-devel

    錯誤五

    If configure fails try--with-vpx-dir=<DIR>

    configure: error: jpeglib.h not found.

    解決方案

    yum install libjpeg libpng freetypelibjpeg-devel libpng-devel freetype-devel

    錯誤六

    configure: error: utf8_mime2text() hasnew signature, but U8T_CANONICAL is missing. This should not happen. Checkconfig.log for additional information

    解決方案

    yum install libc-client-devel

    錯誤七

    configure: error: This c-client libraryis built with Kerberos support.

    Add --with-kerberos to your configureline. Check config.log for details.

    解決方案

    把--with-kerberos加入./configure中

    錯誤八

    configure: error: mcrypt.h not found.Please reinstall libmcrypt.

    解決方案

    yum install libmcrypt 或者

    下載libmcrypt包

    (編譯安裝 ./configure --prefix=/usr/local/libmcrypt make && make install)

    PHP編程

    鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

  • 發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 如东县| 阿尔山市| 永福县| 浑源县| 裕民县| 临安市| 县级市| 平果县| 延川县| 宁蒗| 台安县| 白水县| 丰县| 仙游县| 嵊泗县| 泗阳县| 石家庄市| 台东县| 莎车县| 黔西| 南漳县| 苏尼特左旗| 永寿县| 曲靖市| 浦城县| 云安县| 托克逊县| 漠河县| 北海市| 越西县| 全椒县| 泰兴市| 珲春市| 安阳市| 炎陵县| 淅川县| 安多县| 马鞍山市| 盐边县| 丰宁| 乃东县|