Skip to content

Menu
  • Home
  • Linux Hosting
  • WordPress
  • PHP
  • cPanel
  • Digital Marketing
  • Linux Reseller Hosting
  • VPS
  • Dedicated Server
  • Tutorials
  • Website Development
  • Client Area
December 24, 2019
HomeTutorialsHow To Automatically Install WordPress On New Accounts? [EASY GUIDE]☑️

How To Automatically Install WordPress On New Accounts? [EASY GUIDE]☑️

By Ritnesh Rai Tutorials, Web Hosting, WHM, Wordpress  0 Comments

How To Automatically Install WordPress On New Accounts? [EASY GUIDE]☑️

Today in this tutorial you will learn how to install WordPress automatically on new hosting accounts. If you are looking to provide WordPress specific hosting, one of the basic requirements that you’ll need to fulfill is ensuring that WordPress is instantly installed and available upon account creation. But before getting started let us quick watch this video to learn how install WordPress automatically on new hosting accounts.

Follow the steps given below to Install the WordPress cPAddon via WHM:

Step::1 Login to your WHM

Step::2 Navigate to the cPanel option on the Homepage

How To Automatically Install WordPress On New Accounts
How To Automatically Install WordPress On New Accounts

Step::3 Click on Install cPAddons Site Software

How To Automatically Install WordPress On New Accounts
How To Automatically Install WordPress On New Accounts

Step::4 Select the WordPress column and click on Update cPAddon Config

How To Automatically Install WordPress On New Accounts
How To Automatically Install WordPress On New Accounts

Step::5 Now login to FileZilla/WinSCP to create a new file “wpAutoinstall.sh” at /usr/local/cpanel/3rdparty/bin/ and Copy the script given below and paste it in the file

#!/bin/bash
tmpfile="$(mktemp -p /tmp wp-auto-install-XXXXXXXX)"
cat "${1:-/dev/stdin}" > $tmpfile
cpanelusername=$(python -c "import sys, json; print json.load(open('$tmpfile'))['data']['user']")
domain=$(python -c "import sys, json; print json.load(open('$tmpfile'))['data']['domain']")
cpanelpass=$(python -c "import sys, json; print json.load(open('$tmpfile'))['data']['pass']")
rm -f $tmpfile
wppass=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-20};echo;)
wpuser=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-8};echo;)
#urlencoding
wppass=$(php -r "echo urlencode('${wppass}');")
wpuser=$(php -r "echo urlencode('${wpuser}');")
wpemail=$(php -r "echo urlencode('root@localhost.tld');")
blogname=$(php -r "echo urlencode('Defalt Blog Name');")
blogdesc=$(php -r "echo urlencode('Defalt Description');")
curl -s -O /dev/null --insecure -u "$cpanelusername:$cpanelpass" "https://localhost:2083/frontend/paper_lantern/addoncgi/cpaddons.html.tt?addon=cPanel%3A%3ABlogs%3A%3AWordPressX&action=install&debug=0&verbose=0&oneclick=0&subdomain=${domain}&installdir=/&auser=${wpuser}&apass=${wppass}&apass2=${wppass}&email=${wpemail}&1blog_name=${blogname}&2blog_description=${blogdesc}&table_prefix=wp&existing_mysql="

 

You can even create and edit this file via SSH or with ConfigServer Explorer through WHM.

That’s it!!!

For more information, kindly follow us on social media like Twitter and Facebook and for video tutorials, subscribe to our YouTube channel –https://youtube.com/redserverhost.com

Facebook Page- https://facebook.com/redserverhost

Twitter Page- https://twitter.com/redserverhost.com

If you have any query, feel free to let us know via the comments section below.

Thanks for Reading!!!

Tags: cheap linux hosting, buy linux hosting, cheap reseller hosting, buy reseller hosting, best reseller hosting, cheap web hosting, cheapest web hosting, cheapest reseller hosting,  cheap reseller host, cheap linux host, cheapest linux hosting, best linux hosting, best web hosting

Tags:How To Automatically Install WordPress On New Accounts, install WordPress automatically on new hosting accounts, installing wordpress on new hosting account

Related Posts

How to enable PDO PHP extension for all PHP versions in cPanel/WHM?

Change Current Hostname in WHM Feature Image

‘Change Hostname’ Feature in WHM Root

How to Check Linux Kernal version through cPanel

How to Check Linux Kernal version through cPanel? [EASY GUIDE]☑️

Search

Our Recent Posts

  • Website Down! Are you not able to access a particular website on your PC?
  • How to Manage Customer Addresses in AbanteCart?
  • How to Fix “Add New Plugin Menu Not Showing” In WordPress?
  • How to Add YouTube Subscribe button to your WordPress website?
  • How to Disable WordPress Plugins from Database?

Categories

Search

Red Server Host Copyright © 2023.
Powered by Skillvent Technologies Pvt. Ltd. . Back to Top ↑