PHP 和Apache的安装和配置
1. apache官网安装指南: http://jingyan.baidu.com/article/29697b912f6539ab20de3cf8.html
2. 官方安装包下载地址: http://archive.apache.org/dist/httpd/binaries/win32/


命令:services.msc: 查看windows服务
httpd –w –n “Apache2.2” –k start: 启动http,如果启动apache服务出现错误,可以通过这个命令来显示httpconf配置的错误提示详细信息。
3. 更换apache的默认根目录
安装目录: D:\Program Files\Apache Software Foundation\Apache2.2\conf
httpd.conf文件当中:
修改默认的根目录:
#DocumentRoot "D:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
DocumentRoot "E:/Media"
|
<Directory "E:/Media"> Options Indexes FollowSymLinks AllowOverride all #onlineoffline tag - don't remove #Order Deny,Allow #All from all #403错误的时候,没有权限,加注释 Allow from 127.0.0.8 </Directory> |
4. 增加虚拟目录
|
增加两个地方: <Directory "E:/www_php"> Options Indexes FollowSymLinks AllowOverride all #onlineoffline tag - don't remove #Order Deny,Allow #All from all #出现403没有权限访问的时候,注释这个项目 Allow from 127.0.0.8 </Directory> <IfModule alias_module> ScriptAlias /cgi-bin/ "D:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/" Alias /Dragon/ "E:/www_php/" #设置目录当中E:/www_php/ 反斜杠‘/’尽量不要漏,#可能会出错 </IfModule> |
5. 修改Apache默认路径访问的默认页面
(index.html,index.jsp,index.php)
目录:D:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf
|
<IfModule dir_module> DirectoryIndex index.html index.php #在这后面添加默认的访问页面等。 </IfModule> |
6.php环境搭建:
http://jingyan.baidu.com/article/ed15cb1b0e0e0a1be36981d8.html
7. 配置php和apache
http://jingyan.baidu.com/article/0f5fb099ca944b6d8334eadb.html
PHP 和Apache的安装和配置的更多相关文章
- Apache的安装与配置
apahe官网 http://www.apache.org/ 安装及配置https://blog.csdn.net/liyang4534/article/details/78036591 常见问题的处 ...
- Apache+php安装和配置 windows
Apache+php安装和配置 windows Apache 安装 1.官网网址:http://httpd.apache.org/ 2.Download 3.点击链接Files for Microso ...
- (转)Apache的安装与配置
转自:http://www.dreamdu.com/webbuild/apache/ 5.2. Apache的安装与配置 5.2.1. Apache安装与配置视频教程 下面将介绍如何在WinXP下安装 ...
- centos7 apache httpd安装和配置django项目
一.安装httpd服务 apache在centos7中是Apache HTTP server.如下对httpd的解释就是Apache HTTP Server.所以想安装apache其实是要安装http ...
- Windows 7操作系统下Apache的安装与配置(图文详解)
我这里是 Apache2.4.X-win64 首先, 我的操作系统信息如下 Apache2.4-win64的下载 官网 http://www.apachelounge.com/download/ 因 ...
- Apache的安装和配置
一.官网下载Apache 官网地址:https://httpd.apache.org/ 点击Download--->点击Files for Microsoft Windows--->点击A ...
- Apache Tomcat 安装与配置教程
JDK的安装与配置 1. 从官网下载JDK https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-213315 ...
- [转载]Ubuntu下apache的安装与配置
原文地址:https://blog.csdn.net/gatieme/article/details/53025505 1 安装apache 在 Ubuntu 上安装 Apache,有两种方式 使用源 ...
- Windows下Subversion和Apache的安装及配置(一)
1.序 Subversion可谓版本控制软件中的佼佼者,其开源性,易用性已受到众多软件开发者首选的版本控制软件.在这里我想记录我安装Subversion和Apache的过程.注意,Subversion ...
随机推荐
- 深度剖析WordPress主题结构(转)
利用强大的技术,可以把基于wordpress的网站做成各种各样的形式,这除了要求wordpress主题开发人员精通html,PHP,JS,CSS等技术,还需要开发者掌握WordPress主题的框架. ...
- C#获取当前应用程序所在路径及环境变量
一.获取当前文件的路径 string str1=Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe的文件名. string st ...
- 在VB中利用Nuget包使用SQLite数据库和Linq to SQLite
上午解决了在C#中利用Nuget包使用SQLite数据库和Linq to SQLite,但是最后生成的是C#的cs类文件,对于我这熟悉VB而对C#白痴的来说怎么能行呢? 于是下午接着研究,既然生成的是 ...
- Oracle-11g-R2 于 Linux 上的 RAC 卸载
安装环境: SuSE Linux Enterprise Server 11 SP3 Oracle 11g 11.2.0.3 卸载步骤: 1.卸载 Database 软件(oracle,第一节点) ...
- iOS有关截图的操作
1.截取选中view的图片 //根据size大小创建一个基于位图的图形上下文 CGRect rect =view.frame; UIGraphicsBeginImageContext(rect.siz ...
- Spring aop实现方式记录
原文地址:http://blog.csdn.net/moreevan/article/details/11977115 Spring提供了两种方式来生成代理对象: JDKProxy和Cglib,具体使 ...
- CentOS 6.5安装MySQL中文乱码问题解决
不管是Linux还是Windows都有新手遇到MySQL服务安装好了之后写入中文发现乱码,今天我装了个CentOS 6.5也遇到了这个问题,现在解决了,分享一下经验. 1.首先安装mysql,我很怕麻 ...
- ListView往TreView里面拖拽
ListView往TreView里面拖拽 unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Class ...
- Missing access checks in put_user/get_user kernel API (CVE-2013-6282)
/* 本文章由 莫灰灰 编写,转载请注明出处. 作者:莫灰灰 邮箱: minzhenfei@163.com */ 1.漏洞成因 Linux kernel对ARM上的get_user/put_us ...
- POJ - 2965 - The Pilots Brothers' refrigerator (高效贪心!!)
The Pilots Brothers' refrigerator Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 19356 ...