Moving WordPress from Bluehost to Digital Ocean Ubuntu LEMP - need a little help...

February 22, 2015 1.8k views

OK..I started up an Ubuntu 14.04 server with LEMP, and I am trying to use Backupbuddy to move a site from Bluehost to Digital Ocean.

Then I [installed vsftpd] to enable FTP access - but it is just using root. Should I create a different account for vsftpd access?

Also, I was able to follow most of the instructions on How To Install WordPress with Nginx on Ubuntu 14.04 - but I skipped steps 2-4 because I would be using Backupbuddy to replace the files and database tables when I ran importbuddy.

I uploaded my Backupbuddy ZIP file and importbuddy.php to the /var/www/html root folder, but when I tried to run importbuddy.php on my new install I got "Error #224834. This directory, /var/www/html/, is not write enabled according to the server. Please verify proper write permissions to continue. If this persists, contact your web hosting provider and tell them that is_writable("/var/www/html/") returns FALSE in PHP."

I am not sure how to proceed. Can you make the /var/www/html folder wite enabled and then revert to it's current permissions? How would I find the current permissions?

Am I even going about this right? Is there a better way to do this move from Bluehost to Digital Ocean?

And what about the root leaving the "Welcome to nginx" page in there? Can I remove it?

Thanks for your help!

1 comment
  • So I'm not a pro on moves and currently have a problem myself trying to do this, but I can help with figuring out your write permissions :) Log in to your server through filezilla, go to var/www/html and right click the folder, pick the lowest option(called something like "file permissions"). Here you can edit all the permissions, give it write permission etc.

    Not sure about the Nginx page, but it might be a standard html page you can safely remove from your server :)

2 Answers
  1. Should I create a different account for vsftpd access?
  2. Permissions
    Do ls -al then you will see permissions, owner, and group. Use chmod to change permissions and chown to change owner and group. If you did correctly, you don't have to revert the process. Changing permission(+ owner&group) is crucial and it's in step 4 of the tutorial you mentioned.
  3. "Welcome to nginx" page in there? Can I remove it?
    Yes. You can remove default from sites-enabled if you want. Or you can edit/delete index.html of the path.

For permission problem, you can fix it with this command :

sudo chown -R root:www-data /var/www/html/*

here root is as user, if you have created new user then replace it with root.
you can check more here : bluehost to digitalocean migration

Have another answer? Share your knowledge.