search
Homephp教程php手册windows 7 64bit 下apache php mysql 环境配置

在64位环境下安装apache,php和配置过程

 

Apache 下载地址:http://www.apachelounge.com/download/

Php 下载地址:http://windows.php.net/download/

Mysql 下载地址:http://dev.mysql.com/downloads/mysql/

 

 

其中 安装失败了可以用 httpd –k uninstall 删除apache,然后再安装。

 

配置ServerRoot 目录地址,为ServerRoot “d:/Server/Apache-x64”   注意其中d要小写,大写配置失败,注意!

 

配置apache开启功能塻块,搜索关键字 LoadModule vhost,在下面增加三行

LoadModule php5_module "D:/Server/php-5.5.10/php5apache2_4.dll"  //根据实际配置

PHPiniDir "D:/Server/php-5.5.10"                                                                               //根据实际配置

AddType application/x-httpd-php .html .htm .php

 

配置DocumentRoot目录 为DocumentRoot “d:/Server/Apache-x64/htdocs”

 

中间遇到过错误,将第4步中目录配置中的d盘字符用小写即成功。

 

并在该配置文件中,开启Mysql功能 模块。

;extension=php_mysql.dll

;extension=php_myphpsqli.dll 去掉前面的分号即可。

display_error=Off可关掉显示错误。

date.timezone的值设为Asia/Shanghai即date.timezone =Asia/Shanghai 

更改后需要重启apache

配置环境变量

 

新建MYSQL_HOME,并编辑Path变量。如上图。

 

执行mysqld install MySQL –defaults-file=”D:\Server\mysql-5.6.16\my-default.ini”

如下图     移除命令为mysqld remove

 

启动服务 net start mysql

 

初始化mysql密码 mysqladmin –uroot password root  密码初始化为root

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version