Home  >  Article  >  Backend Development  >  Apache php mysql environment configuration under windows 7 64bit_PHP tutorial

Apache php mysql environment configuration under windows 7 64bit_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:34:12730browse

Installation of apache, php and configuration process in 64-bit environment

Apache download address: http://www.apachelounge.com/download/

Php download address: http://windows.php.net/download/

Mysql download address: http://dev.mysql.com/downloads/mysql/

If the installation fails, you can use httpd –k uninstall to delete apache and then install it again.

Configure the ServerRoot directory address as ServerRoot "d:/Server/Apache-x64" Note that d must be lowercase, and the uppercase configuration will fail. Attention!

Configure apache to enable the function block, search for the keyword LoadModule vhost, and add three lines below

LoadModule php5_module "D:/Server/php-5.5.10/php5apache2_4.dll" //According to actual configuration

PHPiniDir "D:/Server/php-5.5.10" //According to actual configuration

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

Configure the DocumentRoot directory as DocumentRoot “d:/Server/Apache-x64/htdocs”

If you encounter an error in the middle, change the d drive character in the directory configuration in step 4 to lowercase and it will be successful.

And in the configuration file, enable the Mysql function module.

;extension=php_mysql.dll

;extension=php_myphpsqli.dll just remove the semicolon in front.

display_error=Off can turn off the display of errors.

The value of date.timezone is set to Asia/Shanghai, that is, date.timezone =Asia/Shanghai

Need to restart apache after making changes

Configure environment variables

Create a new MYSQL_HOME and edit the Path variable. As shown above.

Execute mysqld install MySQL –defaults-file="D:Servermysql-5.6.16my-default.ini"

As shown below, the removal command is mysqld remove

Start service net start mysql

Initialize mysql password mysqladmin –uroot password root The password is initialized to root

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/752223.htmlTechArticleInstalling apache, php and configuration process in 64-bit environment Apache download address: http://www.apachelounge. com/download/ Php download address: http://windows.php.net/download/ Mysql download address:...
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