====== Wordpress Notes ====== **All in One Migration Tool**: https://wordpress.org/plugins/all-in-one-wp-migration/ **Elementor Site Builder**: https://www.youtube.com/watch?v=Tkrhpy3RIX0 **Images**: https://unsplash.com/ ===== Virtualmin ===== Use the Virtualmin Install Script for Wordpress. You can update WP easily in the future. Use Virtualmin to assign a free LetsEncrypt SSL certificate. ===== Force SSL ===== https://www.thepolyglotdeveloper.com/2014/12/force-https-pages-wordpress-site/ https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/ ===== Contact Form ===== https://websitesetup.org/contact-form-wp-website/ https://www.elegantthemes.com/blog/tips-tricks/how-to-customize-the-style-of-contact-form-7-to-match-your-website ===== Menu Heading Only ===== https://www.wpbeginner.com/beginners-guide/how-to-add-titles-in-wordpress-menu-without-linking-to-a-page/ ===== Troubleshooting ===== **Troubleshooting - CLI**: https://wpengine.com/support/troubleshoot-ssh-gateway/ **Troubleshooting - Wordpress** https://wpengine.com/support/troubleshoot-WordPress/ ==== Create Admin User ==== https://www.wpbeginner.com/wp-tutorials/how-to-add-an-admin-user-to-the-wordpress-database-via-mysql/ https://www.wpbeginner.com/beginners-guide/how-to-change-the-wordpress-admin-email/ :!: These commands create an admin user with ID 1 in the ''mydatabase'' database...modify (first line) as needed. INSERT INTO `mydatabase`.`wp_users` (`ID`, `user_login`, `user_pass`, `user_nicename`, `user_email`, `user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`) VALUES ('1', 'myusername', MD5('mypasssword'), 'Full Name', 'my@email.address', 'http://my.url', '2023-05-30 00:00:00', '', '0', 'Full Name'); INSERT INTO `mydatabase`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '1', 'wp_capabilities', 'a:1:{s:13:"administrator";s:1:"1";}'); INSERT INTO `mydatabase`.`wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) VALUES (NULL, '1', 'wp_user_level', '10'); ==== Database Import ==== https://www.inmotionhosting.com/support/edu/wordpress/migrate-wordpress-site-from-wp-engine/ cd database/location/ mysql -u dbusername -p dbname < ./mysql.sql ==== Reset File and Folder Permissions ==== chown username:username -R * # Set website user as the owner find . -type d -exec chmod 775 {} \; # Change folder permissions to rwxrwxr-x find . -type f -exec chmod 664 {} \; # Change file permissions to rw-rw--r-- ==== Purge Cache ==== If you have caching enabled: https://www.wpbeginner.com/beginners-guide/how-to-clear-your-cache-in-wordpress/ https://wpengine.com/support/cache ==== White Screen of Death ==== https://wpengine.com/support/how-to-fix-the-white-screen-of-death-wsod-in-wordpress/