Setup A Lamp Server With Fedora

Share This:

A while back I wrote a 6 part article about setting up a LAMP server using Fedora Linux. However the article used Fedora Linux 16 and since Fedora is now up to version 25 there have been a lot of changes. I figured I would rewrite the article for present day.

The recommended & preferred way to setup a LAMP server is to install the packages in just that order. So this means the first thing we will do is install and setup Linux. For the purposes of this tutorial I will be using Fedora 25. If your using Ubuntu Server you will be able to setup a LAMP stack right from the installation . You can also do this with Fedora. However for the purposes of this tutorial we wont be doing that. Plus I just prefer Fedora. And really who doesn’t. After all RPM’s are so Yummy Fedora doesn’t use YUM as it’s package manager anymore. They now use DNF so I guess RPM’s have moved beyond being Yummy.

Another change in the Fedora Server setup is the removal of text based installer. This means no more ugly blue screen. It is a graphical installer like the one that is used to install the desktop version of Fedora. But don’t worry it still is a light weight text based installation for your server.

Anacanda First Screen

The first screen Anacanda will show you is a screen that ask you for your language preferences. Select the language you prefer.

Then you click the Blue continue button on the screen.



Anacanda Second Screen

The next screen you will see have multiple sections. This is where you can set your keyboard layout, time settings. Installation source and destination. Unlike the standard Desktop installation of Fedora you have the Software Selection option.

Lets click the software selection option. When we do that we will see a new screen that looks like the following.

As you can see I have selected two different software options on the Software Selection Screen. One option is Basic Web Server.

The other option is Editors. I chose the Basic Web Server option so it will automatically install and configure Apache, MySQL and PHP in the correct order.

I chose the Editors option because we will need to modify configurations to work for our needs. When your done selecting the packages you need. Click Done.


When you click the image of the Hard Disk you will see the screen displayed to the left. Select the hard disk you plan to install the server to.

I would recommend selecting the option that says “Use All Space”. After you have made your selection click the Next Button. A window will pop up asking you if your certain that you want to do this. This is because it will start writing data to your hard disk. Which means if you had anything important on your hard disk it is now going to be lost forever. So confirm that you want to write the changes to the disk.

After Anaconda has written to the disk you will see the following.

Note: If your installing Fedora from USB drive the USB drive will show up in the list of drives. If you choose to install the Fedora onto the USB drive you may run into complications. So be very careful not to choose that drive.

After you have selected your drive. You will click on the button that says Done on it. Once again the Done button is located in the top left hand corner of your screen.


Now we will click the button that says Begin Installation. When we do this we will be presented with a new screen. This screen is where you will setup the root password and create a user.




To create new user we will click on the User Creation section.

Then we will type our full name in the section that says Full Name.

We will create a User Name of our choice. Then we will type in a strong Password. We will need to confirm the password by typing it in twice.

For Root we only need to worry about creating the password.

Now we will just wait for the installation to finish. When it is done you will see a new Blue button that says Reboot. Click it and your system will restart and you will be setup.