php 5.3.5(download zip)

httpd 2.2.24(download zip)

mysql: apt-get install mysql

step 1: install mysql

> apt-get install mysql

> mysql

mysql> show variables like '%sock%'; // copy the output path

step 2: install apache

//uncompress

//cd httpd_2.2.24

>./configure --prefix=/opt/httpd-2.2.24 --enable-so --enable-rewrite --enable-ssl --enable-cgi --enable-cgid --enable-modules=most --enable-mods-shared=most --with-zlib --with-pcre && make && make install

/opt/httpd-2.2.24 is target install path for apache.

step 3: install php

//uncompress

//cd php folder

>'./configure' '--prefix=/opt/php-5.3.25' '--with-apxs2=/opt/httpd-2.2.24/bin/apxs' '--with-curl' '--with-mcrypt' '--enable-mbstring' '--with-iconv' '--with-gd' '--with-jpeg-dir=/usr/local/lib' '--enable-pdo' '--with-pdo-mysql' '--with-mysqli' '--with-mysql'
'--with-xmlrpc' '--with-XMLrpc' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-openssl' '--with-imap-ssl' '--with-kerberos'

/opt/php-5.3.25 is target install path for php.

/opt/httpd-2.2.24/bin/apxs is path of apache.

/var/run/mysqld/mysqld.sock  is the output of mysql> show variables like '%sock%';

Important : this two prefix built the relation between php / mysql /apache.

step 4:

>whereis php

php: /usr/bin/php /usr/bin/X11/php /usr/share/php /opt/lampp/bin/php /opt/php-5.3.25/bin/php /usr/share/man/man1/php.1.gz

// need to copy /opt/php-5.3.25/bin/php to /usr/bin/php, use actual php to cover system's php

>sudo cp /usr/bin/php /usr/bin/php54 // backup system's php

>sudo ln -s /opt/php-5.3.25/bin/php /usr/bin/php -f // link actual php to system php position and force to change name

>php -v

PHP 5.3.25 (cli) (built: Aug 13 2013 16:49:07)

Copyright (c) 1997-2013 The PHP Group

Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies



// the php version will be changed



step 5:

> sudo cp ./php.ini-development /opt/php-5.3.25/lib/php.ini  //php.ini

step 6:

>sudo gedit /opt/httpd-2.2.24/conf/httpd.conf



AddType application/x-httpd-php .php // add this to the end of httpd.conf

Pear install package : need go to :

>cd /opt/php-5.3.25/bin

>pear list

>pear install xml_rpc

ubuntu mint 15 编译安装PHP开发环境的更多相关文章

  1. centos6.5编译安装lamp开发环境

    一.系统以及软件的准备 系统及编译安装包的下载地址:http://pan.baidu.com/s/1jIjqinc   密码:ghc2 说明:由于centos6.5是分卷压缩的,且压缩为三个压缩包,所 ...

  2. 编译安装PHP开发环境

    Linux 系统为 CentOS 7.2 1. 安装 Nginx 安装 Nginx 依赖包: # yum -y install zlib zlib-devel openssl openssl-deve ...

  3. Ubuntu 16.04 一键安装P4开发环境记录

    写在最前 P4开发环境安装可采用陈翔同学的一键安装脚本:p4Installer p4c-bm是P4-14的编译器,p4c是现在主流P4-16的编译器,bmv2是支持P4运行的软件交换机 系统环境 在安 ...

  4. ubuntu 15.10 安装swift开发环境 2016/4/17

    ubuntu 15.10 64位 下载地址 https://swift.org/download/#using-downloads 1.首先在ubuntu终端上 (ctl+alt+t打开) 下载cla ...

  5. Linux安装LAMP开发环境及配置文件管理

    Linux主要分为两大系发行版,分别是RedHat和Debian,lamp环境的安装和配置也会有所不同,所以分别以CentOS 7.1和Ubuntu 14.04做为主机(L) Linux下安装软件,最 ...

  6. 安装gstreamer开发环境

    ubuntu中安装gstreamer开发环境: * 安装gstreamer基本库,工具,以及插件 sudo apt--dev gstreamer-tools gstreamer0.-tools gst ...

  7. 在Ubuntu下搭建ASP.NET 5开发环境

    在Ubuntu下搭建ASP.NET 5开发环境 0x00 写在前面的废话 年底这段时间实在太忙了,各种事情都凑在这个时候,没时间去学习自己感兴趣的东西,所以博客也好就没写了.最近工作上有个小功能要做成 ...

  8. 转[开发环境配置]在Ubuntu下配置舒服的Python开发环境

    在Ubuntu下配置舒服的Python开发环境 Ubuntu 提供了一个良好的 Python 开发环境,但如果想使我们的开发效率最大化,还需要进行很多定制化的安装和配置.下面的是我们团队开发人员推荐的 ...

  9. Ubuntu 12.04下搭建Qt开发环境

    http://download.qt.io/official_releases/qt/ Ubuntu 环境下Gtk与Qt编译环境安装与配置(系统环境是Ubuntu 12.04) 1.配置基础开发环境G ...

随机推荐

  1. 问题.NET--win7 IIS唯一密钥属性“VALUE”设置为“DEFAULT.ASPX”时,无法添加类型为“add”的重复集合

    问题现象:.NET--win7 IIS唯一密钥属性“VALUE”设置为“DEFAULT.ASPX”时,无法添加类型为“add”的重复集合 问题处理: 内容摘要:    HTTP 错误 500.19 - ...

  2. APNs消息推送完整讲解

    在项目的AppDelegate中的didFinishLaunchingWithOptions方法中加入下面的代码: [[UIApplication sharedApplication] registe ...

  3. HTML 的 iframe 元素

    在 HTML 中, iframe 元素用于在网页中嵌入其它网页的内容,例如: <iframe src="http://example.com/abc.html">ifr ...

  4. eclipse 插件之Code Folding

    功能: eclipse自带折叠包括方法, import, 注释等得折叠功能, code folding 插件对其增强. 1. 下载插件:( 也可以用link方式, 我的是link安装, jar包网上很 ...

  5. EasyUI Datagrid 自定义列、Foolter及单元格编辑

    1:自定义列,包括 Group var head1Array = []; head1Array.push({ field: 'Id', title: 'xxxx', rowspan: 2 }); he ...

  6. linux环境下tcpdump源代码分析

    Linux 环境下tcpdump 源代码分析 韩大卫@吉林师范大学 tcpdump.c 是tcpdump 工具的main.c, 本文旨对tcpdump的框架有简单了解,只展示linux平台使用的一部分 ...

  7. 在Spring中使用JDK定时器实现调度任务

    在Spring中使用JDK定时器实现调度任务 作者:chszs,转载需注明.博客主页: http://blog.csdn.net/chszs 本文探讨Spring如何集成JDK的Timer定时器,实现 ...

  8. java09 队列Queue与Deque

    队列Queue与Deque. Enumeration Hashtable与Hashtable子类Properties(资源配置文件) 引用类型(强.软.弱.虚)与WeakHashMap Identit ...

  9. 【转】VS2010中使用AnkhSvn

    今天想到要在自己的开发环境IDE(Visual Studio 2010)中安装一个代码管理器的插件,本人在使用VS2005的时候一直都是使用AnkhSvn-2.1.7444.278这版本,使用过程中也 ...

  10. 开启、关闭数据库mysql

    1.命令行 net start mysql net start mysql 2.点控制面板→管理→服务 招到mysql 3.找到安装目录下的bin目录