I went through the process of setting up my Wordpress website using the official 18.04 wordpress image. I was able to log into my droplet which activated the script
It said “This setup requires a domain name. If you do not have one yet, you may cancel this setup, press Ctrl+C. This script will run again on your next login”
I skipped this and proceeded with the rest of my setup. Everything worked great and I was able to set an admin password and login to the http://my_website_name.com/wp-admin/install.php
I decided to login to my droplet via SSH today and I was prompted with the same script (/opt/digitalocean/wp_setup.sh) and I canceled it again. However, this time I noticed the following message:
mv: cannot stat '/var/www/html': No such file or directory
mv: cannot stat '/var/www/wordpress': No such file or directory
When I went to my website it was down and I can’t get it back up.
I tried restart apache but I believe that the script running a second time may have messed something up, particularly these lines in the script:
mv /var/www/html /var/www/html.old
mv /var/www/wordpress /var/www/html
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!