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