top of page
Search
Writer's pictureHTS Hosting

The Script to Migrate Legacy WordPress to Modern WordPress

The script, /usr/local/cpanel/scripts/migrate_legacy_wordpress_to_modern_wordpress, serves the purpose of converting legacy cPAddon WordPress installations to use the RPM-based WordPress cPAddon.

Script Functions


The /usr/local/cpanel/scripts/migrate_legacy_wordpress_to_modern_wordpress script carries out the below-mentioned actions for each specified WordPress installation:


  • Scans the home directory of the cPanel account for the cPanel::Blogs::WordPress.yaml file


  • Checks that the WordPress version is higher than 3.7


  • Removes the cpaddons-site-software WordPress plugin


  • Updates the WordPress installation, so that the RPM-based WordPress cPAddon can be used


Run the Script


You need to run the following command as the root user, in order to use this script:


/usr/local/cpanel/scripts/migrate_legacy_wordpress_to_modern_wordpress [arguments] user instance


User and Installation Selection


Target the installations to convert, by using the below-mentioned arguments.


  • --all – All legacy cPAddon WordPress installations are converted by it to the RPM-based WordPress cPAddon.


  • --user – All legacy cPAddon WordPress installations for the specified cPanel accounts are converted by it to the RPM-based WordPress cPAddon.


  • --instance – A single legacy cPAddon WordPress installation for the specified cPanel account and instance is converted by it to the RPM-based WordPress cPAddon.


Other Arguments


The below-mentioned additional arguments can be used with the /usr/local/cpanel/scripts/migrate_legacy_wordpress_to_modern_wordpress script.


  • --no-color – The colorized output provided by the script is removed by it.


  • --dryrun – It reports information that has to do with the currently installed legacy WordPress installations.


  • --help – The script help documentation is returned by it.


  • --verbose – Additional information is returned by it in the output of the script.


Examples of Script


  • You need to run the following command in order to convert all legacy WordPress sites on the server:


/usr/local/cpanel/scripts/migrate_legacy_wordpress_to_modern_wordpress –all


  • You should run the below-mentioned command to convert all the legacy WordPress sites for the frank cPanel account.


/usr/local/cpanel/scripts/migrate_legacy_wordpress_to_modern_wordpress --user frank


  • Run the following command if you need to convert all the legacy WordPress sites for the frank, tommy, and jenny cPanel accounts:


/usr/local/cpanel/scripts/migrate_legacy_wordpress_to_modern_wordpress --user frank --user tommy --user jenny


  • You should run the following command to convert a specific legacy WordPress site for the frank cPanel account:


/usr/local/cpanel/scripts/migrate_legacy_wordpress_to_modern_wordpress --user frank --instance /home/frank/.cpaddons/cPanel::Blogs::WordPress.1.yaml


Before we conclude, let us digress and shed light on WordPress hosting. WordPress Hosting is a type of web hosting service, which is optimized to cater effectively to the performance and security needs of WordPress. One-click WordPress installs are typically included in it, so that it becomes easy to start using WordPress, which is a free and open-source content management system.


WordPress hosting is provided by most of the reliable and reputed web hosting service providers, such as HTS Hosting. Web hosting companies serve the purpose of ensuring that websites remain continuously accessible over the Internet. In web hosting, server space is provided to host web content. Through the services and the technologies offered by the web hosting companies, the hosted web content is made available over the Internet to those accessing the websites. This is how the service of web hosting, provided by web hosting companies, ensures the uninterrupted accessibility of websites.


Web hosting can be of many types, such as WordPress, reseller, shared, dedicated, VPS, cloud, etc. Different types of web hosting services cater to different types of hosting requirements but all of these serve the same purpose, to keep websites up and running without any interruption. Web hosting is provided through various plans, which vary in terms of features and price. The most essential features with regard to any efficient web hosting plan must include high uptime, fast page loading, powerful security, 24*7 technical support, and data backup facility, all of which are provided by HTS Hosting in all of its plans. Most importantly, for any web hosting company to earn the reputation of being the “Best Website Hosting Company”, or the “Best Windows Hosting Company”, or the “Top Cloud Hosting Company”, it needs to be well-equipped and thoroughly prepared to ensure that it is able to offer superior quality of service at affordable prices constantly.


3 views0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
bottom of page