https://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress
sudo a2dissite 000-defaulthttps://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress
sudo a2dissite 000-defaulthttps://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress
sudo -u www-data sed -i 's/database_name_here/wordpress/' /srv/www/wordpress/wp-config.php
sudo -u www-data sed -i 's/username_here/wordpress/' /srv/www/wordpress/wp-config.php
sudo -u www-data sed -i 's/password_here/<your-password>/' /srv/www/wordpress/wp-config.phphttps://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress
sudo a2ensite wordpresshttps://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress
$ sudo mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.7.20-0ubuntu0.16.04.1 (Ubuntu)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> CREATE DATABASE wordpress;
Query OK, 1 row affected (0,00 sec)
mysql> CREATE USER wordpress@localhost IDENTIFIED BY '<your-password>';
Query OK, 1 row affected (0,00 sec)
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER
    -> ON wordpress.*
    -> TO wordpress@localhost;
Query OK, 1 row affected (0,00 sec)
mysql> FLUSH PRIVILEGES;
Query OK, 1 row affected (0,00 sec)
mysql> quit
Byehttps://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress
<VirtualHost *:80>
    ServerName hostname.example.com
    ... # the rest of the VHost configuration
</VirtualHost>https://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress
sudo -u www-data nano /srv/www/wordpress/wp-config.phphttps://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress
sudo mkdir -p /srv/www
sudo chown www-data: /srv/www
curl https://wordpress.org/latest.tar.gz | sudo -u www-data tar zx -C /srv/wwwhttps://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress
sudo a2enmod rewritehttps://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress
sudo -u www-data cp /srv/www/wordpress/wp-config-sample.php /srv/www/wordpress/wp-config.phphttps://ubuntu.com/tutorials/install-and-configure-wordpress#3-install-wordpress
sudo service apache2 reloadCopyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us
