PHP Environment Setup (under Windows)-lamp
Several software, such as Apache2, PHP5, MySQL5, and phpMyAdmin, are installed separately on Windows systems. The benefit of stand-alone installation is the freedom to choose the specific versions of these components, to clearly understand which programs are installed on your computer, and how they are configured, which will be of great help for future system maintenance and software upgrades.
Get software
"You can download the latest version for installation"
Software name |
|
Apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi |
http://httpd.apache.org/download.cgi |
Mysql-5.1.28-rc-win32.zip |
http://dev.mysql.com/downloads/ |
Php-5.2.6-win32.zip |
http://www.php.net/downloads.php |
Zendoptimizer-3.3.0a-windows-i386.exe |
http://www.zend.com/en/downloads/ |
Phpmyadmin-3.0.0-rc1-all-languages.zip |
http://www.phpmyadmin.net/home_page/downloads.php |
0. Set up lamp catalogue "Install all lamp software in this directory"
1. Apache Server Installation
2. MySQL
Using a custom installation, specify the installation location to the lamp directory
Change the location of data storage to prevent downtime and data loss
Configuring the MySQL Database
3. PHP
Loading PHP modules in 1.Apache
Copy the PHP unpacking package to the lamp directory and change to PHP5
Go to Apache configuration file conf
Restart Apache to load PHP
2. Configure MySQL extension interface for PHP
# #复制libmysql. dll to the Windows directory, or you can modify the environment variable to specify ""
Modify PHP configuration file
Restart Apache
4, PHP accelerator "optimization Speed" "http://www.cnblogs.com/jdhu/p/4243930.html"
Put it in the lamp directory.
Warning, restart Apache without a tube.
5, PHP myadmin "http://www.jb51.net/article/15330.htm"
Copy the Cms_demo file to the Htdocs file under Apache
Modifying the Apache configuration file
Restart Apache, install Cms_demo
php.6-php Environment Building (under Windows)-lamp