1cd /path/to/wordpress/docroot 2wp-cli db export ../backups/example.org_prodDB-icasimpan-2019.02.07.sql 34## On new SITE (example.net) 5cd /path/to/new-wordpress/docroot 6## update 'wp-config.php' if needed 7wp-cli db clean 8wp-cli db import …
Read More1Warning: file_put_contents(C:/inetpub/sites/example-wimp13/wp-includes/fields_map.parsed_types.php): failed to open stream: Permission denied in C:\inetpub\sites\example-wimp13\wp-includes\fields_map.php on line 202 2Warning: include(C:\inetpub\sites\error_page.php): failed to open stream: No such file or directory in …
Read More1curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar 2php wp-cli.phar --info ## check if it's working. 3chmod +x wp-cli.phar 4sudo mv wp-cli.phar /usr/local/bin/wp 5wp --info ## re-check if it's working as 'wp' Details in https://wp-cli.org/
Read MoreNormal behavior of Wordpress when installing plugin is to ask for FTP credentials. So to fix the problem, just add this line to wp-config.php (of course, make sure permission are fine). 1define('FS_METHOD','direct'); More troubleshooting details in …
Read MoreThe easiest is to add it to "wp-config.php". Something like: 1define('WP_HOME','http://NEW_DOMAIN.com/'); 2define('WP_SITEURL','http://NEW_DOMAIN.com/'); You can test it in curl and see if it works: 1curl -IL http://NEW_DOMAIN.com URL change can be done via wp-cli. Do the …
Read More