{"id":2452,"date":"2019-09-06T15:51:13","date_gmt":"2019-09-06T10:21:13","guid":{"rendered":"https:\/\/magecomp.com\/support\/?post_type=manual_documentation&#038;p=2452"},"modified":"2020-10-21T17:16:47","modified_gmt":"2020-10-21T11:46:47","slug":"uploading-files-amazon-server","status":"publish","type":"manual_documentation","link":"https:\/\/magecomp.com\/support\/docs\/magento-amazon-s3-extension\/uploading-files-amazon-server\/","title":{"rendered":"Uploading files to Amazon Server"},"content":{"rendered":"<p>After installing and configuring this extension, you have to run some commands via SSH to move your existing store image and downloadable files to Amazon S3 Server.<\/p>\n<p>Firstly, open your SSH in Magento root and then you have to navigate to this path to run father commands.<\/p>\n<p><strong><em>cd magentoroot\/shell<\/em><\/strong><\/p>\n<p>Now run these commands to register Amazon S3 bucket with your Magento store.<\/p>\n<p><strong><em>php s3_config.php \\<\/em><\/strong><\/p>\n<p><strong><em>&#8211;access-key-id XXXXXXXX \\<\/em><\/strong><\/p>\n<p><strong><em>&#8211;secret-key XXXXXXXX \\<\/em><\/strong><\/p>\n<p><strong><em>&#8211;bucket XXXXXXXX \\<\/em><\/strong><\/p>\n<p><strong><em>\u00a0&#8211;region XXXXXXXX<\/em><\/strong><\/p>\n<p>Now its time to move all your store images to S3 server using below command.<\/p>\n<p><strong><em>php s3_export.php<\/em><\/strong><\/p>\n<p>And that\u2019s it now you can see that your store images are uploading to amazon server as shown in below image.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-9874\" src=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/09\/2_uploading_image_to_amazon_s3.png\" alt=\"uploading_image_to_amazon_s3\" width=\"963\" height=\"470\" srcset=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/09\/2_uploading_image_to_amazon_s3.png 963w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/09\/2_uploading_image_to_amazon_s3-300x146.png 300w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/09\/2_uploading_image_to_amazon_s3-768x375.png 768w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/09\/2_uploading_image_to_amazon_s3-600x293.png 600w\" sizes=\"(max-width: 963px) 100vw, 963px\" \/><\/p>\n<p>Once the upload is completed, you can see all your uploaded images in Amazon S3 server as shown below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-9875\" src=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/09\/3_upload_downloadable_products_on_amazon_s3.png\" alt=\"upload_downloadable_products_on_amazon_s3\" width=\"1350\" height=\"699\" srcset=\"https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/09\/3_upload_downloadable_products_on_amazon_s3.png 1350w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/09\/3_upload_downloadable_products_on_amazon_s3-300x155.png 300w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/09\/3_upload_downloadable_products_on_amazon_s3-1024x530.png 1024w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/09\/3_upload_downloadable_products_on_amazon_s3-768x398.png 768w, https:\/\/magecomp.com\/support\/wp-content\/uploads\/2019\/09\/3_upload_downloadable_products_on_amazon_s3-600x311.png 600w\" sizes=\"(max-width: 1350px) 100vw, 1350px\" \/><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Other Useful Commands:<\/strong><\/span><\/p>\n<p>To enable Amazon S3 Integration in your Magento store\u2026<\/p>\n<p><strong><em>php s3_enable.php<\/em><\/strong><\/p>\n<p>To disable Amazon S3 Integration in your Magento store\u2026<\/p>\n<p><strong><em>php s3_disable.php<\/em><\/strong><\/p>\n<p>To import Amazon S3 Images to your Magento store\u2026<\/p>\n<p><strong><em>php s3_import.php<\/em><\/strong><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1999,"menu_order":2,"template":"","manualdocumentationcategory":[383],"manual_doc_tag":[],"class_list":["post-2452","manual_documentation","type-manual_documentation","status-publish","hentry","manualdocumentationcategory-m1-amazon-s3"],"_links":{"self":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/2452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation"}],"about":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/types\/manual_documentation"}],"author":[{"embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/2452\/revisions"}],"predecessor-version":[{"id":9876,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/2452\/revisions\/9876"}],"up":[{"embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_documentation\/1999"}],"wp:attachment":[{"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/media?parent=2452"}],"wp:term":[{"taxonomy":"manualdocumentationcategory","embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manualdocumentationcategory?post=2452"},{"taxonomy":"manual_doc_tag","embeddable":true,"href":"https:\/\/magecomp.com\/support\/wp-json\/wp\/v2\/manual_doc_tag?post=2452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}