How to install XAMPP on windows ( PHP 7.4, PHP 8 )

How to install XAMPP on windows ( PHP 7.4, PHP 8 )

Redaction - April, 2th 2021
In order not to have to tune our pages to the web hosting, we will also install the services on our computer, where we will program the website. We will upload it to the web hosting as ready-made and tested. The services can be installed simply as one package.

Download and install XAMPP

Web applications often use the Linux operating system, the Apache webserver, the MySQL database (or its open clone MariaDB) and the PHP programming language. This quartet is often abbreviated as LAMP. All the mentioned technologies are free of charge. If we run the following technologies under Windows, the abbreviation WAMP is sometimes used.
 
Probably the most used installation package, which includes Apache, PHP and MySQL, is called XAMPP. Installation is very simple.
 
Download XAMPP
 

Installation

It is better to run the installation than the administrator. To do this, right-click on the downloaded file and select "Run as Administrator". You will probably see a message about UAC, which you will clear.
 
xampp error
Another message that may appear is related to the Microsoft Visual C ++ runtime that XAMPP requires. Therefore, if you see this dialog, you will confirm it.
 
The default web browser opens directly on the page where you download this component. Once you have installed it, you can continue with the XAMPP installation.
 
Installing XAMPP is easy and just click it. In the process, you can choose which components of the package you want to install. Even if we leave the default settings, we will explain what the individual components are for:

Server

Here we can choose what we want to have in our server.
  • Apache - Webserver that provides communication with the client. This is a mandatory part.
  • MySQL - A widely used database. It is connected to the user-friendly phpMyAdmin, which is included in the installation. There are other databases, such as SQLite, which is directly in PHP.
  • FileZilla FTP Server - Allows you to create your own FTP server and then connect to it remotely. You must have a public IP address.
  • Mercury Mail Server - Local SMTP server for sending emails.
  • Tomcat - Serverlet for Java, if you create pages in this language.

Program languages

Here we can choose the programming languages ​​we want to use on the server.
  • PHP - Basically is PHP.
  • Perl - However, it is also possible to run perl.

Tools

Other tools that the XAMPP package offers us.
  • phpMyAdmin - User friendly MySQL database administration.
  • Webalizer - Web access statistics.
  • Fake Sendmail - Send anonymous emails.

If you have decided that you do not want one of the services, you can uncheck it. But I recommend keeping them. You can choose which service will run and which will be turned off, so it may not be used.

 
Leave it as a folder in the next window C:\xampp\, as Program Files\XAMPP would have problems with write permissions.
 
 
During the installation, you will probably be asked to allow new services to access the network, confirm the requests.
 
 
After installation, we will be asked if you want to start the XAMPP control panel. We will confirm.
 

Control panel

Once launched, we will see the following form:

 

 

We see the services installed here. The Start / Stop buttons for Apache and MySQL will be key for you. You can use them to turn these services on or off. It's a good idea to turn off services when you're not using them, because they'll put an unnecessary strain on your processor. Each service also has a checkbox that determines whether it should be run as a system.

WARNING! If you use Skype, you will not be able to start Apache! This is because Skype is a poorly written application and uses a port 80that does not belong to it. The solution is to reconfigure Skype to another port, or turn it off, start Apache, and then turn it back on.

With the help of other buttons we can start the administration tool for the given service or display the error log.

If both services start for you, you have won.