Setting IP static
# vim /etc/network/interfacesAdd the config to the file.
# This file describes the network interfaces available on your systemRestart networking
# 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
# service networking restart
# vim /etc/hosts
127.0.0.1 localhostConfiguration hostname
192.168.177.128 www.linuxoperatingsystem.com www
# echo "www.linuxoperatingsystem.info" > /etc/hostname
# service hostname start
install apache
# apt-get install apache2Open your web browser and navigate to http://localhost/ or http://server-ip-address/.
install mysql
# apt-get install mysql-server mysql-clientVerify mysql server
# service mysql statusRestart mysql server
# service mysql restartStop mysql server
#service mysql stop
install php
# apt-get install php5 php5-mysql libapache2-mod-php5To test php
# vim /var/www/html/testphp.phpadd the following lines:
<?phpRestart apache server
phpinfo();
?>
# service apache2 restartNavigate to http://server-ip-address/testphp
Manage MySQL Databases
install phpMyAdmin
# apt-get install phpmyadmin
Configuration phpmyadmin
# vim /etc/apache2/apache2.confAdd 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.
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