Development

Installing XAMPP and HeidiSQL; A lamp stack for Windows

This post is a guide for installing and setting up a lamp stack on Windows. Thus making it a wamp stack. Windows, Apache, MySQL & PHP.

Having a local webserver is great & fast for development and will be used as a starting point for further posts.

XAMPP

XAMPP is a webserver stack that includes a web server (Apache HTTP), database (MySQL/Maria) and interpreters like PHP and PERL. There are also added on bonuses like an FTP server and phpMyAdmin.

It is easy to use with Windows because of its simple click to start/stop GUI.

Go to the XAMPP downloads page here or XAMPP 8.0.0 (PHP 8) download link.

For this post, I am installing XAMPP 8.0.0 which comes with the new PHP 8 version.

The download is straight forward, upon starting the installation you may get a warning which can be ignored:

Choose the components you want, for this example it was just Apache, MySQL and PHP. I am not choosing phpMyAdmin because I will be installing HeidiSQL.

Wait for the installation to finish and open the XAMPP control panel

XAMPP control panel

This is the XAMPP control panel GUI, here Apache (webserver) and MySQL can be started or stopped. These can also be done via batch files found at C:\xampp.

XAMPP will automatically open up ports.

Once you have started Apache and MySQL, open your web browser and navigate to HTTP://127.0.0.1

You will be greeted by the XAMPP default page, your installation was a success.

C:\xampp\htdocs is the webserver home directory. It is best to save this directory in quick access.

HeidiSQL

HeidiSQL is a GUI program for MySQL and its forks. You can create and view tables easily, along with data. I personally find HeidiSQL easier to use than the web browser-based phpMyAdmin.

Download the latest version of HeidiSQL here.

You have some minor options during the install process:

Once it has finished installing, run HeidiSQL add in the localhost MySQL account by clicking New in the bottom left.

The default localhost MySQL account is user “root” with no password.
Save this account and click Open.

You will be greeted by the HeidiSQL client for your localhost database.

You can now manage the MySQL server.

Share

Recent Posts

Kennington reservoir drained drone images

A drained and empty Kennington reservoir images from a drone in early July 2024. The…

1 year ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

1 year ago

FTP getting array of file details such as size using PHP

Using FTP and PHP to get an array of file details such as size and…

2 years ago

Creating Laravel form requests

Creating and using Laravel form requests to create cleaner code, separation and reusability for your…

2 years ago

Improving the default Laravel login and register views

Improving the default Laravel login and register views in such a simple manner but making…

2 years ago

Laravel validation for checking if value exists in the database

Laravel validation for checking if a field value exists in the database. The validation rule…

2 years ago