Як встановити на Ubuntu Nginx, MySQL, PHP (LEMP Stack) + WP

Install_LEMP-twitter

Nginx
sudo service apache2 stop
sudo apt-get remove apache2
sudo apt-get autoremove

sudo apt-get update
sudo apt-get install nginx

MySQL
sudo apt-get install mysql-server
sudo mysql_secure_installation

PHP
sudo apt-get install php-fpm php-mysql

Configure the PHP Processor

sudo nano /etc/php/7.0/fpm/php.ini
cgi.fix_pathinfo=0

server {
        server_name ~^(www\.)?(?<sname>.+?)$;
        root /home/eugen/www/$sname/www;
        index index.php;
        include /etc/nginx/sites-available/wp.inc.conf;
}

For local inslalations change users to you

/etc/php/7.0/fpm/pool.d/www.conf

user = eugen
group = eugen

listen.owner = eugen
listen.group = eugen

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04

Install Nginx, MySQL, PHP (LEMP) stack on Ubuntu 16.04

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *