I used Acquia Dev Desktop 2 to install Drupal on my computer using a localhost. I have completed development on my site on the localhost, and need to move it to Amazon Web Services. 

I am new to both Drupal and AWS, and cannot find step-by-step instructions on how to do this. Could anyone help me? I have been able to export the site using phpmyadmin/.

Comments

VM’s picture

upload the folders/files to the server

edit settings.php to point to thew new database

edit .htaccess to remove any changes you may have made while on localhost

import database

clear cache tables, session table, watchdog table

login

test

lenniejane’s picture

That's helpful but still too generic. Where do I upload the files and folders? 

Where do I edit the settings.php and what information do I use to point to the new database?

How do I import the database? 

Is there a step-by-step documentation somewhere that can help me with this? 

VM’s picture

Where you upload the folders is dependent on where your domain name is pointing.

settings.php - database - name / password / location - look for the old settings. Take a few minutes to read the file.

using phpmyadmin or other DB tool (plenty of tutorials out there already on how to accomplish this). You've exported the DB, I'm guessing via the phpmyadmin export tab. Now utilize the import tab. It's not drupal specific, as such any phpmyadmin docs should aid.

drupal docs @ https://www.drupal.org/docs/7/backing-up-and-migrating-a-site/migrating-... . Though for D7, the process hasn't changed for D8.

video of process = https://www.youtube.com/watch?v=oHwF848pmjk

lenniejane’s picture

Thank you! 

adminMN2023’s picture

There is a great video that discusses backing up and moving a Drupal 8 site on OS Training. I *think* it's one or two of their Drupal 8 series.

https://www.ostraining.com/class/moving

lenniejane’s picture

Okay so...I have the domain name pointing to S3 with a dummy index.html doc. I am uploading my entire local drupal directory to that same S3. Should I then point the S3 to index.php from the directory? I'm not sure where the settings.php doc comes in here because I'm still pointing it to the acquia database. 

adminMN2023’s picture

Hey Lenniejane,

My knowledge is microscopic compared to VM's in the Drupal area, but I was just on AWS yesterday doing backups and was looking around at hosting there. Could you possibly want Lightsail as opposed to AWS S3?

https://aws.amazon.com/lightsail/

I could be 100% wrong. But if you go here:

https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html

You will see that:

By contrast, a dynamic website relies on server-side processing, including server-side scripts such as PHP, JSP, or ASP.NET. Amazon S3 does not support server-side scripting.

Then a link on that page points to here: https://aws.amazon.com/websites/

Which points to lightsail. (S3 only accepts statics pages)

Hope this helps. AWS is a maze of information. :^)

lenniejane’s picture

That is exactly what I need! Thank you so much. I am using Lightsail now which works with everything I'm familiar with. You are a life saver!