Question

Trying to migrate site with importbuddy: 404 on mydomain.com/importbuddy.php

Posted April 17, 2016 2.7k views
LAMP Stack

So, I have followed the steps in this answer
https://www.digitalocean.com/community/questions/importbuddy-and-migrating-from-backupbuddy-backup

I have a LAMP droplet
Installed Apache, MySQL and PHP
Created /root/var/www/html, set permissions to 777
Moved the archive and backupbuddy to the /root/var/www/html
when i try to access the script via mydomain.com/importbuddy.php I see nothing
Funnily enough, when I tried the same with a WP droplet, I could at least access the script

Could you please help me find what I’m missing here?

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.

1 answer

Hi.

Apache’s default document root is /var/www/html, not /root/var/www/html. If you move the files there, Apache will be able to serve them and browsing to domain.com/importbuddy.php should then work.

sudo mv /root/var/www/html/* /root/var/www/html/.* /var/www/html
Submit an Answer