Site icon Milind More – WordPress Developer

Setting up WordPress.com VIP Development Environment with EasyEngine (Nginx)

Hey there, As you know VIP Quickstart has been deprecated recently. Here is some easy way to get started with VIP development, We hope soon EasyEngine will V4 launch with VIP support but for now, lets do all thing manually.
You need Ubuntu 14 / 16 LTS with sudo access also we need svn and git installed.

For Started let’s install easy engine if you don’t already have one Open Terminal

wget -qO ee rt.cx/ee && sudo bash ee # install EasyEngineCode language: PHP (php)

Next step create a multisite website

ee site create example.com --wpsubdomCode language: CSS (css)

save username and password somewhere for safekeeping, We are ready with inital setup for VIP now let’s make site real VIP 😉
The user www-data has write acess to /var/www/ folder so lets switch user with following command

sudo -su www-data

Goto htdocs folder with

cd /var/www/example.com/htdocs/Code language: JavaScript (javascript)

Let’s add VIP Plugins and Helper files

svn co https://vip-svn.wordpress.com/plugins/ wp-content/themes/vip/pluginsCode language: JavaScript (javascript)

For next step lets install some mu-plugins

git clone --recursive https://github.com/automattic/vip-wpcom-mu-plugins wp-content/mu-pluginsCode language: PHP (php)

these repos should be updated daily with `svn up` and `git pull`

If you have a theme ready for project lets put that in wp-content/themes/vip/{your-theme}. If you don’t have theme ready right now lets put one of WordPress default theme to VIP directory by simply moving that to VIP directory

mv wp-content/themes/twentysixteen/ wp-content/themes/vip/twentysixteen

Now let’s include vip-init.php to themes functions.php at the beginning of the file and check it by loading facebook instant article plugin.

require_once WP_CONTENT_DIR . '/themes/vip/plugins/vip-init.php';
wpcom_vip_load_plugin( 'facebook-instant-articles', 'plugins','3.3' );Code language: PHP (php)

Now visit http://example.com/wp-admin/ and log in by username and password generated and go to sites and activate theme in which you added vip-init.php

We are done!

Exit mobile version