Trick to Install WordPress on Digital Ocean VPS in 2 minutes !

Digital Ocean

0 Comments

Setting up WordPress on a nginx server is not an easy task for everyone. I have spent many hours trying to configure wordpress to work with nginx. But after few days of searching i came across easyengine. It made my life a lot easier by making it easy to setup a LEMP server and install wordpress

EasyEngine

EasyEngine is a Linux shell script which allows you to install manage WordPress with NGINX , all automatically and easily. It supported on Ubuntu and Debian Linux Distributions.

Check out our latest Digital Ocean Promo Codes to save on Digital Ocean Pricing.

Features of EasyEngine :

  • Single and multi-site support and It can manage any number of WordPress websites.
  • Supports automatic updates.
  • It installs w3-total-cache, wp-super-cache, Nginx’s FastCGI-cache, Zend Opcache, and Memcache.

Steps to install

Run the following command to install EasyEngine from Terminal

curl -sL rt.cx/ee | sudo bash

After  running the command output looks like

Executing apt-get update, please wait... Creating EasyEngine (ee) log directory, please wait... Installing required packages, please wait... Reading package lists... Building dependency tree... Reading state information... bc is already the newest version. coreutils is already the newest version. curl is already the newest version. ed is already the newest version. tar is already the newest version. wget is already the newest version. The following extra packages will be installed: fontconfig fontconfig-config fonts-dejavu-core fonts-liberation git git-man libcairo2 libcdt5 libcgraph6 libdatrie1 liberror-perl libfontconfig1 libgd3 libgraphite2-3 libgvc6 libgvpr2 libharfbuzz0b libice6 libjbig0 libjpeg-turbo8 libjpeg8 libltdl7 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpathplan4 libpixman-1-0 libsm6 libthai-data libthai0 libtiff5 libvpx1 libxaw7 libxcb-render0 libxcb-shm0 libxmu6 libxpm4 libxrender1 libxt6 python-pycurl x11-common Suggested packages: git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-bzr git-cvs git-mediawiki git-svn gsfonts graphviz-doc libgd-tools ttf-baekmuk ttf-arphic-gbsn00lp ttf-arphic-bsmi00lp ttf-arphic-gkai00mp ttf-arphic-bkai00mp libcurl4-gnutls-dev python-pycurl-dbg The following NEW packages will be installed: fontconfig fontconfig-config fonts-dejavu-core fonts-liberation git git-core git-man graphviz libcairo2 libcdt5 libcgraph6 libdatrie1 liberror-perl libfontconfig1 libgd3 libgraphite2-3 libgvc6 libgvpr2 libharfbuzz0b libice6 libjbig0 libjpeg-turbo8 libjpeg8 libltdl7 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpathplan4 libpixman-1-0 libsm6 libthai-data libthai0 libtiff5 libvpx1 libxaw7 libxcb-render0 libxcb-shm0 libxmu6 libxpm4 libxrender1 libxt6 python-pycurl python-software-properties x11-common 0 upgraded, 44 newly installed, 0 to remove and 47 not upgraded. Need to get 9,716 kB of archives. After this operation, 43.4 MB of additional disk space will be used. Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty/main fonts-dejavu-core all 2.34-1ubuntu1 [1,024 kB] Get:2 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main fontconfig-config all 2.11.0-0ubuntu4.1 [47.4 kB] Get:3 http://in.archive.ubuntu.com/ubuntu/ trusty-updates/main libfontconfig1 i386 2.11.0-0ubuntu4.1 [124 kB] [...] . . . . [...] EasyEngine (ee) required your name & email address to track changes you made under the Git version control EasyEngine (ee) will be able to send you daily reports & alerts in upcoming version EasyEngine (ee) will NEVER send your information across For EasyEngine (ee) auto completion, run the following command source /etc/bash_completion.d/ee EasyEngine (ee) installed successfully EasyEngine (ee) help: https://rtcamp.com/easyengine/docs/

For EasyEngine auto-completion, run the following command

source /etc/bash_completion.d/ee

The following command will install Nginx, PHP, MySQL, and postfix.

sudo ee stack install

Now Nginx, PHP, PHPMyAdmin, admin, PHPMyAdmin have been installed.
You can access the test page by navigating to the URL: http://ip-address or http://localhost.

WordPress

For example, to create a WordPress site enter the following command.

sudo ee site create unixmen.local --wp

After  running the command output looks like

Creating unixmen.local, please wait...
Creating symbolic link for unixmen.local
Creating htdocs & logs directory
Downloading WordPress, please wait...
Setting up WordPress, please wait...
Updating WordPress permalink, please wait...
Installing Nginx Helper plugin, please wait...
Changing ownership of /var/www/unixmen.local, please wait...
Git commit on /etc/nginx/, please wait...
Executing service nginx reload, please wait...
WordPress Admin Username: admin
WordPress Admin Password: zVMW3gfrXtbI9ii
Successfully created new website: http://unixmen.local

Now, WordPress site has been created in less than 5 minutes

To find the MySQL server root user password, use the following command

sudo cat ~/.my.cnf

For WordPress site-specific username and password, check the WordPress site’s wp-config.php file.

List of EasyEngine commands to create WordPress

Standard WordPress Sites:

ee site create example.com --wp # install wordpress without any page caching ee site create example.com --w3tc # install wordpress with w3-total-cache plugin ee site create example.com --wpsc # install wordpress with wp-super-cache plugin ee site create example.com --wpfc # install wordpress + nginx fastcgi_cache

WordPress Multisite with subdirectory:

ee site create example.com --wpsubdir # install wpmu-subdirectory without any page caching ee site create example.com --wpsubdir --w3tc # install wpmu-subdirectory with w3-total-cache plugin ee site create example.com --wpsubdir --wpsc # install wpmu-subdirectory with wp-super-cache plugin ee site create example.com --wpsubdir --wpfc # install wpmu-subdirectory + nginx fastcgi_cache

WordPress Multisite with subdomain:

ee site create example.com --wpsubdom # install wpmu-subdomain without any page caching ee site create example.com --wpsubdom --w3tc # install wpmu-subdomain with w3-total-cache plugin ee site create example.com --wpsubdom --wpsc # install wpmu-subdomain with wp-super-cache plugin ee site create example.com --wpsubdom --wpfc # install wpmu-subdomain + nginx fastcgi_cache

Conclusion

Installing and deploying WordPress sites is very convenient with Easy Engine, it makes this complicated work easy. Use Easyengine on your DigitalOcean Servers to save time on server setup and WordPress installation. You don’t need to be an advanced user to install and WordPress and non-WordPress websites.

Do share this post if it helped you 🙂 Let us know your opinion in the comments section below.

 

Leave a Comment

 

 
Show Buttons
Hide Buttons