Using wp cli is key to an efficient wordpress management. For command reference use the official documentation.
wp cli update
# Updates wordpress
wp core udpate
# Updates plugins
wp plugin update --all
wp plugin update <plugin name>
# Updates themes
wp theme update --all
wp theme update <theme name>
- Install wp-cli
- Run:
wp option update home 'http://example.com'
wp option update siteurl 'http://example.com'
Done!
Add in wp-config.php
define( 'WP_HOME', 'http://test.domain.cl' );
define( 'WP_SITEURL', 'http://test.domain.cl' );
https://developer.wordpress.org/cli/commands/search-replace/
Fix de permisos de carpetas desde carpeta public del sitio
Ref: https://codex.wordpress.org/Changing_File_Permissions
sudo find . -type f -exec chmod 664 {} \;
sudo find . -type d -exec chmod 775 {} \;
chmod -R 660 wp-config.php
# OR
sudo find . -type f -exec chmod 664 {} \; && sudo find . -type d -exec chmod 775 {} \; && chmod -R 660 wp-config.php