Wordpress

From Edgar BV Wiki
Revision as of 09:00, 2 July 2019 by Red (talk | contribs)
Jump to navigation Jump to search

Installation

chown -R wp-user:www-data /var/www/example.com/
cmhod 775 /var/www/example.com/wp-content/ -R
su wp-user
cd ~
mkdir ~/.ssh; cd ~/.ssh
ssh-keygen -t rsa -b 4096
echo 'from="127.0.0.1"' `cat ~/.ssh/id_rsa.pub` > authorized_keys
exit
cp wp-config-sample.php wp-config.php
chown 775 wp-config.php
vi wp-config.php

----- add to end ----

define('FTP_PUBKEY','/home/wp-user/id_rsa.pub');
define('FTP_PRIVKEY','/home/wp-user/id_rsa');
define('FTP_USER','wp-user');
define('FTP_PASS','');
define('FTP_HOST','localhost');

------

Also, set DB_NAME, DB_USER and DB_PASSWORD

Visit https://api.wordpress.org/secret-key/1.1/salt/
And replace the AUTH_KEY etc with this

Now visit the site


To enable ssh2 updating

  apt-get install php-ssh2