简体   繁体   中英

How can I upload files to Amazon EC2 instance?

I managed to configure my website on a Linux ec2 instance with Drupal. But I don't know where I need to modify the files of the server. I already have a fully functional website on my local host and would like to upload it in my ec2 instance.

Can I upload my site somewhere in Drupal? I also tried without Drupal, I installed Apache, and everything but I can't add files on /var/www/ folder because I don't have the necessary permission.

Can you please give me some suggestions or tutorials that might help me?

You can change file permissions using terminal command.

As super user use:

chmod -R 777 var/www/ 

The -R makes it recursive. For security reasons it's not a good practice to give everyone access to var/www folder. Really consider do you want your filesystem to be so accessible.

My suggestion is to make sub folder and temporary give it full access while you migrate your site from local server.

chmod -R 777 var/www/folder_for_your_drupal_site

After you done with your local site migration you should change back permissions on Drupal default settings (pay attention on settings.php file).

For further info related with migration of local Drupal site check my answer here .

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM