ubunt安裝php




 89  tar zxvf php-5.3.16.tar.gz -C /home/soft/


   91  apt-get install libxml2
   92  apt-get install libxml2-dev
   91  apt-get install mysql-server mysql-client
   95  apt-get install curl
   96  apt-get install curl-dev
   97  apt-get install libcurl
   98  apt-get install libcurl-dev
   99  apt-get install libcurl4-gnutls-dev

  102  apt-get install libjpeg-dev
  103  apt-get install libmcrypt-dev


  111  ln -s /usr/lib/i386-linux-gnu/libmysqlclient* /usr/lib/
  112  ldconfig
php


./configure --prefix=/usr/local/php --enable-fpm --with-config-file-path=/usr/local/php/etc --with-mysql --with-mysqli --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-gd --with-zlib --with-libxml-dir --with-curl --with-curlwrappers --with-openssl --with-mhash --with-xmlrpc --with-mcrypt --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-mbregex --enable-mbstring --enable-gd-native-ttf --enable-ftp --enable-pcntl --enable-sockets --enable-zip --disable-debug --disable-ipv6 --with-pdo-mysql
mysql



make && make install

cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm linux

相關文章
相關標籤/搜索