centos5.8下php-5.3.2.tar.gz的安装

首先,准备插件:

①libiconv-1.14.tar.gz,libmcrypt-2.5.7.tar.gz,libxml2-2.6.27.tar.gz,mhash-0.9.3.tar.gz openssl

自行编译安装(tar zxf     . /configure         make && make install)

②tar zxf php-5.3.2.tar.gz

  1. ./configure --prefix=/usr/local/php \
  2. --with-config-file-path=/usr/local/php/etc \
  3. --with-iconv-dir=/usr/local \
  4. --with-freetype-dir \
  5. --with-mysql=/usr/local/mysql \
  6. --with-mysqli=/usr/local/mysql/bin/mysql_config \
  7. --with-jpeg-dir \
  8. --with-png-dir \
  9. --with-zlib \
  10. --with-mhash \
  11. --enable-sockets \
  12. --enable-ftp \
  13. --with-libxml-dir \
  14. --enable-xml \
  15. --disable-rpath \
  16. --enable-safe-mode \
  17. --enable-bcmath \
  18. --enable-shmop \
  19. --enable-sysvsem \
  20. --enable-inline-optimization --with-curl \
  21. --with-curlwrappers \
  22. --enable-mbregex \
  23. --enable-mbstring \
  24. --with-mcrypt \
  25. --with-gd \
  26. --enable-gd-native-ttf \
  27. --with-openssl \
  28. --with-mhash \
  29. --enable-pcntl \
  30. --enable-sockets \
  31. --with-ldap \
  32. --with-ldap-sasl \
  33. --enable-fpm \
  34. --with-xmlrpc \
  35. --enable-zip \
  36. --enable-soap \
  37. --enable-fastcgi \
  38. --without-pear
④make && make install


你可能感兴趣的:(centos5.8下php-5.3.2.tar.gz的安装)