Introduction
After first time Downloading CentOS 7 iso file, I setup one virtual machine with minimal installation on Virtual Box and connected it to Bridge network, during installation the Network setting i chose to DHCP. After finishing installation process, and when the virtual machine was rebooted, i tried to find ip address on CentOS 7 box.
`See below what was the output :
# ifconfig -a -bash: ifconfig: command not found
My reaction was What???? That was strange, because first time I found there was no ifconfig tool installed by default.
Then I install net-tools using yum to make ifconfig available.
# yum install net-tools
Ok now I am able to find my ip address with ifconfig.
# ifconfig -a
Sample output:
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.1.200 netmask 255.255.255.0 broadcast 192.168.1.255 inet6 fe80::a00:27ff:feba:3efb prefixlen 64 scopeid 0x20 ether 08:00:27:ba:3e:fb txqueuelen 1000 (Ethernet) RX packets 208 bytes 25610 (25.0 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 194 bytes 44890 (43.8 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 0 (Local Loopback) RX packets 804 bytes 68976 (67.3 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 804 bytes 68976 (67.3 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
LAMP(Linux, Apache, Mysql and PHP)
Famous LAMP stack is a software bundle containing Apache web-server, MySQL DB Server and PHP consist on Linux Operating system. LAMP is used for building completely open source free solution for dynamic websites.
LAMP Stands for :
L = Linux
A = Apache
M = MySQL
P = PHP
In this tutorial we will see how to install LAMP (Linux, Apache, MySQL/MariaDB and PHP) on Centos 7/RHEL 7
*Update: MariaDB is default database management system in replacement of MySQL in Red Hat Enterprise Linux/CentOS 7.0.
We will complete this lab in several parts.
Part 1 : Installation of Apache Web-Werver with Basic Configuration
Part 2 : Install PHP support for Apache
Part 3 : MariaDB Installation
Part 4 : PHP MyAdmin Installation
Prerequisites:
- Root level access
- Centos 7/RHEL 7 with basic configuration
- IP settings should be static
- Internet connection
Lab Environment
CentOs 7.0 |
|
IP Address | 192.168.1.200/24 |
HostName | lamp-srv.broexperts.com |
Let’s begin the Installation of LAMP Server.
Part 1 : Installation of Apache Web-Werver with Basic Configuration