Page 1 of 1

What is a LAMP server?

Posted: Mon Jul 27, 2015 9:36 pm
by genesisadams936
Hello,
Any one know about LAMP server, LAMP stack
and how to install it in server ?


Thanks.

Re: What is a LAMP server?

Posted: Tue Jul 28, 2015 4:32 pm
by andrewchristopher96
LAMP (Linux, Apache, MySQL, PHP) is an open source web development model that utilizes Linux as the (OS) operating system, Apache as the Web server, MySQL as the (RDBMS) relational database management system and PHP as the object-oriented scripting language.

LAMP stack

Because the platform has four layers, LAMP is sometimes referred to as a LAMP stack. Stacks can be built on different OS.


How to install LAMP stack

Set Up

1. Install Apache

To install Apache, open terminal and type in these commands:

sudo apt-get update
sudo apt-get install apache2


2. Install MySQL

Type these commands in open terminal:

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

Once we have installed MySQL, we should activate it with this command:

sudo mysql_install_db

Finish up by running the MySQL set up script:

sudo /usr/bin/mysql_secure_installation

The prompt will ask us for current root password.
Type it in.

Enter current password for root (enter for none):
OK, successfully used password, moving on...
Once we're done with that finish up by installing PHP.


3. Install PHP

To install PHP, open terminal and type in this command.

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

After we answer yes to the prompt twice, PHP will install itself.

PHP Modules

PHP also has a variety of useful modules that we can install onto our server. we can see the libraries that are available just type this command.

apt-cache search php5-

Once we decide to install the module, type:

sudo apt-get install name of the module

We can install multiple modules at once by separating the name of each module with a space.

Then Save and Exit.
Restart Apache so that all of the changes take effect with this command.

sudo service apache2 restart

Re: What is a LAMP server?

Posted: Sat Oct 03, 2015 10:54 pm
by woodevie
LAMP

Linux:
The operating system that the server runs. Linux is a powerful, modern UNIX-like operating system ideally suited to the Web hosting environment because of its stability, cost and excellent networking capabilities.

Apache:
the software that is used accept and process web page requests. Apache is the dominant web server software and is extremely powerful, flexible and widely used.

MySQL:
a relational database, MySQL provides a powerful and flexible way to organize, store and retrieve data.

PHP:
the popular programming language, PHP allows the creation of dynamic website applications. Sometimes the "P" in LAMP also refers to Perl or Python, two other popular web programming languages.