How to quickly build php in windows10

王林
Release: 2023-02-23 22:06:01
forward
3995 people have browsed it

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();
?>
Copy after login

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!

Related labels:
source:csdn.net
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template