Ubuntu: How To Create Virtual Host

1. create a directory using the following command. sudo mkdir -p /var/www/example.com/public_html 2. Grant Permission to your newly directory sudo chown -R $USER:$USER /var/www/example.com/public_html sudo chmod -R 755 /var/www/example.com/public_html 3. Create a new config file using default config file sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/example.com.conf 4. Edit example.com.conf file a) Run sudo Read more…

Magento 2 : How to Override Model

Configuration of Module: Create module.xml in app/code/Techievolve/Product/etc and add the following code to it: Module Registration: Create registration.php in app/code/Techievolve/Product and add the following code to it: Override Product.php Run the following commands using ssh or terminal:

Magento2: After install run the following commands

Magento Fresh install 2 No Css Js After Install cd /var/www/html/magento2/ sudo chmod 777 -R /var/www/html/magento2/ php bin/magento cache:flush php bin/magento indexer:reindex php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:flush For Remove version from css url: We can disable it in Admin: Stores > Configuration Read more…