php 在Linux下的安裝

一、獲取php源碼php

  wget http://cn2.php.net/get/php-5.6.6.tar.gz/from/this/mirrormysql

  mv mirror php-5.6.6.tar.gzsql

  tar -zxvf php-5.6.6.tar.gzapache

  cd php-5.6.6curl

二、./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-apxs2=/usr/local/httpd/bin/apxs --enable-sysvsem --with-curl --enable-mbregex --enable-mbstring --with-mcrypt --with-gd --with-openssl --with-mhash --enable-sockets --with-xmlrpc --with-zlib --enable-pdo --with-pdo-mysqlsocket

 

 yum install libxml2-devel -ythis

 

  

 yum install libcurl-develurl

 

  yum install gd-develspa

 

 mcrypt 廢棄,從新:./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql  --with-mysqli=/usr/local/mysql/bin/mysql_config   --with-apxs2=/usr/local/httpd/bin/apxs --enable-sysvsem --with-curl --enable-mbregex  --enable-mbstring --with-gd --with-openssl --with-mhash --enable-sockets --with-xmlrpc --with-zlib --enable-pdo --with-pdo-mysql.net

 

三、make && make install

四、配置apache

 

   

   

相關文章
相關標籤/搜索