How To Install LAMP setup in Ubuntu 15.10
To Install LAMP setup in Ubuntu 15.10
In this tutorial we are going to install LAMP setup in Ubuntu 15.10. LAMP stands for Linux Apache Mariadb or Mysql and Php.
To Install the apache webserver
Run the following command to install Apache by using the following command.
root@user1-linuhelp:/home/user1# apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
.
.
.
Setting up apache2 (2.4.12-2ubuntu2.1) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
After the installation is completed, check the status of apache web-server
root@user1-linuhelp:/home/user1# systemctl status apache2
Open the web-browser and enter http://< IP_address>
To install of Mariadb
Utilise the following command to install Mariadb.
root@user1-linuhelp:~# apt-get install mariadb-server mariadb-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
.
.
.
.
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (225-1ubuntu9) ..
Configure the Mariadb setup.
root@user1-linuhelp:~# mysql_secure_installation
Open the Mariadb prompt.
root@user1-linuhelp:~# mysql -u root &ndash p
To install of Php
Run the following command to install Php.
root@user1-linuhelp:~# apt-get install php5 libapache2-mod-php5
Reading package lists... Done
Building dependency tree
Reading state information... Done
.
.
.
php5_invoke: Enable module readline for apache2 SAPI
php5_invoke: Enable module readline for cli SAPI
Processing triggers for libapache2-mod-php5 (5.6.11+dfsg-1ubuntu3.4) ...
Create a new file called info.php in the apache' s default root directory.
root@user1-linuhelp:~# cd /var/www/html root@user1-linuhelp : /var/www/html:~# nano info.php
And add the following lines into it.
< ?php phpinfo() ?>
Open the browser and navigate to http://< IP_address> /info.php
Now the LAMP server is installed successfully in Ubuntu 15.10.
Comments ( 0 )
No comments available