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
Steps:
wp-config.php
: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
b. Reference:
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?
Cheers
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.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
This is indeed more or less the correct process, so to summarize the steps before that as well:
/var/www/wordpress
directoryIf this is the case, would you mind confirming what is the exact error that you are getting now that you try to login or access the website?
When the site goes down, what is the exact error that you see and do you get any errors in the logs?
Best,
Bobby