What can we do to get a test copy of a WordPress droplet?
I have scoured the documents and attempted many ways of configuring a WordPress droplet copy to run a test version of a WordPress site. I can’t get the test site to support logging in on /wp-admin . The following steps seem to work but then the site goes down. After logging in to /wp-admin
define( 'WP_HOME', 'http://example.com' ); define( 'WP_SITEURL', 'http://example.com' );
systemctl restart apache2.service
a. Enter the command in the droplet console:
certbot --apache -d example.com
Update site settings in wordpress database In the Digital Ocean console
a. mysql -u root -p b. select * from wordpress.wp_options where option_name = 'siteurl'; c. select * from wordpress.wp_options where option_name = 'home'; d. update wordpress.wp_options set option_value = 'http://example.com' where option_name = 'siteurl'; e. update wordpress.wp_options set option_value = 'http://example.com' where option_name = 'home'; f. update wordpress.wp_options set option_value = replace(option_value, "oldurl.com", "example.com");
Anything else we can try to get a test copy of a WordPress droplet?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!