Skip to main content

Apache, PHP and MySQL Installation Using XAMPP

By SamK
0
0 recommends
Topic(s)

You can install a local server (Apache), PHP and a database like MySQL using XAMPP, using the steps below:

  • Click here to visit the XAMPP official download page.
  • Download the XAMPP version, which is compatible with your operating system.
  • Install it in any drive in the xampp folder.
  • After installation, you'll need to run the xampp-control.exe file in xampp folder to open the xampp control panel.
  • Then, use the start buttons in the control panel interface to run Apache and MySQL.
  • Now, you'll be able to run PHP files in your local PC by placing them in the htdocs folder within the xampp directory.
  • For example, if you want to run a PHP file named test.php in a web browser, then place it inside the htdocs folder and visit localhost/test.php in your local web browser.

Note: By default, the htdocs folder already contains some PHP files and folders. So, we usually create a new folder inside the htdocs folder, to place and test our PHP scripts.

You can watch the video above for more information.

Questions & Answers