Linux下搭建php环境
2015-10-21 15:53
323 查看
最简单粗暴的办法:yum install php
会自动下载依赖包,包括apache,默认目录/var/www/html;
如果需要安装mysql需要使用yum -y install httpd php mysql mysql-server php-mysql
启动命令:service httpd start
如果存在防火墙需要配置端口:vi /etc/sysconfig/iptables
参考:http://blog.csdn.net/phpboy005/article/details/4352436
自定配置:
apr和apr-util 下载地址 http://apr.apache.org/download.cgi
pcre 下载地址 http://www.pcre.org/
libxml2 下载地址 http://www.linuxfromscratch.org/blfs/view/svn/general/libxml2.html
php 下载地址 http://php.net/get/php-5.5.30.tar.gz/from/a/mirror
apache 下载地址 http://httpd.apache.org/download.cgi
安装流程比较多,不过多介绍,参考:http://www.2cto.com/kf/201505/401216.html
注:下载pcre请勿下载pcre2 ;下载响应时间长可使用迅雷复制url进行下载;安装libxml2 报错,应该是操作系统的问题。
会自动下载依赖包,包括apache,默认目录/var/www/html;
如果需要安装mysql需要使用yum -y install httpd php mysql mysql-server php-mysql
启动命令:service httpd start
如果存在防火墙需要配置端口:vi /etc/sysconfig/iptables
参考:http://blog.csdn.net/phpboy005/article/details/4352436
自定配置:
apr和apr-util 下载地址 http://apr.apache.org/download.cgi
pcre 下载地址 http://www.pcre.org/
libxml2 下载地址 http://www.linuxfromscratch.org/blfs/view/svn/general/libxml2.html
php 下载地址 http://php.net/get/php-5.5.30.tar.gz/from/a/mirror
apache 下载地址 http://httpd.apache.org/download.cgi
安装流程比较多,不过多介绍,参考:http://www.2cto.com/kf/201505/401216.html
注:下载pcre请勿下载pcre2 ;下载响应时间长可使用迅雷复制url进行下载;安装libxml2 报错,应该是操作系统的问题。
相关文章推荐
- linux 软件包的命名规则
- FTP-CentOS7
- FTP-CentOS7
- linux makefile详细教程
- centos 6.4编译gcc升级过程
- Linux虚拟内存管理 - Page Table的作用
- 使用VS2013+VisualGDB开发Linux程序图文教程
- linux sed命令使用
- Linux 多网卡的7种bond模式原理
- Linux之crontab详解
- linux中vi编辑器
- linux磁盘管理
- Linux下access日志分析与状态查看方法
- Linux添加自定义命令
- [转载] linux中文件描述符fd和文件指针flip的理解
- linux的ulimit限制详解
- linux程序设计学习笔记
- CentOS Mysql自动备份 .txt
- 有趣的库:pipe(类似linux | 管道)库
- 旧文备份:rtlinux安装手册