Skip to content

Instantly share code, notes, and snippets.

@TomiToivio
Created June 14, 2019 18:30
Show Gist options
  • Save TomiToivio/25f0a2d1b70bed5d76a5aeac948aa35b to your computer and use it in GitHub Desktop.
Save TomiToivio/25f0a2d1b70bed5d76a5aeac948aa35b to your computer and use it in GitHub Desktop.
WordPress installation commands
# 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