git submodule update --init --recursive
).mysqldump -u <user> -p <db_source> | gzip > dump.sql.gz
gunzip < dump.sql.gz | mysql -u <user> -p <db_target>
wp search-replace 'https://ancien‑site.tld' 'https://nouveau‑site.tld' --all-tables
mysql -h localhost -P 3006 -u exampleuser -p --protocol=tcp
wp-config.php
derrière un proxyÀ placer après la définition des clefs et avant le chargement de WordPress :
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
$_SERVER['HTTPS'] = 'on';
}
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'] ?? $_SERVER['HTTP_HOST'];
chown -R www-data:www-data /var/www/html