How to quickly build php in windows10 system?
apache installation
1. Official website download address: http://httpd.apache.org/download.cgi
2. Download
##3. Unzip the downloaded file
4. Open the httpd.conf file under Apache24\conf, modify the following key locations, and use Notes Just open this or EditPlus.
Modify the default SRVROOT value to the Apache installation location5. 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.
##PHP installation1. Official website download address:
https://windows.php.net/download
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)
Remove the preceding ";"
##3) Open Apache24\conf httpd.conf, add
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(); ?>
http://localhost/index.php
If the following page appears, it proves that PHP installation is successful.
Finish!
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!