Saturday, November 14, 2015

Fedora 23 - LAMP - Linux, Apache, MySQL And PHP

Currently, I'm using Gnu/Linux Fedora 23 Gnome. I need to setup a working LAMP environment but I not familiar yet with RPM based distro and after some research, I figure out this tutorial.

First thing, you need to update your repository at first :
$ sudo dnf update
Then, lets begin to install Apache web server and MySQL database server (Not familiar with Nginx dan MariaDB yet):
$ sudo dnf install httpd
$ sudo dnf install community-mysql-server
Now install PHP engine
$ sudo dnf install php php-mysql
Do you need PhpMyAdmin? I always need that
$ sudo dnf install phpmyadmin 
* Tutorial : Allow no password on PhpMyAdmin

Start Apache and MySQL services via systemctl:
$ sudo systemctl start httpd.service
$ sudo systemctl start mysqld.service
If you are using Gnome desktop enviroment, I recommend you to install this LAMP status extension :

By default web server is only accessible as localhost. To allow access publicly to the LAMP over HTTP and HTTPS, you need to configure the firewall rules and after that reboot or reload the firewall:
$ sudo firewall-cmd --permanent --add-service=http
$ sudo firewall-cmd --permanent --add-service=https
$ sudo firewall-cmd --reload 

1 comment:

  1. In this lesson we cover the basics of variables. What variables are, what they are used for and how to work with variables in PHP using some examples. are going to be leaning towards the more funky look in fashion. Please visit us: php