Wordpres Ubuntu 18 install

How to Install WordPress on Ubuntu 18.04 Bionic Beaver

sudo apt install tasksel
sudo tasksel install lamp-server

$ mysql_secure_installation

$ sudo ufw allow in «Apache Full»

The default LAMP stack comes pre-installed with basic PHP modules. There are many additional PHP modules available $ apt-cache search ^php- | grep module. First, obtain a PHP module package name and then install it using:
sudo apt install MODULE_NAME_HERE

sudo apt-get update
sudo apt-get install mysql-server

Create A Database
mysql -u root -p
CREATE DATABASE wordpress;
CREATE USER wp_admin@localhost IDENTIFIED BY ‘3#22S314r119’;
GRANT ALL ON wordpress.* TO wp_admin@localhost;
FLUSH PRIVILEGES;
exit
Get WordPress
cd /var/www
wget https://wordpress.org/latest.tar.gz
tar xpf latest.tar.gz

Apache

cd /tmp && wget https://wordpress.org/latest.tar.gz
tar -xvf latest.tar.gz
sudo chown -R www-data:www-data wordpress
sudo chmod -R 755 wordpress
sudo mv wordpress /var/www/html/

sudo nano /etc/apache2/sites-available/wordpress.conf

sudo a2ensite wordpress.conf
sudo a2enmod rewrite
sudo systemctl restart apache2

http://ip-address/wordpress

cp -rp /var/www/html/wordpress/* /var/www/html/

database name:wordpress
login:wp_admin
pass:3#22S314r119
server:localhost
prefix: wp_

Смена адреса админки

Как изменить адрес сайта WordPress: техническая задача без SEO

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

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