Configuration of Apache MySQL php In win7 Environment

Source: Internet
Author: User

Two people in the dormitory should complete their work, and take out the PHP they have learned before for a cool shower.

First, download Apache, PHP, and MySQL.

After the download is complete, start the installation:

1. install Apache

Open the installation file, my: httpd-2.2.21-win32-x86-no_ssl.msi, (You can also download the httpd-2.2.21-win32-x86-openssl-0.9.8r.msi)

Enter information

Select coustom

Open the browser: http: // localhost

Find the installation directory and open the httpd. conf file in the conf file. to modify the port, you can change its default settings.

Apache is installed in this way.

2. install PHP

Unzip the downloaded file, my is: php-5.3.8-Win32-VC9-x86.zip, unzip to a directory:

Modify the PHP configuration file: php. ini-development

Rename to: php. ini

Open PHP. ini with a better color editor

Found: register_globals = off

Change

Open the ext folder under the installation directory, which contains the modules supported by PHP:

In the previously edited configuration file, find:

Remove the ';' comment to load the module, provided that the ext folder contains,

You can choose to load all the modules in the ext folder, as long as there is enough memory.

My settings are:

Set environment variables because the box is too small. My directory is long: D: \ Program Files (x86) \ PHP; D: \ Program Files (x86) \ PHP \ ext

Change it accordingly and add it to the path.

The result is:

After the configuration is complete, open the httpd. conf file in the conf folder under the Apache installation directory, find the loadmodule, and integrate Apache with PHP:

Add the following code:

Here is an error. If spaces are used in the path, the path should be enclosed by quotation marks. Otherwise, an error may occur.

Find addtype:

Add the executable PHP file type:

(I only wrote. php, But I can add a few more: for example, .html. But from the MVC perspective, there is one. php)

The last one is: add the index directory, which is equivalent to the welcome-file in Java.

Restart and Test

3. Install MySQL

(The installation interface of MySQL is much better than before)

My files are: mysql-installer-5.5.15.0.msi

In some cases, some necessary environments are missing. For example, if visual c ++ 32bit Runtime is missing

Click Next

The following is the configuration of MySQL. It is very simple, but there is something different from the previous one. It doesn't matter if the password of MySQL is simple. It cannot be installed if the number of passwords is too small. After installation, the following page is displayed:

This interface is really beautiful. I remember I didn't see any pretty interface when I installed MySQL during the summer vacation.

Finally. The environment is ready.

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.