4
Installation Guide ACCELERATED MOBILE PAGES for Magento

Installation Guide ACCELERATED MOBILE PAGES · Need help? [email protected] Step 8 Run the command 'php bin/magento setup:di:compile' if you have a single website and store,

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Installation Guide ACCELERATED MOBILE PAGES · Need help? customercare@mageside.com Step 8 Run the command 'php bin/magento setup:di:compile' if you have a single website and store,

Installation Guide

ACCELERATED MOBILE PAGES for Magento

Page 2: Installation Guide ACCELERATED MOBILE PAGES · Need help? customercare@mageside.com Step 8 Run the command 'php bin/magento setup:di:compile' if you have a single website and store,

Need help? [email protected]

Step 1Download the archive.

Step 2Make sure to create the directory structure in your Magento –'Magento_Root/app/code/Mageside/Amp'.

Step 3Unzip the content of archive to directory 'Magento_Root/app/code/Mageside/Amp'(use command 'unzip ArchiveName.zip -d path_to/app/code/Mageside/Amp').

Step 4Install Mobiledetect library, run command'composer require mobiledetect/mobiledetectlib'.

Step 5Run the command 'php bin/magento module:enable Mageside_Amp' in Magento root.If you need to clear static contentuse 'php bin/magento module:enable --clear-static-content Mageside_Amp'.

Step 6Create RSA key for clear amp cache: (https://developers.google.com/amp/cache/update-cache )- Generate a pair of RSA keys in the textual PEM format like this:Run the command 'openssl genrsa 2048 > private-key.pem'Run the command 'openssl rsa -in private-key.pem -pubout >public-key.pem'- Post the public key on the domain to be refreshed at the following location:https://example.com/.well-known/amphtml/apikey.pub The URL must be HTTPS.- Post private key on project root directoryvar/www/example_project_root_directory/private-key.pem

Step 7Run the command 'php bin/magento setup:upgrade' in Magento root.

Page 3: Installation Guide ACCELERATED MOBILE PAGES · Need help? customercare@mageside.com Step 8 Run the command 'php bin/magento setup:di:compile' if you have a single website and store,

Need help? [email protected]

Step 8Run the command 'php bin/magento setup:di:compile' if you have a single website and store,or 'php bin/magento setup:di:compile-multi-tenant' if you have multiple ones.

Step 9Clear cache: 'php bin/magento cache:clean', 'php bin/magento cache:flush'

Step 10Deploy static content: 'php bin/magento setup:static-content:deploy'

Page 4: Installation Guide ACCELERATED MOBILE PAGES · Need help? customercare@mageside.com Step 8 Run the command 'php bin/magento setup:di:compile' if you have a single website and store,

Email: [email protected]

Web: www.mageside.com

Skype: mageside

Facebook: www.facebook.com/mageside

Twitter: https://twitter.com/mageside