Guest User

Untitled

a guest
Feb 27th, 2018
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. <?php
  2. //require_once "cli.php";
  3. $output = shell_exec("wp core download");
  4. if($output == true){
  5. echo "Wordpress Downloaded.";
  6. shell_exec('wp config create --dbname=db_fine --dbuser=root --dbpass="" ');
  7. echo "Config Created.";
  8. shell_exec('wp db create');
  9. echo "Database Created.";
  10. shell_exec('wp core install --url=http://localhost/automate --title=Test --admin_user=admin --admin_password=admin@123 --admin_email=aghanizaheer@gmail.com');
  11. echo "Site Installed Successfully.";
  12. shell_exec("wp theme install http://test.nitgreen.com/wp-content/themes/test.zip --activate");
  13. echo "Theme Installed.";
  14.  
  15. 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");
  16.  
  17. echo "Plugin Install and Activated";
  18.  
  19. shell_exec("curl -O http://yovala.nitgreen.com/yovala.wordpress.2018-02-24.xml ");
  20. shell_exec("wp import yovala.wordpress.2018-02-24.xml --authors=create");
  21. //shell_exec("rm yovala.wordpress.2018-02-24.xml");
  22.  
  23.  
  24. echo "Data Imported Successfully";
  25. shell_exec("wp plugin install http://yovala.nitgreen.com/plugin-4.zip --activate");
  26. shell_exec("wp plugin activate --all");
  27. } else {
  28. echo "Something went wrong";
  29. }
Add Comment
Please, Sign In to add comment