How to configure the PHP Environment

Source: Internet
Author: User
Tags phpinfo

Build an Apache server-based PHP environment in Windows

Step 1: Download the installer (1) apache2.2.4. (2) download php5.2.3 at: http://www.php.net/downloads.php. Select php5.2.3.zip packageunder windows binariesand check the php-5.2.3-win32.zip file, which is more than 9 MB. Step 2: Installation Program (1) install the double-click installation program in Apache. The installation program is installed by default in addition to the one required in the middle. The exception step has two options: "for all users, on port80 ...", The other is "only for current user, on port 8080 ...", For the convenience of testing and development, we recommend that you use port 8080 in the latter type to facilitate testing. (2) scripts and php5apache2_2.dll files. Then change the php-5.2.3-Win32 file name to PhP and copy it to the C root directory. Step 3: Environment configuration (1) Add the PHP environment variable: Add "C:/PHP" to the system variable path. Note that the values are separated by semicolons. Path System variables can be found by right-clicking my computer> Properties> advanced> environment variables> system variables> path. (2) modify the Apache configuration file: Find httpd under the Apache directory c:/program files/Apache Software Foundation/apache2.2/CONF. conf, add the following command: loadmodule php5_module "C:/PHP/php5apache2_2.dll" addtype application/X-httpd-PHP. PHP Step 4: test successful (1) write a simple PHP test webpage hello. PHP: <HTML>

Enter localhost in the network domain text box.

Enter localhost in the server name text box.

Enter an email address in administrator's email address.

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.