Install new wordpress

Create your own database. Connect to the MySQL console with this command.

1
mysql -u root -p

After you type the password, you can start to create the database. Of course you can change the name of the database and the user.

1
2
3
4
CREATE DATABASE wordpress;
CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';
FLUSH PRIVILEGES;

FINALLY it’s time to install WordPress inside the /raid/srv/vhosts/domain.tattva.se/http folder.

1
2
3
4
cd /srv/http
wget https://wordpress.org/latest.tar.gz
tar xvzf latest.tar.gz
mv wordpress/* .
rmdir wordpress

Now you have to change the ownership of the folder wordpress to the http group.

1
chown -R root:http /srv/http/wordpress

The last step is to create the WordPress config file starting from the default one.

1
cp wp-config-sample.php wp-config.php

All you have to do is opening the file

1
emscs wp-config.php

and set the name of the database, the user and the password.

1
2
3
4
5
6
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'wpuser');
/** MySQL database password */
define('DB_PASSWORD', 'password');

Now everything is done. To check if it is true, open the broswer and go to http://localhost/wordpress and you should see a page like this.

image

Now you can go through the classic setup of WordPress. Enjoy it!

 

from: https://medium.com/@marcogomiero/how-to-install-wordpress-on-arch-linux-23db216fd0a7

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *