Tuesday, February 10, 2015

How to install Lamp (Apache, MySQL, phpmyadmin) ubuntu 14.10

Leave a Comment
How to install Lamp (Apache, MySQL, phpmyadmin) ubuntu 14.10? LAMP is short for Linux, Apache, MySQL, PHP. This video tutorial shows how you can install an Apache 2 webserver on an Ubuntu 14.10 server

Setting IP static

# vim /etc/network/interfaces
Add the config to the file.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.177.128
        netmask 255.255.255.0
        network 192.168.177.0
        broadcast 192.168.177.255
        gateway 192.168.177.2
        dns-nameservers 8.8.8.8
Restart networking
# service networking restart
# vim /etc/hosts
127.0.0.1       localhost
192.168.177.128   www.linuxoperatingsystem.com     www
Configuration hostname
# echo "www.linuxoperatingsystem.info" > /etc/hostname
# service hostname start

install apache

# apt-get install apache2
Open your web browser and navigate to http://localhost/ or http://server-ip-address/.

install lamp ubuntu 14.10

install mysql

# apt-get install mysql-server mysql-client
Verify mysql server
# service mysql status
Restart mysql server
# service mysql restart
Stop mysql server
#service mysql stop

install php

# apt-get install php5 php5-mysql libapache2-mod-php5
To test php
# vim /var/www/html/testphp.php
add the following lines:
<?php
phpinfo();
?>
Restart apache server
# service apache2 restart
Navigate to  http://server-ip-address/testphp

install lamp ubuntu 14.10

Manage MySQL Databases

install phpMyAdmin

# apt-get install phpmyadmin

Configuration phpmyadmin

# vim /etc/apache2/apache2.conf
Add the phpmyadmin config to the file.
Include /etc/phpmyadmin/apache.conf

Restart apache server

# /etc/init.d/apache2 restart

Open your web browser and navigate to http://localhost/phpmyadmin or http://server-ip-address/phpmyadmin.

install lamp ubuntu 14.10

Link youtube how to install Lamp (Apache, MySQL, phpmyadmin) ubuntu 14.10 


Copyright by: www.linuxoperatingsystem.info http://goo.gl/kMscJ4

0 comments:

Post a Comment