Home >Backend Development >PHP Tutorial >centos 配置php开发环境

centos 配置php开发环境

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-20 12:58:13931browse

所需软件及版本信息
centos-6.4
apache-2.2.29
php-5.4.15
mysql-5.5.28


1. 安装libxml-2.9.2

使用centos-6.4的yum源安装的libxml是2.7.6,如果需要使用PHPExcel生成Excel2007的文件,就必须到官网下载源码安装。地址:http://www.xmlsoft.org/

#解压,并进入目录tar -zxvf libxml2-NN.tar.gzcd libxmlNN#默认安装./configuremake; make install

也许在make的时候会报错,可以直接忽略,继续make install。安装完成,使用以下命令如果查看到版本信息表示安装成功。

xml2-config --version


2. 卸载centos自带的httpd服务器
使用如下命令可以查看centos自带的httpd版本,也看用于测试是否成功卸载

#查看httpd版本信息httpd -v#如果httpd存在,则卸载yum -y remove httpd#再次检测是否成功卸载httpd -v

3. 安装配置服务器所需的软件

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP 框架:GaeaphpNext article:php站点压力测试