A
A
Alexander Vinogradov2018-02-20 23:02:57
Nginx
Alexander Vinogradov, 2018-02-20 23:02:57

How to set up VDS using only nginx?

Strongly do not scold, tk. in this I am like a blind man in a dark room.
There is a VDS. Worth CentOS. Task: set up and launch an existing site on wordpress, and later launch a new site on django.
As I understand it, you need to install nginx, mysql, phpmyadmin, php72, and probably something else.
Decided to use php version 7.2 only. Why? Well, what would be new.
Used the instruction from https://tecadmin.net/install-php-7-on-centos/ to install php version 7.2. But before that, I used another instruction ( https://rpms.remirepo.net/wizard/ ), where php72 was installed. I feel like there's rubbish somewhere. Those. now there is
php --version
PHP 7.2.2 (cli) (built: Jan 30 2018 13:44:49) (NTS)
and
php72 --version
PHP 7.2.2 (cli) (built: Jan 30 2018 12:47:44) ( NTS )
Confusing that there is php and php72.
The question is.
Is there a good instruction for setting up vds using ngin without apache and php 72? and also without using any admin panels? I want to do everything consciously.
As well as instructions on how to run a site on WordPress and Django.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Vinogradov, 2018-02-22
@ruchej

I was prompted by a resource where there are not bad descriptions for setting up VDS.
Here is one of the pages describing the firewall settings.
But here the author disables firewalld in CentOS and uses iptables, which is familiar to him.
Also results a script for iptables. I made such a script and closed my access via ssh.
I decided to leave firewalld. I changed the port for ssh, disabled the dhcpv6-client service, according to the recommendations (though I don’t know why to disable it). Turned on the http service so that the site would work. Before that, the page was not available by IP.
But I wanted to ask. On this page, the author uses iptables and applies his own rules so that nothing extra loads the server. And the question is this: if I leave firewalld, then how to make the same settings so that the server is as secure as possible?

D
Dimonchik, 2018-02-20
@dimonchik2013

https://www.digitalocean.com/community/tutorials/h...
https://www.digitalocean.com/community/tutorials/h...

S
Sanes, 2018-02-21
@Sanes

https://bitbucket.org/Drobkov/userplus-webserver-ubuntu

V
Vladimir Skibin, 2018-02-21
@megafax

Regarding nginx settings, here is another good resource
https://nginxconfig.io/?https&cdn&wordpress&file_s...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question