Magento Assignment 1
Magento Assignment 1
Magento Assignment 1
ASSIGNMENT (SESSION:01)
Site URL:
https://phpstack-745742-4409331.cloudwaysapps.com
Setup a Magento 2.4.x on a PHP Stack application and perform following tasks:
• Go to the webroot of the newly created Custom PHP app. Install composer via this guide.
• Fetch the Magento 2.4.6 files in the webroot via this command:
wget https://github.com/magento/magento2/archive/2.4.6-p4.zip
• Unzip the file, copy the files and directories inside the magento2.4.6 folder:
unzip 2.4.6-p4.zip
cd magento2-2.4.6-p4/
cp -r * ../
The webroot has been changed to /pub via following this guide.
The user was already created as required in the setup:install command above in the Magento
installation process.
3- Disable cache type 'Full_page' and enable the rest of cache types.
1) Exclude themes on static content deploy and does not minify HTML files using the CLI
By using this command, we can deploy static content excluding specific themes and prevent the
minification of HTML files.
2) Change the indexer mode to run in realtime for catalog_category_product. using the CLI
With this command, we can enable real-time mode for the catalog_category_product indexer,
ensuring that it updates instantly whenever there are changes to category-product associations
3) Allowing specific IP to view the store during maintenance mode using the CLI
Using this command, we can configure Magento to allow access to the store for specific IP
addresses even when maintenance mode is enabled.