site update

This command is supported by EasyEngine 2.2.0 and above version only.
This command will update sites websites created using EasyEngine 2.0.0 and next versions

Policies EasyEngine use before updating any site

ee site update command follows following procedure while updating current site.

Before Updating any site easyengine

  • Creates nginx configuration backup for site.
  • Moves htdocs to backup while updating html/php/mysql site.
  • Creates database dump in backup.
  • While updating current mysql site easyengine uses same database for installing wordpress tables.
  • All these backup are stored outside htdocs, in backup directory.

Update WordPress User Password

ee site update example.com --password

Sample Output :

[email protected]:~# ee site update example.com --password
Provide WordPress user name [admin]: admin
Provide password for admin user:

Update Site

Update Non WordPress Sites to WordPress sites

Update html/php/mysql site created with easyengine( refer ee site create command) to WordPress site.
Update example.com to wordpress site

ee site update example.com --wp

Sample Output :

[email protected]:~# ee site update example.com --wp
Adding Ondrej PHP5 launchpad repository, please wait...
Executing apt-get update, please wait...
Installing PHP, please wait...
Reading package lists...
Building dependency tree...
.
.
.

Backup webroot at /var/www/example.com/backup/htdocs/10Oct2014064549/, please wait...
Backup NGINX configuration at /var/www/example.com/backup/nginx/10Oct2014064549/, please wait...
Updating example.com, please wait ...
Downloading WordPress, please wait...
Setting up WordPress, please wait...
Updating WordPress permalink, please wait...
Installing Nginx Helper plugin, please wait...

ADVERTISEMENT
WordPress Admin Username: admin WordPress Admin Password: SMGASpsPAdR9cXg Changing ownership of /var/www/example.com, please wait... Executing service nginx reload, please wait... Git commit on /etc/nginx/, please wait... Successfully Updated Website: http://example.com

Update cache type for WordPress Sites

Update cache type for currently WordPress Sites created with easyengine (refer ee site create command.

ee site update example.com --wp --wpfc

Sample Output :

[email protected]:~# ee site update example.com --wp --wpfc
Backup NGINX configuration at /var/www/example.com/backup/nginx/10Oct2014065345/, please wait...
Backup Database example_com at /var/www/example.com/backup/db/10Oct2014065345/, please wait...
Updating example.com, please wait ...
Installing W3 Total Cache plugin, please wait...
Changing ownership of /var/www/example.com, please wait...
Executing service nginx reload, please wait...
Git commit on /etc/nginx/, please wait...
Successfully Updated Website: http://example.com

Update WordPress Single site to WordPress Multisite

Update currently WordPress single site created with easyengine ( refer ee site create command )to WordPress Multisite.

ee site update example.com --wpsubdir

Sample Output :

[email protected]:~# ee site update example.com --wpsubdir
Backup NGINX configuration at /var/www/example.com/backup/nginx/10Oct2014065728/, please wait...
Backup Database example_com at /var/www/example.com/backup/db/10Oct2014065728/, please wait...
Updating example.com, please wait ...
Uninstalling W3 Total Cache plugin, please wait...
Changing ownership of /var/www/example.com, please wait...
Executing service nginx reload, please wait...
Git commit on /etc/nginx/, please wait...
Successfully Updated Website: http://example.com

Similarly, you can use these commands.

ee site update example.com --wp --wpfc
ee site update example.com --wp --w3tc
ee site update example.com --wp --wpsc
ee site update example.com --wpsubdir
ee site update example.com --wpsubdir --wpfc
ee site update example.com --wpsubdir --w3tc
ee site update example.com --wpsubdir --wpsc
ee site update example.com --wpsubdomain
ee site update example.com --wpsubdomain --wpfc
ee site update example.com --wpsubdomain --w3tc
ee site update example.com --wpsubdomain --wpsc

Leave a Reply