Guest User

Untitled

a guest
Feb 26th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. <?php
  2. $output = shell_exec("wp core download");
  3. if($output == true){
  4. shell_exec('wp config create --dbname=db_fine --dbuser=root --dbpass="" ');
  5. echo "Config Created.";
  6. shell_exec('wp db create');
  7. echo "Database Created";
  8. shell_exec('wp core install --url=http://localhost/fine --title=Fine --admin_user=admin --admin_password=admin@123 --admin_email=aghanizaheer@gmail.com');
  9. echo "Site Installed Successfully.";
  10. shell_exec("wp theme install http://yovala.nitgreen.com/wp-content/themes/xyz.zip --activate");
  11. echo "Theme Installed";
  12. shell_exec("wp plugin install akismet cmb2 contact-form-7 jetpack mailchimp-for-wp recent-posts-widget-extended redux-framework woocommerce woocommerce-gateway-paypal-express-checkout
  13. woocommerce-services wp-fastest-cache ");
  14. echo "Plugin Installed and activated.";
  15. } else {
  16. echo "Something went wrong";
  17. }
Add Comment
Please, Sign In to add comment