Easy Engine is one of the most useful tools for managing WordPress on unmanaged VPS. You can just execute a single command to add a new WordPress site, and then point your domain to the server’s IP address and everything is done. This tool uses wp-cli to install the WordPress engine, which is also a powerful tool.
I got an error when adding a new WordPress site with Easy Engine. The problem is in the wp-cli, the installed version is not compatible with WordPress 4.4.
Here’s my installation error log.
Command Output:Command Error: PHP Warning: require(/var/www/domain.com/htdocs/wp-includes/embed-functions.php): failed to open stream: No such file or directory in phar:///usr/bin/wp/php/utils-wp.php on line 62
Warning: require(/var/www/domain.com/htdocs/wp-includes/embed-functions.php): failed to open stream: No such file or directory in phar:///usr/bin/wp/php/utils-wp.php on line 62
PHP Fatal error: require(): Failed opening required '/var/www/domain.com/htdocs/wp-includes/embed-functions.php' (include_path='phar:///usr/bin/wp/vendor/phpunit/phpunit-mock-objects:phar:///usr/bin/wp/vendor/phpunit/php-token-stream:phar:///usr/bin/wp/vendor/phpunit/php-code-coverage:phar:///usr/bin/wp/vendor/phpunit/phpunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/php:/usr/share/pear') in phar:///usr/bin/wp/php/utils-wp.php on line 62
Fatal error: require(): Failed opening required '/var/www/domain.com/htdocs/wp-includes/embed-functions.php' (include_path='phar:///usr/bin/wp/vendor/phpunit/phpunit-mock-objects:phar:///usr/bin/wp/vendor/phpunit/php-token-stream:phar:///usr/bin/wp/vendor/phpunit/php-code-coverage:phar:///usr/bin/wp/vendor/phpunit/phpunit:phar:///usr/bin/wp/vendor/symfony/yaml:.:/usr/share/php:/usr/share/pear') in phar:///usr/bin/wp/php/utils-wp.php on line 62
There seems to be a problem with the embed-functions.php. : D
Here’s how to fix the error wp-cli: Update the wp-cli!
sudo wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /usr/bin/wp
That’s it.
Good luck!
Reference: https://discourse.roots.io/t/wordpress-4-4-deploy-fails-at-task-wordpress-installed/5476/3