Php environment setup in Win7: PHP + Apache + Aptana + Mysql

Source: Internet
Author: User
Tags mysql download vc9
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!

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.