1、获取php源码

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

  mv mirror php-5.6.6.tar.gz

  tar -zxvf php-5.6.6.tar.gz

  cd php-5.6.6

2、./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-mysql

 

 yum install libxml2-devel -y

 

  

 yum install libcurl-devel

 

  yum install gd-devel

 

 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

 

3、make && make install

4、配置apache

 

   

最新文章

  1. shell 输出九九乘法表
  2. JMeter执行dos命令
  3. PHP站内搜索、多关键字、加亮显示
  4. JSON 格式介绍
  5. Matlab与C/C++联合编程之Matlab以MEX方式调用C代码(五)完整过程加示
  6. Entity Framework学习 - 3.关联查询
  7. 删除MySQL重复数据
  8. HDFS(Hadoop Distributed File System )
  9. fiddler基本介绍
  10. 关于JSP页面URL传值所遇到的小问题
  11. [SDOI 2009]HH去散步
  12. sharepoint环境安装
  13. IOS开发protocol使用
  14. CCNet: Criss-Cross Attention for Semantic Segmentation 里的Criss-Cross Attention计算方法
  15. burpsuit 无法导入证书,抓取https的解决办法
  16. fedora23 桌面工具栏fedy, 桌面美化 allow: 2'lau不是2'l2u
  17. Java实现随机生成车牌号
  18. Android开发--ZZ:Android APK反编译详解(附图)
  19. Eigen学习之Array类
  20. Linux下配置Samba服务器全过程

热门文章

  1. 迭代器概念与traits编程技法
  2. [Vue + TS] Watch for Changes in Vue Using the @Watch Decorator with TypeScript
  3. iOS开发之剖析"秘密"App内容页面效果(一)
  4. mybatis Generator生成代码及使用方式(转载)
  5. linux RHEL 修改hostname 不需要重启机器
  6. hdoj-1214-圆桌会议【逆序数】
  7. kafka02
  8. [Codeplus 2017] 晨跑
  9. C++ 指针 部分
  10. Ruby   离奇方法