Skip to content

Instantly share code, notes, and snippets.

@behitek
Last active February 16, 2020 04:15
Show Gist options
  • Save behitek/d5d9d066312b8d2eacbb13a3fd67ec3a to your computer and use it in GitHub Desktop.
Save behitek/d5d9d066312b8d2eacbb13a3fd67ec3a to your computer and use it in GitHub Desktop.

global varible

domain=example.com

install eev4

wget -qO ee https://rt.cx/ee4 && sudo bash ee

site create

ee site create $domain --type=wp --cache --ssl=le --dbprefix=wpr0_

enable admin tools

ee admin-tools enable $domain
ee auth list global
// Go to => https://domain.com/ee-admin/pma
// delete all tables

restore db

docker ps # list docker container
docker exec -i CONTAINER mysql -u<user> -p<pass> --database=dbname < dump.sql

update wp-content

cd /opt/easyengine/sites/example.com/app/htdocs
mv wp-content wp-content-ee
cp -r /path/wp-content/ .
chown -R www-data:www-data wp-content

Update site url

// Go to => https://example.com/ee-admin/pma
// Edit site_url and home in wp_options table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment