Installing nginx on Mageia

Well it is a family: Mandriva Mageia ROSA Unity PCLOS. Brothers and sisters living together in perfect harmony - so it deserved som space of its own.

Moderators: b1o, jkerr82508

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Installing nginx on Mageia

Postby viking60 » 21 Nov 2016, 15:11

Since I have Mageia in VB I decided to install a LEMP server. LEMP is Linux, nginx(Engine X), Mysql, Php.

As you can see the A for Apache is gone and the reason for this is the 10k problem.

When 10000 people use your system at the same time then you are in for some heavy duty hardware investments if you use Apache.

The nginx server solves that with the server software. So here we go:
Install nginx:

Code: Select all

sudo urpmi nginx

then do a:

Code: Select all

sudo systemctl start nginx.service

open a browser and go to http://localhost and you will be greeted by the nginx welcome page.
enable it for future use:

Code: Select all

sudo systemctl enable nginx.service

Install other needed stuff for the server:

Code: Select all

sudo urpmi php mysql

Then start mysql:

Code: Select all

sudo systemctl start mysqld

and set it up:

Code: Select all

mysql_secure_installation

Hit enter once and answer yes to the rest. You will be asked to set the root password for the database which is NOT your Linux root so don't worry.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

Return to “The Mandriva family”