How to install LAMP Server on Elementary OS Freya

August 28, 2014 | By | Reply More

This tutorial is going to show you how to install LAMP Server on Elementary OS Freya. LAMP Server will turn your Linux into a powerful web server with MySQL, Apache and PHP5 support. Installing LAMP Server on Elementary OS Freya is pretty straight forward and very simple. Elementary OS Freya is a beautiful distribution but it also has huge potential to serve many other services such as a web server, file server, FTP server and any other service that commonly supported by Linux.

How to install LAMP Server on Elementary OS Freya

First, open Terminal and type the following command

[codesyntax lang=”bash”]

[/codesyntax]

It will display the following lines on your Terminal window.

dhani@dhani-freya:~$ sudo apt-get install lamp-server^
[sudo] password for dhani:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘mysql-server-core-5.5’ for task ‘lamp-server’
Note, selecting ‘mysql-server-5.5’ for task ‘lamp-server’
Note, selecting ‘libaio1’ for task ‘lamp-server’
Note, selecting ‘mysql-client-core-5.5’ for task ‘lamp-server’
Note, selecting ‘apache2-mpm-prefork’ for task ‘lamp-server’
Note, selecting ‘libaprutil1’ for task ‘lamp-server’
Note, selecting ‘libapache2-mod-php5’ for task ‘lamp-server’
Note, selecting ‘php5-mysql’ for task ‘lamp-server’
Note, selecting ‘php5-common’ for task ‘lamp-server’
Note, selecting ‘libaprutil1-dbd-sqlite3’ for task ‘lamp-server’
Note, selecting ‘php5-readline’ for task ‘lamp-server’
Note, selecting ‘ssl-cert’ for task ‘lamp-server’
Note, selecting ‘mysql-client-5.5’ for task ‘lamp-server’
Note, selecting ‘libhtml-template-perl’ for task ‘lamp-server’
Note, selecting ‘libterm-readkey-perl’ for task ‘lamp-server’
Note, selecting ‘libaprutil1-ldap’ for task ‘lamp-server’
Note, selecting ‘mysql-common’ for task ‘lamp-server’
Note, selecting ‘php5-cli’ for task ‘lamp-server’
Note, selecting ‘libmysqlclient18’ for task ‘lamp-server’
Note, selecting ‘apache2-data’ for task ‘lamp-server’
Note, selecting ‘php5-json’ for task ‘lamp-server’
Note, selecting ‘libapr1’ for task ‘lamp-server’
Note, selecting ‘apache2’ for task ‘lamp-server’
Note, selecting ‘mysql-server’ for task ‘lamp-server’
Note, selecting ‘apache2-bin’ for task ‘lamp-server’
Note, selecting ‘libwrap0’ for task ‘lamp-server’
Note, selecting ‘libdbd-mysql-perl’ for task ‘lamp-server’
Note, selecting ‘tcpd’ for task ‘lamp-server’
Note, selecting ‘libdbi-perl’ for task ‘lamp-server’
libwrap0 is already the newest version.
libwrap0 set to manually installed.
ssl-cert is already the newest version.
ssl-cert set to manually installed.
tcpd is already the newest version.
tcpd set to manually installed.
libmysqlclient18 is already the newest version.
libmysqlclient18 set to manually installed.
mysql-common is already the newest version.
mysql-common set to manually installed.
The following package was automatically installed and is no longer required:
libxvidcore4
Use ‘apt-get autoremove’ to remove it.
Suggested packages:
apache2-doc apache2-suexec-pristine apache2-suexec-custom apache2-utils
php-pear libmldbm-perl libnet-daemon-perl libplrpc-perl
libsql-statement-perl libipc-sharedcache-perl tinyca mailx php5-user-cache
The following NEW packages will be installed:
apache2 apache2-bin apache2-data apache2-mpm-prefork libaio1
libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap libdbd-mysql-perl libdbi-perl libhtml-template-perl
libterm-readkey-perl mysql-client-5.5 mysql-client-core-5.5 mysql-server
mysql-server-5.5 mysql-server-core-5.5 php5-cli php5-common php5-json
php5-mysql php5-readline
0 upgraded, 24 newly installed, 0 to remove and 130 not upgraded.
Need to get 14,6 MB of archives.
After this operation, 119 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Press Y to start the installation. During installation you will be asked to create new password for MySQL root user.  Wait until the installation process finished. Next, open your web browser and type http://localhost. It should display the Apache2 default page.

lamp server

Tags: , , , ,

Category: Elementary OS

Leave a Reply