Install LEMP on Ubuntu Trusty Tahr

Install LEMP on Ubuntu Trusty Tahr

One of the most popular faces of Ubuntu is its development and dedication to the world of servers and the business world. Within this, in addition to having a version dedicated exclusively to the world of servers, Ubuntu is integrating and updating a lot of software that is used for the business world and for the network professional and this has repercussions in one way or another on users end who want to develop a website or enable a home server. The most used option for these last users is the installation of a LAMP server in our Ubuntu. The installation of a LAMP server is very common in the latest versions of Ubuntu, perhaps because if its installation is difficult, it would not be used in professional servers. But How do you install a LEMP server? What is a LEMP server? Can I have a LAMP and LEMP server on the same machine? Read on and you will discover answers to these questions.

What is a LEMP server?

For those of you who know the LAMP servers, you know that they are abbreviations of the software that the server carries, in the case of LAMP es Linux, Apache, Mysql and Php or Python. That is, an operating system (Linux), a server management software (Apache), a database (Mysql) and a server language (Php or Python). PML It would thus be a variation of the software package that LAMP brings, thus, LEMP it would be Linux, EngineX (Nginx), Maríadb or Mysql and Php or Python. The only variation with respect to LAMP is that LEMP uses Nginx and not Apache as the software in charge of managing the server, which for newbies, comment that it is a big change. At this point, could I have LAMP and LEMP on the same server? By power you could have it, however in a few sessions if not in the first, the server would collapse since there are two server managers. Thus, it is best to opt for one or the other.

In recent months, Nginx seems to be the most desired option in the commercial field, so the LEMP solution seems to be the future, but How do you install?

Installing a LEMP server

The most comfortable method to install a server, either LAMP or LEMP is by keyboard and terminal, so we open the terminal and write:

sudo apt-get install nginx

Nginx is already in the official repositories, so no problem. Now we stop, turn on and restart the Nginx server so that Ubuntu begins to recognize it and introduce it at its start, so we write:

sudo service nginx stop

sudo service nginx start

sudo service nginx restart

sudo update-rc.d nginx defaults

And if this works, you should see a message similar to this:

System start / stop links for /etc/init.d/nginx already exist.

Now we have to install the rest of the LEMP server tools. We will continue with Php, although there is the option to install Python, for web development they tend to opt for php although both are just as good.

sudo apt-get install php5 php5-cgi spawn-fcgi

sudo service nginx restart

And finally we install the database, we can choose between MariaDB and Mysql, they are practically the same, with the difference that it is used by the community while the Mysql is from a company. In this case we install Mysql for not having complications later, but either of the two options can be valid

sudo apt-get install mysql-server mysql-client php5-mysql phpmyadmin

sudo service nginx restart

This last package is in charge of managing our database through the browser. Now our computer and our Ubuntu 14.04 are ready to function as a server. Remember that to check that it works we have to type in the browser localhost and we will see a screen in which the letters Its Works! In addition, to see the webs that we create, we have to save it in the / var / www folder of our system. Now to enjoy Ubuntu Trusty and LEMP!


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   omar red said

    very good first congratulations for the contribution, nginx can make a virtual host? , This LEMP server is recommended for a development that takes more time to do it? I understand that it depends on the technology you use and the resources that one has, I mean that it would be more advisable to use NGINX instead of APACHE? Does it present more contributions than Apache or is it just another option?
    thanks for your attention
    postscript
    I ask you this question because I have heard out there that in some places a development environment is not set up with xampp, mamp or lampp that it was another more professional environment according to them and that it was more advanced, I have worked all my life with xampp and I had not found many defects but for a larger development environment I have not tested how xampp behaves, but I suppose nginx I mean LEMP is a little more "advanced" you could say

    Thank you
    regards
    Omar rojas
    (Y)