Skip to content

Instantly share code, notes, and snippets.


Rick rick4470

View GitHub Profile
View gist:f13b51af4f7d253a06ea87efb233f663
View .xml
<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.
View gist:6323ae83b71c814b600b4f66891cc643
$ cd /etc/apache2/sites-available
$ sudo a2dissite 000-default.conf
$ sudo cp 000-default.conf portfolio.conf
$ sudo vim portfolio.conf
View gist:fc052c0216da2a862f87c4f4f5402257
rick@ubuntu:/var/www/portfolio$ vim wp-config.php
define('FS_METHOD', 'direct');
View gist:6669d2cf088061c1228ddb81f557522f
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');
View gist:abb0c30c56b350989c3188a9c4ff60c8
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 */
View gist:b7281b0f80aa8129b9a8d6a326e40677
wget -qO-
View gist:6c2f517b2b52213d7e2f97e350a284d1
cd /var/www/portfolio/
sudo chown -R $USER:www-data .
sudo chmod -R g+w wp-content/