Skip to content

Instantly share code, notes, and snippets.

@timkinnane
Created April 7, 2013 23:36
Show Gist options
  • Save timkinnane/5333106 to your computer and use it in GitHub Desktop.
Save timkinnane/5333106 to your computer and use it in GitHub Desktop.
Wordpress, install via ssh
# First connect to host via SSH - cd to public_html or httpdocs
# Download latest WP to host (zip or tar.gz)
wget http://wordpress.org/latest.tar.gz
# Extract it
tar xzvf latest.tar.gz
# Move it out of 'wordpress' directory
mv wordpress/* ~/public_html
# Clean up files
rm -R wordpress
rm latest.tar.gz
# I usually stop here and do the rest through CPanel.
# Create database
mysql -uusername -ppassword
create database dbname
grant usage on *.* to username@localhost identified by 'password'
grant all privileges on dbname.* to username@localhost
mysql -uusername -ppassword dbname
# Use and update sample wp-config
mv wp-config-sample.php wp-config.php
vi ./wp-config.php
# Finish by visiting URL and going through WP install steps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment