Installing nginx on Mageia
Posted: 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:
then do a:
open a browser and go to http://localhost and you will be greeted by the nginx welcome page.
enable it for future use:
Install other needed stuff for the server:
Then start mysql:
and set it up:
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.
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 nginxthen do a:
Code: Select all
sudo systemctl start nginx.serviceopen 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.serviceInstall other needed stuff for the server:
Code: Select all
sudo urpmi php mysqlThen start mysql:
Code: Select all
sudo systemctl start mysqldand set it up:
Code: Select all
mysql_secure_installationHit 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.