LAMP on Fedora 19/18, CentOS/Red Hat (RHEL) 6.4/5.9
LAMP (Linux, Apache, MariaDB/MySQL, PHP) server is very powerful server setup behind any website or web based service. This guide is collection of Fedora/CentOS/Red Hat (RHEL), Apache, MariaDB/MySQL and PHP install guides.
Today the Internet is full of instructions, which promises a LAMP server installation with a “One-Liner”, and so forth. In fact, these “One-Liner” instructions assume that, Linux is already installed and installs just AMP (Apache, MariaDB/MySQL, PHP) pakages, without any configuration. AMP programs can be installed with one command easily, of course, but the correct configuration have to be done anyway, especially if the environment is going to production use.
This guide (more specifically this guide parts) try to explain in more detail LAMP (Linux, Apache, MariaDB/MySQL, PHP) server environment installation. This howto can be used to pre-installed Linux, and instructions can be used for various Fedora and Red Hat based Linux distros with YUM. This guide is also usable with setup where MariaDB/MySQL databases and Apache Web servers are on different server machines.
This guide includes three separated steps/guides
Note: Any step can be omitted if something does not want to install.
1. Install Linux (Fedora 19/18/17, CentOS 6.4/5.9, Red Hat 6.4/5.9)
Currently there are 6 different instructions for installing Linux (Fedora 19/18/17, CentOS 6.4/5.9 and Red Hat 6.4).
2. Install MariaDB 5.5/10 or MySQL 5.5
– OR –
This MySQL part use Remi Repository and install latest MySQL 5.5 (currently 5.5.33) version. Not available on Fedora 19.
Note: Open MySQL port only when it’s really needed and otherwise use it only locally (localhost)
3. Install Apache (httpd) 2.2 with PHP 5.5
This Apache and PHP part use Remi Repository and install latest PHP 5.5 (currently 5.5.4) version.
Enable Apache Userdir with SELinux on Fedora 19/18/17, CentOS 6.4/6.3/6.2/6.1/6/5.9, Red Hat (RHEL) 6.4/6.3/6.2/6.1/6/5.9 >>
Finally you are done. Not very hard, but at least the most important configurations and checks have been already completed.