Development

Installing XAMPP on Windows Server 2012r2

XAMPP is a program that makes having a local web server simple. With XAMPP you can easily handle a web server (Apache) plus MySQL. Here is how to install and configure XAMPP on a Windows Server 2012r2 from Vultr.

Connect to your server using the RDP program and go to this link to get XAMPP 7.4.2 which is a stable version packaged with PHP 7.4.2.

Once downloaded go through the install steps, when it asks for what modules to install only choose Apache, MYSQL and phpMyAdmin you don’t need anything else for a basic webserver. If it asks to install Bitnami click no.

It will take a few moments to install, start it up choose language either English or German. Once the XAMPP control panel is open click start on Apache.

We may need to unblock a port for Apache to work so search for “firewall” and open up “Windows firewall with advanced security”. Create a new inbound rule for TCP, port 80 and just call it Apache.

Now navigate to C:\xampp\htdocs delete everything and create a simple index.php with the following code in it:

<?php
echo "Hello!";

Now back onto your computer or laptops web browser type in your servers IP and if it simply displays a page that says “Hello!” well done! If it keeps loading and nothing shows it may be a port issue, you will need to check what ports Apache is using in the XAMPP control panel.

As default the root directory for Apache is C:\xampp\htdocs.

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