Build PHP Environment

Source: Internet
Author: User


Required Software:
Apache2.2.8 PHP 5.2.5 Mysql 5.0

************************

1. Install Apache
(Installation package format)
In network Domain and server Name, fill in 127.0.0.1, the lower-right corner to control the start and shutdown of the Apache server. When installed, enter http://localhost/in the browser, if it appearsIt works! "Words, then the installation was successful!

2. Install PHP
(Unpack package format)
Extract files to c:php

3. Install Mysql
(Unpack package format)
Unzip the file to C:mysql, from the command prompt character into the bin directory, execute"Mysql-nt-install"For installation, after the installation is successful, it will display"Service successfully installed."Then start the service"net start MySQL", and finally change the admin password"mysqladmin-u root-p password <new password>", you will be prompted for the old password, so you can enter it directly because you have not previously set the password.
Other Related orders:
Mysqld-nt-removeUninstall Service
net stop MySQLStop Service

4. Software configuration
Stop the Apache service first, then use Notepad to open the c:pacheconfhttpd.conf file, find the "#LoadModule ssl_module modules/mod_ssl.so" and add "LoadModule" below it. Php5_module C:/php/php5apache2_2.dll ". Then find "AddType application/x-gzip. gz. tgz" and add "AddType application/x-httpd-php. php" below.

Locate the Php.ini-dist and Php5ts.dll files in the c:php directory, copy php.ini-dist to the Windows directory, and rename to PHP.ini, and open it with Notepad extension=php_mysql.dll ", remove the preceding semicolon. Copy the Php5ts.dll to the System32 directory and copy the Php_mysql.dll files from the C:phpext directory to the Windows folder.

5. Configure the Web site
Modify httpd.conf again to find "DocumentRoot" C:/apache/htdocs "", "<directory" C:/apache/htdocs ">", "DirectoryIndex Index.hrml ", then make the corresponding modification can!

6. Completed
Start Apache Service, Configuration complete!

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.