The best way to begin with the installation of the rest of the packages is to get updated versions of your packages. And the command for it is:
$ sudo dnf update
Now, I will tell you the steps to install the remaining packages. 1. Installing Apache Web Server
2. Installing MariaDB Server
3. Installing PHP
Installing Apache Web Server
Well, its no hidden secret that Apache web server is the numero one server when it comes to use for websites. All you need to install Apache Web Server is to run the below command:
<pre>$ sudo dnf install httpd </pre>
You now need to perform a few more tasks, like setting up Apache to start working as soon as the system boots. After this, you need to start and complete the verification of the status of Apache.
Here are the commands you need to run to serve the purpose:
$ sudo systemctl enable httpd.service
$ sudo systemctl start httpd
$ sudo systemctl status httpd
The next step involves to enable access to it in the system firewall, for which you are required to allow access to the web server over HTTP and HTTPS. Adding the following rules in the fedora rules will be a great help.
Now is the time to ensure that Apache is running successfully. You can find IP address of your system with this command:-
$ ip a | grep inet
Fedora test page will appear once you copy/paste that IP address in your browser.
Installing MariaDB Server
You simply need to run the following command to begin installing MariaDB in Fedora 23.
# dnf isntall mariadb-server
Once the installation is done, you need to have right configuration of MariaDB to allow it to automatically start after system boot. Now is the time to start and complete the verification task of MariaDB. Following commands will help you do the same:
# systemctl enable mariadb
# systemctl start mariadb
# systemctl status mariadb
The following command will help you adjust a few settings to secure your MariaDB installation:
PHP has become the most popular programming languages among website developers. PHP plays a crucial role in setting static websites apart from dynamic ones. Following command will help you install PHP in Fedora 23:
# dnf install php php-common
The following command now needs to be run for PHP/MySQL applications: