偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

具體介紹Linux PHP5安裝步驟

開發(fā) 后端
每個(gè)操作系統(tǒng)安裝PHP步驟都不一樣,文章這里詳細(xì)的介紹了Linux PHP5安裝步驟,希望對(duì)大家有幫助。

我們?nèi)绾卧贚inux下安裝PHP5呢?我們這里就詳細(xì)的介紹一下Linux PHP5安裝。服務(wù)器運(yùn)行一段時(shí)間后,可能突然會(huì)需求添加某個(gè)擴(kuò)展,如curl、pdo、xmlrpc等,這就需要在不重新編譯PHP的情況下獨(dú)立添加擴(kuò)展。

下面以安裝curl為例,介紹具體Linux PHP5安裝步驟。

1.安裝crul wget http://curl.haxx.se/download/curl-7.19.6.tar.gz tar -zxvf curl-7.19.6.tar.gz cd curl-7.19.6 ./configure --prefix=/usr/local/curl

  1. make  
  2. make install 

2.編譯生成擴(kuò)展進(jìn)入php源程序目錄中的ext目錄中,這里存放著各個(gè)擴(kuò)展模塊的源代碼,選擇你需要的模塊,比如curl模塊:

  1. cd curl 

#T#執(zhí)行phpize生成編譯文件,phpize在PHP安裝目錄的bin目錄下/usr/local/php5/bin/phpize運(yùn)行時(shí),可能會(huì)報(bào)錯(cuò):Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable is set correctly and then rerun this script.“,需要安裝autoconf:yum install autoconf(RedHat或者CentOS)、apt-get install autoconf(Ubuntu Linux)生成配置文件,并編譯生成模塊:

  1. /usr/local/php5/bin/phpize  
  2. ./configure --with-curl=/usr/local/curl --with-php-config=/usr/local/php5/bin/php-config  
  3.  
  4. make  
  5.  
  6. make install  

這樣,curl.so就被復(fù)制到PHP對(duì)應(yīng)目錄(如:/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/)

3.修改配置在php.ini里,設(shè)置擴(kuò)展目錄:

  1. extension_dir = "/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/" 

并添加擴(kuò)展模塊引用:

  1. extension = curl.so 

4.檢查并重啟Apache

  1. /usr/local/php/bin/php -v 

執(zhí)行這個(gè)命令時(shí),php會(huì)去檢查配置文件是否正確,如果有配置錯(cuò)誤,這里會(huì)報(bào)錯(cuò),可以根據(jù)錯(cuò)誤信息去排查。以上就是Linux PHP5安裝的步驟,希望對(duì)大家有幫助。

責(zé)任編輯:田樹 來源: 博客
相關(guān)推薦

2009-11-23 16:43:03

PHP5安裝GD庫(kù)

2009-11-17 14:01:01

Apache 2 PH

2009-11-23 20:00:25

PHP5接口PHP5抽象類

2009-11-18 10:39:45

PHP5配置

2009-11-24 16:28:41

PHP5魔術(shù)函數(shù)

2009-11-18 14:45:02

PHP5 Sessio

2010-06-23 11:17:09

Linux Bash

2009-11-23 13:27:22

PHP5指針

2009-11-23 19:33:12

PHP5多態(tài)性

2011-03-11 14:02:55

LAMP安裝PHP5

2009-11-24 16:18:14

PHP5析構(gòu)函數(shù)

2009-11-24 17:01:39

PHP5多重繼承

2009-03-16 16:08:09

PHP異常

2009-12-11 17:33:56

PHP5常用函數(shù)

2009-12-03 13:50:16

PHP5異常處理

2019-03-08 08:55:16

PHP7PHP5web安全

2010-03-01 16:25:21

Linux openm

2010-03-18 17:57:17

Python安裝配置

2009-11-25 17:05:56

PHP5對(duì)象simpl

2009-07-30 10:06:29

PHP5生成條形碼
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)