Skip to content

Tag: how-to

Showing page 7 of 19

Automated tests for PHP version compatibility

When preparing for a PHP version update, creating automated tests can be useful for identifying incompatibilities with the updated version of PHP.

Test a PHP update on a VIP Platform environment

After application code has been scanned locally for an updated version of PHP, and identified incompatibilities have been fixed, test the performance of the updated code on a WordPress VIP Platform environment.

Install PHPCS at the project level

Installing PHPCS at the project level limits the availability of PHPCS to only from within that project directory. Following these instructions will install:

Install PHPCS globally

Installing PHPCS globally makes PHPCS available for use from anywhere on a local machine. Following these instructions will install:

Run PHPCS against code

Running a PHPCS scan against code, particularly third-party plugins and themes, can provide useful and actionable feedback on existing warnings and errors within the code.

Export a SQL file from a site not hosted at WordPress VIP

To migrate the content of a WordPress site to an environment on the WordPress VIP Platform, a SQL database file must be exported from the non-WPVIP site. Not all of the methods described on this page are available on all hosting platforms. Refer to the documentation for the existing site’s hosting platform to identify which methods are available and access more information on how to use them.

Import database files with VIP-CLI

Full or partial SQL database files can be imported to a VIP Platform WordPress environment using VIP-CLI. The vip import sql command can import a SQL database file that is located on a user’s local machine or at a remote URL.

Update domain name values

If a database file for import contains domain name values that do not match the VIP Platform destination site’s domain name, a --search-replace operation must be done before or during import.

Generate a new database backup

In addition to the automated database backups that are generated for WordPress environments, a new backup can be created on demand. Some limitations are in place to the frequency and total number of backup files that can be created within a window of time.