• Resolved chrisloughnane

    (@chrisloughnane)


    Hi, I’ve spent the past two days trying to get duplicator to deploy a site to a AWS EC2 instance from another host. I have successfully used Duplicator for the past year to backup and restore various websites but I have had no joy on EC2.

    What I’ve done:
    Setup EC2 with:

    • Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-1075-aws x86_64)
    • PHP 7.0.33-0ubuntu0.16.04.1 (cli) ( NTS )
    • mysql Ver 14.14 Distrib 5.7.25, for Linux (x86_64) using EditLine wrapper

    domain, DNS etc. are all fine and pint to correct location.

    What I can’t get past is what owner:group should I set on the serving folder and what permissions should I set. I’ve even set the whole thing to 777 just to test and that didn’t work. When I use www-data:www-data I can get to the first stage of the migration process and after duplicator unpacks the archive I get hit with a 504 Gateway error. Not one single tutorial or SOF post has helped and often refer to out of date information.

    Does any one how or of a working answer online?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hey @chrisloughnane,

    Thanks for the feedback! There are a few items in the FAQ that may provide a solution to this issue, this one may get you going.

    ? ? – What can I try for 502/503/504 Gateway issues during the install?
    ? ? – https://snapcreek.com/duplicator/docs/faqs-tech/#faq-installer-125-q

    Let me know if this helps~

    Thread Starter chrisloughnane

    (@chrisloughnane)

    Thanks for the reply.
    As soon as I run the installer.php it unpacks the new folder dup-installer and then stops because it trys to reload without the https.
    Also the file dup-installer-bootlog__somelog.txt tells the permissions on the folder and files need to be set. I set everything to 777 and try again with

    which does load the Duplicator Step 1 of 4: Deployment. It proceeds to unpack the files and returns 504 Gateway Time-out I cannot get the process to proceed to Step 2 of 4. I will look at your linked timeout info but at a glance none of that applied.

    Hey @chrisloughnane

    If you want to submit a support ticket for this issue we can have a closer look at your setup. Please provide a link to this thread when submitting the ticket.

    Thanks~

    Thread Starter chrisloughnane

    (@chrisloughnane)

    Hi Cory,

    Thank you for the offer but we don’t have a purchased licence and the deploy is integrated in our AWS infrastructure so I am unable to provide access, without which there’s nothing anyone can do. I’m going to have to give up on adding the site to AWS and find another solution. I’m quite surprised I couldn’t get this to work considering I moved so much of out backend services behind load balancers etc. without any problem.

    Regards,
    Chris

    Thread Starter chrisloughnane

    (@chrisloughnane)

    I tried one last time by manually copying the files over to the new server, then matched the DNS and adjusted the DB credentials. This loaded the home page but no othere. To fix that I had to adjust .htaccess and /etc/apache2/apache2.conf, edit AllowOverride None for /var/www/ to AllowOverride All. Now the only problem left is the /wp-admin wont load.

    Just an update, I know this isn’t a WP support forum ??

    Thanks for the update! The only FAQ I think that is related to that issue can be found here:

    ? ? – I cannot login to my WordPress admin dashboard, what can I do?
    ? ? – https://snapcreek.com/duplicator/docs/faqs-tech/#faq-installer-220-q

    Hope that helps~

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Using Duplicator to migrate site to AWS EC2 slice’ is closed to new replies.