ubuntu mint 15 编译安装PHP开发环境
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开发环境的更多相关文章
- centos6.5编译安装lamp开发环境
一.系统以及软件的准备 系统及编译安装包的下载地址:http://pan.baidu.com/s/1jIjqinc 密码:ghc2 说明:由于centos6.5是分卷压缩的,且压缩为三个压缩包,所 ...
- 编译安装PHP开发环境
Linux 系统为 CentOS 7.2 1. 安装 Nginx 安装 Nginx 依赖包: # yum -y install zlib zlib-devel openssl openssl-deve ...
- Ubuntu 16.04 一键安装P4开发环境记录
写在最前 P4开发环境安装可采用陈翔同学的一键安装脚本:p4Installer p4c-bm是P4-14的编译器,p4c是现在主流P4-16的编译器,bmv2是支持P4运行的软件交换机 系统环境 在安 ...
- ubuntu 15.10 安装swift开发环境 2016/4/17
ubuntu 15.10 64位 下载地址 https://swift.org/download/#using-downloads 1.首先在ubuntu终端上 (ctl+alt+t打开) 下载cla ...
- Linux安装LAMP开发环境及配置文件管理
Linux主要分为两大系发行版,分别是RedHat和Debian,lamp环境的安装和配置也会有所不同,所以分别以CentOS 7.1和Ubuntu 14.04做为主机(L) Linux下安装软件,最 ...
- 安装gstreamer开发环境
ubuntu中安装gstreamer开发环境: * 安装gstreamer基本库,工具,以及插件 sudo apt--dev gstreamer-tools gstreamer0.-tools gst ...
- 在Ubuntu下搭建ASP.NET 5开发环境
在Ubuntu下搭建ASP.NET 5开发环境 0x00 写在前面的废话 年底这段时间实在太忙了,各种事情都凑在这个时候,没时间去学习自己感兴趣的东西,所以博客也好就没写了.最近工作上有个小功能要做成 ...
- 转[开发环境配置]在Ubuntu下配置舒服的Python开发环境
在Ubuntu下配置舒服的Python开发环境 Ubuntu 提供了一个良好的 Python 开发环境,但如果想使我们的开发效率最大化,还需要进行很多定制化的安装和配置.下面的是我们团队开发人员推荐的 ...
- Ubuntu 12.04下搭建Qt开发环境
http://download.qt.io/official_releases/qt/ Ubuntu 环境下Gtk与Qt编译环境安装与配置(系统环境是Ubuntu 12.04) 1.配置基础开发环境G ...
随机推荐
- A Tour of Go Basic types
Go's basic types are bool string int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 uintptr ...
- java_method_获取数据库中列表的第一行第一列的int值
List<String[]> counts=DataBaseManage.getInstance().executeQuery(sql, 1, list); int count=0; if ...
- 视频播放(iOS开发)
视频播放 一.视频播放介绍(5种实现方案) AVPlayer 优点 可以自定义UI,进行控制 缺点 单纯的播放,没有控制UI,而且如果要显示播放界面,需要借助AVPlayerLayer,添加图层到需要 ...
- javascript中使用md5函数
javascript中使用md5函数 这对于js来讲本来是没有的,现在可以自己定义一个md5的函数,达到加密效果. var hexcase = 0; function hex_md5(a) { if ...
- 【三支火把】---C语言面试问题总结
看了一份关于HR在面试一名C程序员可能提问的问题手册,学到了很多,很多都是一些琐碎的知识点,总是你写过很多大型的C程序,但是我敢说,里面也有你没掌握的东西. 1.全局变量和局部变量有何区别? 答:全局 ...
- 关于css中z-index 的应用
我想很多人在应用中的会碰到这个问题,设置 z-index无效:无论设置为多高的数字都没有效果: 原因是在设置z-index之前必须满足一下两个条件: 1,给设置z-index的元素设置相应的定位值,p ...
- asp.net C#母版页和内容页事件排版载入顺序生命周期
asp.net C#母版页和内容页事件排版载入顺序生命周期 关于ASP页面Page_Load发生在事件之前而导致的问题已经喜闻乐见,对于问题的解释也非常全面.可是怎样解决这个问题则较少有人说明,我就再 ...
- FAQ系列 | 解读EXPLAIN执行计划中的key_len
http://imysql.com/2015/10/20/mysql-faq-key-len-in-explain.shtml
- 从cmd中进入MySQL的命令界面
两种方式进入mysql命令界面 第一.直接开始界面→搜索mysql客户端登陆界面 第二.从cmd中进入MySQL的命令界面 2010-05-17 10:02:05| 分类: mysql|字号 订阅 ...
- Android开发之位置定位详解与实例解析(GPS定位、Google网络定位,BaiduLBS(SDK)定位)
在android开发中地图和定位是很多软件不可或缺的内容,这些特色功能也给人们带来了很多方便.定位一般分为三种发方案:即GPS定位.Google网络定位以及基站定位 最简单的手机定位方式当然是通过GP ...