Author: Louis Pham

How to solve magento error – dbModel read resource does not implement Zend_Db_Adapter_Abstract

The error is arising due to Magento can't find a valid read/write connection. Reasons for this may be different. Do you have the file app\etc\local.xml [...]

How to install the PHP Extension gd for php7 on ubuntu

You can install the gd extension for php 7 on ubuntu by using the ssh command line: sudo apt-get install php-gd And then you need to restart apache to [...]

How to install the PHP Extension zip for php7 on ubuntu

You can install the zip extension for php 7 on ubuntu by using the ssh command line: sudo apt-get install php-zip And then you need to restart apache to [...]

How to install the PHP Extension mbstring for php7 on ubuntu

You can install the mbstring extension for php 7 on ubuntu by using the ssh command line: sudo apt-get install php-mbstring And then you need to restart [...]

How to install PHP Extension intl for php7

You can install intl extension for php 7 on ubuntu by using the ssh command line: sudo apt-get install php-intl And then you need to restart apache to [...]

How to install PHP Extension mcrypt php 7 on ubuntu

You can use ssh command line to install mcrypt extension for php 7 on ubuntu: sudo apt-get install php-mcrypt And then you need to restart apache to include [...]

How to keep the customer logged in long time on magento

If the customer will stay on your website long time before he place an order. He will be logout. He need to login again to complete the order. It maybe cause [...]

How to solve the problem Warning: file_put_contents failed to open stream: Permission denied

This problem happens when the php user does not have permission to work with the folder on the server ( maybe it is var or pub folder ). In the magento 2 [...]

How to export to csv with charset UTF-8

If you export to csv file and see Â£ instead of £. This problem happens because the csv file is not default charset UTF-8. It will show correct content if [...]

how to redirect 301 all page to www or none www

You can use rewrite url in htaccess to redirect 301 all page to www RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCond %{HTTPS}s [...]