Home Backend Development PHP Tutorial Build a php environment in xp, install php and configure it

Build a php environment in xp, install php and configure it

Jul 29, 2016 am 09:05 AM
apache application nbsp php

Like the previous article, here is the download link for Baidu Cloud: http://pan.baidu.com/s/1jGZ8xVK

If you want to try the download process, please see below:

php The official website download URL: http://windows.php.net/download/

Click in and pull it to the bottom of the webpage:

Build a php environment in xp, install php and configure it

After downloading, unzip it to the appropriate directory

The following also needs to be configured:

a)php.ini-development is php.ini

Build a php environment in xp, install php and configure it

b) Open the php.ini file and uncomment the following lines

Set time zone

Find the keyword: date .timezone


For example, change it to: date.timezone = PRC

d) At this time, you need to associate the relationship between apache and php

Open httpd.conf in the Apache24conf directory

Find the corresponding location based on the keyword: #LoadModule. Under the corresponding location, add the following two lines of codeBuild a php environment in xp, install php and configure it

LoadModule php5_module "E:/setup/xp/php5.4/php5apache2_4.dll" PHPIniDir "E:/setup/xp/php5.4/"

The meaning of the above two lines of code is to load the php module and inform apache of the php configuration file


e

)Add a suffix that can be parsed

Find AddType application/x-compress .Z based on the keywordBuild a php environment in xp, install php and configure itThen add the following three lines of code:

AddType application/x-httpd-php .php AddType application/x-httpd-php .html AddType application/x-httpd-php .htm

f) test code

In the previous article, we configured the root of apache Directory, go to our root directory, create a new .txt document, and write in it phpinfo();

?>

Build a php environment in xp, install php and configure itAfter saving and closing, change the suffix to .php




Then restart the server and let’s experiment in the browser!

Build a php environment in xp, install php and configure it
Successfully configured the environment!

The above introduces how to build a PHP environment, install PHP and configure it in XP, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

CakePHP Date and Time

CakePHP Project Configuration CakePHP Project Configuration Sep 10, 2024 pm 05:25 PM

CakePHP Project Configuration

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

CakePHP File upload

CakePHP Routing CakePHP Routing Sep 10, 2024 pm 05:25 PM

CakePHP Routing

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

Discuss CakePHP

CakePHP Quick Guide CakePHP Quick Guide Sep 10, 2024 pm 05:27 PM

CakePHP Quick Guide

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

How To Set Up Visual Studio Code (VS Code) for PHP Development

See all articles