DEV Community 👩‍💻👨‍💻

Cover image for Let's Run PHP On Localhost with XAMPP Server
Code Something
Code Something

Posted on

Let's Run PHP On Localhost with XAMPP Server

Using xampp is the fastest way to run PHP and MySQL on localhost. It's easy to install and its setup won't be covered in this tutorial. First, just make sure your xampp server is running!

To run PHP with Xampp on localhost you need to do the following:

  • Download and install Xampp server
  • Make sure it is running

How To Run PHP On Localhost (on YouTube)

how to run php on localhost video tutorial

How To Run PHP File on Localhost In Chrome, Firefox or Another Browser (your local PC home address without having to upload files via FTP.)

0:00 How to run PHP File on localhost in Chrome browser on my computer / PC
0:08 Make sure XAmpp server is installed and already running on your PC
0:30 Go to C drive and to C:\xampp\htdocs folder (This is Xampp's localhost root folder)
1:05 Open index.php file you just created in VSCode (Visual Studio Code)
1:54 Open PHP script file in Chrome browser running on localhost

how to run PHP on localhost

Top comments (0)

We are hiring! Do you want to be our Senior Platform Engineer? Are you capable of chipping in across sysadmin, ops, and site reliability work, while supporting the open source stack that runs DEV and other communities?

This role might just be for you!

Apply now