php 在centos7 apache中的安装配置
2016-05-08 00:21
1101 查看
1.yum 安装 apache
yum install http
systemctl start httpd.service
yum install mysql-community-server
yum update
yum install php
systemctl list-unit-files
yum install php-mysql
修改配置
83 vi /etc/httpd/conf/httpd.conf
DirectoryIndex index.html index.php
然后重启 一下apache
systemctl restart httpd.service
http://ip/index.php
index.php 内容
<?php
phpinfo();
?>
yum install http
systemctl start httpd.service
yum install mysql-community-server
yum update
yum install php
systemctl list-unit-files
yum install php-mysql
修改配置
83 vi /etc/httpd/conf/httpd.conf
accphe配置,添加 AddType application/x-httpd-php .php
DirectoryIndex index.html index.php
然后重启 一下apache
systemctl restart httpd.service
http://ip/index.php
index.php 内容
<?php
phpinfo();
?>
相关文章推荐
- spring 集成apache qpid 简单demo
- 《Apache Kafka》学习笔记
- Ubuntu下的Apache+PHP+Mysql
- Apache Flink源码解析之stream-sink
- windows下Apache基本配置和php+mysql连接测试
- 《Apache Cocoon2.2 学习》前言
- 配置 apache log4j.xml 文件 学习笔记(把日志输入到项目的根目录)
- 【转】Apache Options Indexes FollowSymLinks详解
- 【转】Apache的Order Allow,Deny 详解
- 【Ubuntu】搭建LAMP服务器Apache+MySQL+PHP
- Apache Shiro用法初探
- org.apache.commons.lang3.xwork.StringUtils找不到的问题
- Apache漏洞修复
- Apache中禁止显示目录文件列表
- Apache,PHP,MySQL的安装,配置
- Apache配置虚拟目录和多主机头
- 在CenterOS 6.5上安装Apache mysql php
- Linux系统下Apache2.4.17的安装过程
- apache启动失败查看错误信息
- Apache SolrCloud介绍及安装