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
scp genesis.zip [email protected]:/var/www/portfolio/wp-content/themes | |
unzip genesis.zip |
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
sudo a2ensite portfolio.conf |
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
sudo systemctl restart apache2 |
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
<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 |
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
$ cd /etc/apache2/sites-available | |
$ sudo a2dissite 000-default.conf | |
$ sudo cp 000-default.conf portfolio.conf | |
$ sudo vim portfolio.conf |
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
rick@ubuntu:/var/www/portfolio$ vim wp-config.php | |
define('FS_METHOD', 'direct'); |
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
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'); |
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
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 */ |
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
wget -qO- https://api.wordpress.org/secret-key/1.1/salt/ |
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
cd /var/www/portfolio/ | |
sudo chown -R $USER:www-data . | |
sudo chmod -R g+w wp-content/ |
NewerOlder