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. 全英文版时间格式化07/29/2010 4:14:01 PM

    之前格式化,AM PM出不来,总是显示上午 下午 aspx页面的绑定: <%#Eval("AddDate") == DBNull.Value ? "" : ...

  2. hdoj 1532 Drainage Ditches【最大流模板题】

    Drainage Ditches Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) ...

  3. [一]java环境变量的配置

    1.JAVA_HOME(新建):D:\jdk1.6 2.classpath(新建): .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar; 3.path(新增):% ...

  4. 【Android - 基础】之Animator属性动画

    1      概述 在3.0系统之前,Android给我们提供了逐帧动画Frame Animation和补间动画Tween Animation两种动画: 1)        逐帧动画的原理很简单,就是 ...

  5. ios 解决有关火星坐标的问题

    CLLocationManager 定位获取CLLocation 是地球坐标,而MKMapView 获取的是天朝火星坐标,这就导致了使用定位的时候,显示用户的蓝点和当前定位信息偏差(因为蓝点是调用了M ...

  6. linux-多线程

    一.什么是线程? 线程是进程的一个实体,是CPU调度和分派的基本单位,它是比进程更小的能独立执行的基本单位.线程自己基本上不拥有系统资源,仅仅拥有一点在执行中不可缺少的资源(如程序计数器,一组寄存器和 ...

  7. 利用...来字符检測(swift)

    利用...来字符检測(swift) by 伍雪颖 let test = "LesvIo" let interval = "a"..."z" ...

  8. ios7自带的晃动效果

    ios7自带的晃动效果 by 伍雪颖 - (void)registerEffectForView:(UIView *)aView depth:(CGFloat)depth; { UIInterpola ...

  9. springMVC项目引入jstl标签库若干问题的总结

    中午,不知道动到项目的哪个地方了,之前在联系人列表页面用的好好的jstl标签库突然报错了:<%@taglib prefix="c" uri="http://java ...

  10. careercup-数学与概率

    7.3 给定直角坐标系上的两条线,确定这两条线会不会相交. 解法: 此题有很多不确定的地方:两条线的格式是什么?两条线实为同一条怎么处理?这些含糊不清的地方最好跟面试官讨论一下. 下面将做出以下假设: ...