What is LAMP?
LAMP is a group of software for web service. It stands for Linux, Apache, MySQL and PHP.
Step 1 : Install Apache Web Server.
Open terminal on your Ubuntu and type following commands to install Apache server.
Sudo command need your super user password.
$ sudo apt-get install apache2 [sudo] password for user: Enter your super user password. Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap Suggested packages: apache2-doc apache2-suexec apache2-suexec-custom The following NEW packages will be installed: apache2 apache2-mpm-worker apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap 0 upgraded, 9 newly installed, 0 to remove and 0 not upgraded. Need to get 1,833 kB of archives. After this operation, 5,223 kB of additional disk space will be used. Do you want to continue [Y/n]? Y Get:1 http://kr.archive.ubuntu.com/ubuntu/ precise/main libapr1 i386 1.4.6-1 [91.3 kB] Get:2 http://kr.archive.ubuntu.com/ubuntu/ precise/main libaprutil1 i386 1.3.12+dfsg-3 [75.4 kB] Get:3 http://kr.archive.ubuntu.com/ubuntu/ precise/main libaprutil1-dbd-sqlite3 i386 1.3.12+dfsg-3 [10.2 kB] Get:4 http://kr.archive.ubuntu.com/ubuntu/ precise/main libaprutil1-ldap i386 1.3.12+dfsg-3 [7,962 B] Get:5 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/main apache2.2-bin i386 2.2.22-1ubuntu1.7 [1,329 kB] Get:6 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/main apache2-utils i386 2.2.22-1ubuntu1.7 [88.7 kB] Get:7 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/main apache2.2-common i386 2.2.22-1ubuntu1.7 [226 kB] Get:8 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/main apache2-mpm-worker i386 2.2.22-1ubuntu1.7 [2,304 B] Get:9 http://kr.archive.ubuntu.com/ubuntu/ precise-updates/main apache2 i386 2.2.22-1ubuntu1.7 [1,488 B] Fetched 1,833 kB in 2s (882 kB/s) Selecting previously unselected package libapr1. (Reading database ... 181698 files and directories currently installed.) Unpacking libapr1 (from .../libapr1_1.4.6-1_i386.deb) ... Selecting previously unselected package libaprutil1. Unpacking libaprutil1 (from .../libaprutil1_1.3.12+dfsg-3_i386.deb) ... Selecting previously unselected package libaprutil1-dbd-sqlite3. Unpacking libaprutil1-dbd-sqlite3 (from .../libaprutil1-dbd-sqlite3_1.3.12+dfsg-3_i386.deb) ... Selecting previously unselected package libaprutil1-ldap. Unpacking libaprutil1-ldap (from .../libaprutil1-ldap_1.3.12+dfsg-3_i386.deb) ... Selecting previously unselected package apache2.2-bin. Unpacking apache2.2-bin (from .../apache2.2-bin_2.2.22-1ubuntu1.7_i386.deb) ... Selecting previously unselected package apache2-utils. Unpacking apache2-utils (from .../apache2-utils_2.2.22-1ubuntu1.7_i386.deb) ... Selecting previously unselected package apache2.2-common. Unpacking apache2.2-common (from .../apache2.2-common_2.2.22-1ubuntu1.7_i386.deb) ... Selecting previously unselected package apache2-mpm-worker. Unpacking apache2-mpm-worker (from .../apache2-mpm-worker_2.2.22-1ubuntu1.7_i386.deb) ... Selecting previously unselected package apache2. Unpacking apache2 (from .../apache2_2.2.22-1ubuntu1.7_i386.deb) ... Processing triggers for man-db ... Processing triggers for ufw ... Processing triggers for ureadahead ... ureadahead will be reprofiled on next reboot Setting up libapr1 (1.4.6-1) ... Setting up libaprutil1 (1.3.12+dfsg-3) ... Setting up libaprutil1-dbd-sqlite3 (1.3.12+dfsg-3) ... Setting up libaprutil1-ldap (1.3.12+dfsg-3) ... Setting up apache2.2-bin (2.2.22-1ubuntu1.7) ... Setting up apache2-utils (2.2.22-1ubuntu1.7) ... Setting up apache2.2-common (2.2.22-1ubuntu1.7) ... Enabling site default. Enabling module alias. Enabling module autoindex. Enabling module dir. Enabling module env. Enabling module mime. Enabling module negotiation. Enabling module setenvif. Enabling module status. Enabling module auth_basic. Enabling module deflate. Enabling module authz_default. Enabling module authz_user. Enabling module authz_groupfile. Enabling module authn_file. Enabling module authz_host. Enabling module reqtimeout. Setting up apache2-mpm-worker (2.2.22-1ubuntu1.7) ... * Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [ OK ] Setting up apache2 (2.2.22-1ubuntu1.7) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place
Step 2 : Check Apache server
As you can see, the Apache server is started after installing. So you can check whether your Apache server is working or not using following way.
Open your browser and type "Http://localhost" and you can see the "It Works" message if your Apache server works well.
You already installed Apache server on your Ubuntu. It's very easy!!!
No comments:
Post a Comment