User Tools

Site Tools


internet:hosting:wordpress

Wordpress Notes

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

Contact Form

Troubleshooting

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

White Screen of Death

internet/hosting/wordpress.txt · Last modified: 2023/06/08 13:57 by gcooper