1
First download the XAMPP software. When installed by default, a small orange icon can be found in the lower right corner of the computer by double-clicking it
Start Apache and MySQL will turn green
2 Open the C:\xampp\apache folder
Find httpd.conf File Open with Notepad find documentroot keyword set the default work location to customize the
Find the Director keyword again
Set up a Site Directory
2 Configuring your Hosts
Open C:\Windows\System32\drivers\etc directory open hosts with Notepad
Remove the well number in front of the 127 and save it.
If you cannot save it directly, save it to the desktop and then copy it to the original directory instead. Note: Do not extend the name
3 Create a new TTT folder on drive C
Create a file named index.php under Change directory
Enter the following content
Save
4 restarted server
Open your XAMPP Click on the first stop and point to start
Then restart the browser
Enter http://localhost/index.php in the address bar
will be able to see your website.
Teach a girlfriend to write the first PHP