Apachephpmysql environment configuration under windows764bit _ PHP Tutorial

Source: Internet
Author: User
Configure the apachephpmysql environment in windows764bit. Install apache in a 64-bit environment, php, and configuration process Apache: www. apachelounge. comdownloadPhp: windows. php. netdownloadMysql: install apache, php, and configuration in a 64-bit environment

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

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

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

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

Configure the ServerRoot directory address, for ServerRoot "d:/Server/Apache-x64" note where d should be in lower case, uppercase configuration failed, note!

Configure apache to enable feature blocks, 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 the actual configuration

PHPiniDir "D:/Server/php-5.5.10" // depending on the actual configuration

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

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

If an error occurs in the middle, the D drive character in the directory configuration in step 1 is successfully written in lower case.

In the configuration file, enable the Mysql function module.

; Extension = php_mysql.dll

; Extension = php_myphpsqli.dll remove the semicolon above.

Display_error = Off: turn Off the display error.

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

Restart apache after the change.

Configure environment variables

Create MYSQL_HOME and edit the Path variable. For example.

Execute mysqld install MySQL-defaults-file = "D: \ Server \ mysql-5.6.16 \ my-default.ini"

For example, if the removal command is mysqld remove

Start the service net start mysql

Initialize mysql password mysqladmin-uroot password root password initialize to root

Awesome Apache: http://www.apachelounge.com/download/ Php: http://windows.php.net/download/ Mysql :...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.