Ubuntu14.04配置php-5.6.6开发环境
来源:互联网 发布:王者霸域 纯净数据库 编辑:程序博客网 时间:2024/04/28 01:13
2015-02-20 wcdj
摘要:Ubuntu14.04配置php-5.6.6开发环境,本文使用源码编译的方法,如果是Ubuntu系统也可以通过apt-get install php5来完成,但是通过apt-get安装的版本有可能不是最新的。
1, 安装php
版本说明:
The PHP development team announces the immediate availability of PHP 5.6.6. This release fixes several bugs and addresses CVE-2015-0235 and CVE-2015-0273. All PHP 5.6 users are encouraged to upgrade to this version.
For source downloads of PHP 5.6.6 please visit our downloads page, Windows binaries can be found on windows.php.net/download/. The list of changes is recorded in the ChangeLog.
下载php
wget http://cn2.php.net/distributions/php-5.6.6.tar.gz
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
--with-apxs2=FILE Build shared Apache 2.0 Handler module. FILE is the optional
pathname to the Apache apxs tool apxs
make && make install
2, 修改apache的配置(httpd.conf)
将index.php添加到apache的DirectoryIndex指令中。
注意:修改配置后需要重启apache服务
/usr/local/apache2/bin/apachectl restart
3, 可能遇到的错误
(1) configure错误:configure: error: xml2-config not found. Please check your libxml2 installation
解决方法:sudo apt-get install libxml2-dev
(2) apache启动做错:
./apachectl restart
Apache is running a threaded MPM, but your PHP Module is not compiled to be threadsafe. You need to recompile PHP.
解决方法:
重新编译apache:
./configure --enable-so --with-mpm=prefork && make && make install
This section contains notes and hints specific to Apache 2.x installs of PHP on Unix systems.
http://php.net/manual/en/install.unix.apache2.php
http://php.net/manual/en/faq.installation.php#faq.installation.apache2
http://php.net/manual/en/install.php
4, 测试php
http://104.131.173.242:8081/
- Ubuntu14.04配置php-5.6.6开发环境
- ubuntu14.04lts下配置php开发环境
- ubuntu14.04 配置python开发环境 eric4
- Ubuntu14.04下配置Java开发环境
- Ubuntu14.04的NFS开发环境配置
- ubuntu14.04 android studio开发环境配置
- ubuntu14.04 Android开发环境配置
- Ubuntu14.04配置OpenCL开发环境
- Ubuntu14.04配置java开发环境jdk
- Ubuntu14.04配置opencv2.4.11开发环境
- ubuntu14.04配置java开发环境
- Ubuntu14配置java开发环境
- Ubuntu14配置laravel5开发环境
- ubuntu14 配置java开发环境
- Ubuntu14.04环境配置
- ubuntu14.04-PHP配置
- ubuntu14.04 php开发环境搭建(LAMP)
- ubuntu14.04(32位)配置Qt开发环境
- Json的创建与android下的解析
- UVA - 10891 Game of Sum
- php 匹配/r/n 回车换行特殊符号
- IntentFilter
- UVA - 10905 Children's Game
- Ubuntu14.04配置php-5.6.6开发环境
- UVA - 11100 The Trip, 2007
- UVA - 1450 Airport
- UVA - 1418 WonderTeam
- 用Scrapy爬取所有上市公司的股票代码和名称
- UVA - 11462 Age Sort
- UVA - 11549 Calculator Conundrum
- Android自定义标题栏
- UVA - 1121 Subsequence