Home  >  Article  >  Backend Development  >  How to quickly build php in windows10

How to quickly build php in windows10

王林
王林forward
2019-09-11 11:46:213914browse

How to quickly build php in windows10

How to quickly build php in windows10 system?

apache installation

1. Official website download address: http://httpd.apache.org/download.cgi

2. Download

How to quickly build php in windows10

How to quickly build php in windows10

##3. Unzip the downloaded file

How to quickly build php in windows10

4. Open the httpd.conf file under Apache24\conf, modify the following key locations, and use Notes Just open this or EditPlus.

How to quickly build php in windows10

Modify the default SRVROOT value to the Apache installation location

5. Start Apache

1) Enter "cmd" in the chat box of "Win R" to start the "Command Prompt Window".

2) Enter "d:" and press Enter, enter "cd /php/httpd-2.4.34-o102o-x64-vc14/Apache24/bin" and press Enter and enter "httpd ”, if there is no prompt, it means the startup is successful.

3) Open the browser and enter "http://localhost/" to test. The following figure shows that the configuration is successful.

How to quickly build php in windows10

How to quickly build php in windows10

##PHP installation

1. Official website download address:

https://windows.php.net/download

2. Download

How to quickly build php in windows10

3. Unzip and configure

1) Unzip the downloaded file to the location where you want to install it.

2) Copy php.ini-development and rename it to php.ini. Then configure

Change the directory address similar to the picture below (specifically depends on your own installation directory)

How to quickly build php in windows10

Remove the preceding ";"


How to quickly build php in windows10##3) Open Apache24\conf httpd.conf, add

How to quickly build php in windows10 at the end. Test:

in the Apache directory Create a new Index.php file in the htdocs folder and fill in the following code:

<?php
    phpinfo();
?>

After saving, enter in the browser:

http://localhost/index.php

If the following page appears, it proves that PHP installation is successful.

Finish! How to quickly build php in windows10

If you want to learn more related content, please visit the php Chinese website:

PHP video tutorial

The above is the detailed content of How to quickly build php in windows10. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete