How to install LAMP on Fedora 29?

0
962
LAMP on Fedora 29
LAMP on Fedora 29

A LAMP server (Linux + Apache + MariaDB + PHP) allows us to have a web server ready to host sites made with each of the components of the acronym. So, this article will teach you how to install LAMP on Fedora 29.

Many web developers use Fedora for their work. It’s not uncommon because we’re talking about a very stable and carefully made Linux distribution. However, it is true that Fedora is not the first choice to install LAMP so many don’t know how to do it.

Install LAMP on Fedora 29
Install LAMP

A LAMP server as I said before is composed of Linux, a web server as Apache, a database manager in MariaDB and a programming language to interpret and make the application work, in this case, PHP. Together, they form an ideal combination to develop web applications and to run applications.

Let’s start.

Install LAMP on Fedora

1. Install Fedora 29

The first step is obviously to install Fedora. Recently was published the 29th version of this great Linux distribution.

If you haven’t or don’t know how you can read this article.

2. Install Apache web server

First, you need to install apache web server. It is perhaps the most used web server in the world. It stands out for its ease of use, its great documentation and its compatibility with almost all Linux distributions. In addition, its installation is quite simple. Let’s get to it.

Open a Terminal and run:

1.- Install apache web server
1.- Install Apache web server

Once the installation is complete, you need to start the service and enable it to run at system startup.

2.- Enabling httpd service
2.- Enabling httpd service

So far there should be no problems, however, if you want to enable remote access, you have to configure something in the firewall.

And finally, restart the Firewall service.

3.- Restarting the Firewall service
3.- Restarting the Firewall service

And you can continue with the next step.

3. Install PHP

PHP is another fundamental component of LAMP. Without it, you will not be able to execute correctly web applications created in this language. So, it is necessary to install it.

4.- Installing PHP
4.- Installing PHP

Now it is necessary to test the installation. Create a file named example.php in /var/www/html/ with the following content.

5. Creating a PHP file for test
5. Creating a PHP file for test

Restart apache service.

Open a web browser and open it. http://IP_ADDRESS/example.php and if you see something like this, then everything goes in order.

6.- PHP installed
6.- PHP installed

The next step is to install MariaDB.

4. Install MariaDB

Now it’s MariaDB’s turn to install. This is so that the applications that require database can run. MariaDB is a MySQL fork that inherits its strength, robustness, and stability.

7.- Install MariaDB
7.- Install MariaDB

Then, enable the MariaDB service.

8.- Enabling MariaDB service
8.- Enabling MariaDB service

Now, you have to define a password and some extra settings. For this, you will use the MySQL script.

9.- mysql_secure_installation
9.- mysql_secure_installation

10.- Configuring MariaDB using mysql_secure_installation
10.- Configuring MariaDB using mysql_secure_installation

To the questions that arise, I have answered: Y, N, Y, Y.

And that’s it.

Conclusion

As you may have noticed, installing LAMP is really easy. The key is to do it methodically and everything becomes easy.

The LAMP is necessary for any web developer and for system administrators to be able to run their web applications.

Please spread this article through your social networks.

Spread the love
  • 11
    Shares

PS. If you like this post please share it with your friends on the social networks using the buttons above.Thanks.

LEAVE A REPLY

Please enter your comment!
Please enter your name here