Install PHP software on Windows

Source: Internet
Author: User
Various PHP software were separately installed in Windows. some time ago, the LAMP environment was deployed in Linux. I thought it would be very easy in windows, but it took a few days to get it done, so I was depressed ~~ Installation software list: apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msimysql-5.1.28-rc-win32.zip PHP software separately installed under Windows

Some time ago, the LAMP environment was deployed on Linux. I thought it would be very easy in windows, but it took a few days to get it done ~~

List of installed software:

Apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi

Mysql-5.1.28-rc-win32.zip

Php-5.2.6-Win32.zip

PhpMyAdmin-3.0.0-rc1-all-languages.zip

ZendOptimizer-3.3.0a-Windows-i386.exe

?

The installation directories are:

C:/php/apache2

C:/php/mysql5

C:/php/php5

C:/php/apache2/htdocs/admin

C:/php/Zend

?

1. install apache.

??? All the way to next,

In this step, you must specify the Network Domain, Server Name, mailbox, and other information.

?

? After the installation is complete, open IE, enter http: // localhost in the address bar, and It works will be displayed! The prompt indicates that the installation is successful.

?

2. install MySQL.

??? Similarly, you can set the root password to root and the database encoding method to utf8.

?

3. install PHP.

??? Decompress php to C:/php/php5, change the php. ini-dist file to php. ini, and copy libmysql. dll to C:/WINDOWS.

??? Edit the C:/php/apache2/conf/httpd. conf file in

#LoadModule vhost_alias_module modules/mod_vhost_alias.so

?

Add a row below:

LoadModule php5_module "C:/php/php5/php5apache2_2.dll"

?

In

 AddType application/x-compress .Z AddType application/x-gzip .gz .tgz

?

Add:

AddType application/x-httpd-php .php .phtmlphpinidir "C:/php/php5/php.ini"

? Now, the Apache server can parse the php file.

?

Modify the C:/php/php5/php. ini file in

; Be sure to appropriately set the extension_dir directive.

?

Add below

extension_dir="C:/php/php5/ext"

?

And

extension=php_mysql.dllextension=php_mysqli.dllextension=php_pdo.dllextension=php_pdo_mysql.dll

?

Remove the previous.

?

4. install Zend.

Specify the directory of php. ini and Apache.

?

In November 5, unzip phpmyadmin-3.0.0-rc1-all-languages.zip to C:/php/apach2/htdocs and rename it admin.

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.