-
Copy DB, Files
-
Update site URL in DB (Replace
<URL>
with your site's URL)
update wp_options set option_value='<URL>' where option_name = 'siteurl';
update wp_options set option_value='<URL>' where option_name = 'home';
- Update .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
- Update post URLs (Replace
<URL>
with your site's URL, and<OLD URL>
with your site's old URL)
UPDATE wp_posts SET post_content = REPLACE(post_content,"<OLD URL>","<URL>")
-
Add
define('FS_METHOD','direct');
to wp-config.php file -
If using Elementor, Elementor > Tools > Regenerate CSS
External -> Local
scp username@domain:/home/xxx/xxx/11.jpeg /Users/username/Desktop/
Local -> External
scp /Users/username/Desktop/11.jpeg username@domain:/home/xxx/xxx
To add a key do the following
-i jakenelson-cpanel.pem
If you get the errror no host key alg RSA
, a temporary fix is to add
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
to the bottom of /etc/ssh/sshd_config
, for a long-term fix, use newer key types
ln -s /usr/share/phpmyadmin /var/www/html/admin/phpmyadmin
ls -lh {FILE}
du -sh *