SET FOREIGN_KEY_CHECKS=0;
-- Customers
TRUNCATE `customer_address_entity`;
TRUNCATE `customer_address_entity_datetime`;
RewriteMap lower int:tolower
RewriteCond %{REQUEST_URI} [A-Z]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{REQUEST_URI} !/customer/
RewriteCond %{REQUEST_URI} !/checkout/
RewriteCond %{REQUEST_URI} !/backmgmt2/
Generally, the hos manager used a separate server for each PHP version application deployment. Which increases the hosting cost. Some of the host managers are using Docker to run multiple PHP version on the single server. Also, most of you are aware of the configuration, I used in this tutorial. But some of the system administrators are not aware of this. This tutorial will help you to install multiple PHP version with Apache on Ubuntu 18.04 and 16.04 system without switching PHP versions. This tutorial describes the installation and configuration of two VirtualHost on Apache with separate PHP versions. First VirtualHost will work with PHP 5.6 and another VirtualHost will run with PHP 7.2. So just go through this tutorial. You can also use more than two PHP versions with Apache as required but this tutorial covers two only.
Install Apache web server from the official repository. Launch terminal on your system
You can get media url in your template file using below way but without using objectmanager you must have to define Block file with __construct() method with define storeManagerInterface in construct method.
In your phtml Block file create __construct function.
Add to __construct
in your class
Add install/upgrade script, and run migration.
Method saveConfig()
has 2 required parameters ($path
and $value
) and 2 optional ($scope
that equal default
by default and $scopeId
that equal 1
by default). More info you can see in class Mage_Core_Model_Config
.
<?php
$installer = $this;