文档详情

apache+hp+mysql安装.doc

发布:2017-05-14约7.9千字共12页下载文档
文本预览下载声明
Win8.1(64位)php5.5-Apache2.4-mysql5.6环境安装 操作步骤如下: 1)把apache、php、mysql三个目录复制到c盘下 2)管理员身份打开cmd,到apache24/bin目录下,执行httpd -k install;httpd -k start,查看httpd是否已经启动 3)执行http://localhost/ ,注意看http.conf文件中的代码指定目录,我这里放在指定为d:/www/,在此目录下创建index.php,里面打印phpinfo,看Loaded Configuration File项是否显示真正的对应的php.ini路径,是则安装好了 4)到mysql/bin下执行mysqld -nt install ,mysql连接验证下是否安装启动ok 一切重新配置版: 按照下面的执行就行 蓝色背景的为必设置项 工具/原料 php-5.5.10-Win32-VC11-x64.zip 下载地址: /download/ httpd-2.4.7-win64-VC11.zip 下载地址: /download/ mysql-5.6.16-winx64.zip 下载地址: /downloads/mysql/ httpd-2.4.9-win64-VC11.zip mysql-5.6.19-winx64.zip php-5.5.13-Win32-VC11-x64.zip 方法/步骤 1 一、安装配置Apache2.4.7(httpd-2.4.9-win64-VC11.zip ) 解压下载的安装包:httpd-2.4.9-win64-VC11.zip 将其放到自己的安装目录(我的目录C:\Apache24) Cmd下cd到c:/apache24/bin 执行:httpd -k install httpd -k install :安装httpd成服务 httpd -k uninstall 去掉httpd服务 httpd -k start 启动httpd 执行httpd -k install 是可能出现的问题: (1)没有权限访问 如果cmd执行的命令提示没有权限访问,需要admin的权限的话,就找到cmd.exe右键,使用管理员身份执行打开cmd,再执行命令 C:\Apache24\binhttpd -k start AH00558: httpd: Could not reliably determine the servers fully qualified domain name, using ::1. Set the ServerName directive globally to suppress this messa ge 怎么解决呢?先试下是不是可以访问http://localhost/,如果可以的话,则忽略吧 2 2、然后对http.conf(C:\Apache24\conf\http.conf)配置文件进行修改-使用记事本打开就行 (1)修改ServerRoot Apache的根路径: (37行)ServerRootc:/Apache24改成=ServerRoot C:/Apache24 (2)修改ServerName你的主机名称: (217行)ServerN:80将前面的#去掉,该属性在从命令行启动Apache时需要用到。 (3)修改DocumentRoot Apache访问的主文件夹目录,就是php、html代码文件的位置。Apache默认的路径是在htdocs(C:/Apache24\htdocs)下面,里面会有个简单的入口文件index.html。这个路径可以自己进行修改,我这里将其配置在我自己新建的文件夹www(D:\phpEnv\www)下。 (247行) DocumentRoot c:/Apache24/htdocs Directoryc:/Apache24/htdocs 改为= DocumentRoot C:\www Directory C:\www (4)修改入口文件配置:DirectoryIndex一般情况下我们都是以index.php、index.html、index.htm作为web项目的入口。Apache默认的入口只有index.html需要添加其他两个的支持,当然这个入口文件的设置可以根据自己的需要增减,如果要求比较严格的话可以只写一个index.php,这样在项目里面的入口就只能是index.php (274行)IfModuledir_module DirectoryIndex index.htm
显示全部
相似文档