Skip to content

Instantly share code, notes, and snippets.

View rick4470's full-sized avatar

Rick rick4470

View GitHub Profile
scp genesis.zip username@awesome-site.com:/var/www/portfolio/wp-content/themes
unzip genesis.zip
sudo a2ensite portfolio.conf
sudo systemctl restart apache2
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
$ cd /etc/apache2/sites-available
$ sudo a2dissite 000-default.conf
$ sudo cp 000-default.conf portfolio.conf
$ sudo vim portfolio.conf
rick@ubuntu:/var/www/portfolio$ vim wp-config.php
define('FS_METHOD', 'direct');
rick@ubuntu:/var/www/portfolio$ vim wp-config.php
define('AUTH_KEY', '%!gp6v$JC4vPn<NjFfyUxT?]y9P3/`Xfz20v/@}6v]`lN~?v:Z`hc%OI+f`sY-e*');
define('SECURE_AUTH_KEY', 'C,c/#ke]7cF70:^uokvY8x]vR|3sH=,]M:^9kp#P>Fa>|SHzSU38u9AEHp$|D(Cp');
define('LOGGED_IN_KEY', 'P8Gsn7-ibrFoi%; |I&@#F)cWS_++Mb_Hp) +~-hQF%,236{b}Uy(?(=-MLjoZ:Q');
define('NONCE_KEY', 'k{db&XBrs-K]|0h~l<s)#T6XnNC7uC.1gB}02{KM9n}J;aL3/osBFP4)m^.`I}zV');
define('AUTH_SALT', '7)MTCl-h-H4:+G~<!_:|C-*LNA:swN0RZ3fR>VXkfZ+)gd$(>[k$aBz(CNsOz)( ');
define('SECURE_AUTH_SALT', 'DKGk:j(bK2%v[h6f4{#O#?a+`(9P3J2xybn6!Jy_J:-,Ohc2MF}V_Ajl^?Hn3(/d');
define('LOGGED_IN_SALT', '9iSc%$Z`#HjS^gqVrM`zRhcsU)#gN.fT||qI}t[H7,LX)|^gvWAdN5^<#1)36i-O');
define('NONCE_SALT', 'hvQOf|7]o]G[b!.4!XobhkzAqcaCsW`zgwo|i+g#cW7E05x*neowlyI~a|0iR$dp');
rick@ubuntu:/var/www/portfolio$ vim wp-config.php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'portfolio');
/** MySQL database username */
define('DB_USER', 'portfolio-admin');
/** MySQL database password */
@rick4470
rick4470 / gist:b7281b0f80aa8129b9a8d6a326e40677
Created April 7, 2017 17:48
WordPress Generate API SALT
wget -qO- https://api.wordpress.org/secret-key/1.1/salt/
cd /var/www/portfolio/
sudo chown -R $USER:www-data .
sudo chmod -R g+w wp-content/