Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //require_once "cli.php";
- $output = shell_exec("wp core download");
- if($output == true){
- echo "Wordpress Downloaded.";
- shell_exec('wp config create --dbname=db_fine --dbuser=root --dbpass="" ');
- echo "Config Created.";
- shell_exec('wp db create');
- echo "Database Created.";
- shell_exec('wp core install --url=http://localhost/automate --title=Test --admin_user=admin --admin_password=admin@123 --admin_email=aghanizaheer@gmail.com');
- echo "Site Installed Successfully.";
- shell_exec("wp theme install http://test.nitgreen.com/wp-content/themes/test.zip --activate");
- echo "Theme Installed.";
- shell_exec("wp plugin install wordpress-importer cmb2 contact-form-7 jetpack mailchimp-for-wp recent-posts-widget-extended redux-framework woocommerce woocommerce-gateway-paypal-express-checkout woocommerce-services wp-fastest-cache http://yovala.nitgreen.com/plugin-3.zip http://yovala.nitgreen.com/plugin-1.zip http://yovala.nitgreen.com/plugin-2.zip http://yovala.nitgreen.com/plugin-3.zip --activate");
- echo "Plugin Install and Activated";
- shell_exec("curl -O http://yovala.nitgreen.com/yovala.wordpress.2018-02-24.xml ");
- shell_exec("wp import yovala.wordpress.2018-02-24.xml --authors=create");
- //shell_exec("rm yovala.wordpress.2018-02-24.xml");
- echo "Data Imported Successfully";
- shell_exec("wp plugin install http://yovala.nitgreen.com/plugin-4.zip --activate");
- shell_exec("wp plugin activate --all");
- } else {
- echo "Something went wrong";
- }
Add Comment
Please, Sign In to add comment