==================================================================================== === Установка и настройка: === ==================================================================================== == https://www.digitalocean.com/community/tutorials/wordpress-lamp-ubuntu-16-04-ru == # apt-get install ca-certificates apt-transport-https wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/php.list apt-get install apache2 mysql-server php7.2 php7.2-mysql cd /tmp wget https://wordpress.org/latest.zip tar -xvzf latest.tar.gz mysql -u root -p CREATE DATABASE wordpressdb; GRANT ALL PRIVILEGES ON wordpressdb.* TO “wordpressuser”@”localhost” IDENTIFIED BY “password”; FLUSH PRIVILEGES; EXIT; cd wordpress cp wp-config-sample.php wp-config.php vi wp-config.php define(‘DB_NAME’, ‘wordpressdb’); define(‘DB_USER’, ‘wordpressuser’); define(‘DB_PASSWORD’, ‘password’); define(‘DB_HOST’, ‘localhost’); define(‘DB_CHARSET’, ‘utf8’); define(‘DB_COLLATE’, ”); cd .. sudo mv wordpress /usr/share sudo chown -R www-data:www-data wordpress cd /etc/apache2/conf-available vi wordpress.conf Alias /wordpress /usr/share/wordpress a2enconf wordpress.conf sudo /etc/init.d/apache2 restart ==================================================================================== === How to secure wordpress: === ==================================================================================== # vi /var/www/wordpress/wp-includes/functions.php function wpbeginner_remove_version() { return ”; } add_filter(‘the_generator’, ‘wpbeginner_remove_version’); ==================================================================================== === Нюансы настройки wordpress: === ==================================================================================== == Владельцем каталога WordPress должен быть пользователь web-сервера (www-data, например). ==