Graphical tutorial on setting up PHP server environment

jacklove
Release: 2023-04-02 19:04:02
Original
1813 people have browsed it

The editor below will share with you a graphic tutorial on setting up a PHP server environment. It has a good reference value and I hope it will be helpful to everyone. Let’s follow the editor and take a look.

1. PHP server environment construction

##1.phpServer environmentInstallation packagexampp(apach mysql phpInterpreter)##F:\MyDoc file (important)\DL_Learning\download important resources\apache server components

Installation

##At this time, entering the xmapp panel shows successful operation

Test local Whether the Apache server is turned on: Enter127.0.0.1

in the browser to enter the xmapp official website4. 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 , will not automatically jump

At this point, the server environment configuration is completed, but I hope to be able to save the project file to the recreated

wwwfolder How to set it up5. Save all files to the F:\www folder

Solution:

(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 under the www folder, and enter 127.0.0.1 in the

browser to display

Success! ! ! !

The above graphic tutorial (sharing) on setting up a PHP server environment is all the content shared by the editor. I hope it can give you a reference, and I hope you will support the PHP Chinese website.

Articles you may be interested in:

Explanation of how to implement Hill sorting algorithm in php


Explanation of how PHP uses custom keys to implement data encryption and decryption


Explanation of simple four arithmetic operations calculator function examples implemented by PHP


The above is the detailed content of Graphical tutorial on setting up 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!