Php environment setup in Win7: PHP + Apache + Aptana + Mysql download:
Php: http://windows.php.net/downloads/releases/php-5.3.10-Win32-VC9-x86.zip
Apache: http://labs.renren.com/apache-mirror//httpd/binaries/win32/httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
Aptana: http://www.aptana.com/products/studio3/download
Mysql: http://dev.mysql.com/downloads/mirror.php? Id = 407497
1.decompress php-5.3.10-win32-vc9-x86.zip
Rename it to php and put it on drive C. Rename php. ini-development to php. ini.
Open the php. ini file
; Extension_dir = "ext" to extension_dir = "C:/php/ext"
; Session. save_path = "N;/path" to session. save_path = "C:/path"
; Upload_tmp_dir = changed to; upload_tmp_dir = "C:/upload"
; Date. timezone = changed to date. timezone = Asia/Beijing
Set
Extension = php_curl.dll
Extension = php_gd2.dll
Extension = php_mbstring.dll
Extension = php_mysql.dll
Extension = php_pdo_mysql.dll
Extension = php_pdo_odbc.dll
Extension = php_xmlrpc.dll
Remove; remove semicolon
2. install Apache
All the way to Next. Because IIS is installed and occupies port 80, modify the port number. Open C: \ Program Files \ Apache Software Foundation \ Apache2.2 \ conf \ httpd. conf and change Listen 80 to Listen 8011.
Configure Apache to support PHP
Open the httpd. conf file
Add
LoadModule php5_module "c:/php/php5apache2_2.dll"
PHPIniDir "c:/php"
AddType application/x-httpd-php. php. html. htm
To modify the main program directory of the WEB,
Change DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" to DocumentRoot "C:/htdocs"
Change
Finally, change DirectoryIndex index.html to DirectoryIndex index. php index.html.
3. install Mysql
All the way to Next.
4. install Aptana
Create a new PHP project and keep it under "C:/htdocs"
Create a test. php file
Configure the browser
Http: // localhost: 8011 serves apache
Run. if success is displayed, the configuration is successful!