Php-zend Studio PHP Environment Build-up

Source: Internet
Author: User
Tags phpinfo

First step: Download the Installer

(1) Apache2.2.4 version download, address: http://httpd.apache.org/download, select

Apache_2.2.4-win32-x86-no_ssl.msi, about 4M more.

(2) PHP5.2.3 version download, address: http://www.php.net/downloads.php, select the Php5.2.3.zip package under Windows binaries, It corresponds to Php-5.2.3-win32.zip file, about 9M more.

Step Two: Install the program

(1) Apache Installation

Double-click on the installer, except for one step in the middle, you need to select the rest of the installation by default. The exception step has two options: one is "for all users, the on port80 ..." and the other is "only for the current user, on port 8080 ...", for testing and development convenience, we recommend the latter one, using 8080 ports, so that the test is convenient.

(2) PHP Installation

Choose to extract the Php-5.2.3-win32.zip to the Php-5.2.3-win32 file, unzip the Php-5.2.3-win32 directory containing files like Php.exe and Php5apache2_2.dll. Then change the Php-5.2.3-win32 file name to PHP and copy it to the C packing directory.

Step Three: Environment configuration

(1) add PHP environment variable: add "c:/php" to the system variable path, and note that the existing values are separated by semicolons. The path system variable can be found by right-clicking the system variable--->path, properties----environment variable--

(2) modify Apache configuration file: C:/Program Files/apache software foundation/apache2.2/in the Apache directory that was just installed successfully Conf Find httpd.conf, add the following command at the back:

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

AddType application/x-httpd-php. php

Fourth Step: Test success

(1) Write a simple PHP test page hello.php, which reads as follows:

<title>hujiahui</title>

<body>

<?php echo ' hello,world! '; ?>

</body>

Save it as the file name hello.php, and put it under C:/Program Files/apache software Foundation/apache2.2/htdocs folder. Then launch Apache, enter http://localhost:80/hello.php in the browser address, and the system prints "hello.world!".

(3) test phpinfo function, phpinfo.php page content as follows:

<title>hujiahui</title>

<body>

<?php phpinfo ();?>

</body>

Save As phpinfo.php, and then enter the http://localhost:80/phpinfo.php test to get a lot of information about Apache and PHP configuration (rainwater/gobitan,2007-07-01).


This article is from the "Mr_computer" blog, make sure to keep this source http://caochun.blog.51cto.com/4497308/1553014

Php-zend Studio PHP Environment Build-up

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.