The clearest graphic tutorial on building a PHP server environment

小云云
Release: 2023-03-17 20:54:01
Original
2343 people have browsed it

PHP environment construction is also a technology. This article will share with you a graphic tutorial on PHP server environment construction. It has a good reference value and I hope it will be helpful to everyone.

1. PHP server environment construction

1.php server environment installation kit xampp (apach+mysql+php interpreter)

F:\MyDoc file (important )\DL_Learn\download important resources\apache server components

Installation

##At this time, enter the xmapp panel and display successful operation

Test whether the local Apache server is open: enter 127.0.0.1 in the browser and press Enter to enter the xmapp official website

4. Modify the default dashboard folder that appears in the browser

Open the index.php file under the htdocs folder under xmapp and the configuration file will jump to this folder by default

Solution: Delete all files under htdocs and replace It will not jump automatically

At this point, the server environment configuration is completed, but I hope to be able to save the project files to the recreated www folder. How to set it up

5. Save all files to Solution to

in the F:\www folder:

(1) Enter F:\xampp\apache\conf\httpd.conf

(2) Open the file
( 3) Modify #DocumentRoot "C:/xampp/htdocs" to

DocumentRoot "C:/www" 
Copy after login

(4) Save and close, restart xampp control panel


Test: Create a new www.text file in the www folder,

Enter 127.0.0.1 in the browser to display

Okay, follow the above graphic tutorial to set up the PHP server environment. You can try it out.

Related recommendations:

How to build a simple static file http server

How to use Docker to build a Laravel environment

Detailed explanation of the method of establishing master-slave database in MySQL

The above is the detailed content of The clearest graphic tutorial on building a PHP server environment. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!