Created
June 14, 2019 18:30
-
-
Save TomiToivio/25f0a2d1b70bed5d76a5aeac948aa35b to your computer and use it in GitHub Desktop.
WordPress installation commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install some PHP libraries. | |
sudo apt-get install php-curl, php-zip, php-mbstring, php-xml, php-soap | |
# Create database for WordPress. | |
mysql -u root -p | |
CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'password'; | |
CREATE DATABASE wordpress; | |
GRANT ALL ON wordpress.* TO 'wordpress'@'localhost'; | |
# To use mod rewrite add this to your virtualhost file. | |
<Directory /var/www/html/wordpress> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Require all granted | |
</Directory> | |
# Enable rewrite | |
sudo a2endmod rewrite | |
# Restart Apache | |
sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment