liuxiaoyun111 发表于 2019-1-24 07:18:41

源码安装PHP【安装zabbix监控时】

  下载链接:http://php.net/downloads.php
  php-5.4.36.tar.gz
  tar zxf php-5.4.36.tar.gz

  cd php-5.4.36
  ./configure --prefix=/usr/local/php5.4 --with-mysql=/usr/local/mysql --with-mysqli=/usr/bin/mysql_config --with-pdo-mysql=/usr/bin/mysql_config --with-openssl --enable-mbstring --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-xml --enable-sockets --with-mcrypt --with-config-file-path=/usr/local/php5.4/etc --with-bz2 --enable-fpm--enable-bcmath --with-gettext --with-gd=/usr/local/gd/
  

  ############################################################################################################################################################
  

  Vim Makefile
  EXTRA_LIBS = ..... -lcrypt
  

  # 在最后加上 -liconv,例如: EXTRA_LIBS = ..... -lcrypt -liconv
  

  

  

  make&& make install
  




页: [1]
查看完整版本: 源码安装PHP【安装zabbix监控时】