Tips and Tricks

How to run magento command line without ssh access

If you can upload the file to your server, you can use my php file to run magento command. You can down load file here run magento command line [...]

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 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 [...]

How to find recently modified files on your website server linux

Sometimes, your website is down because somebody changed some files. But you don't know those files. They are not available to let you know the files that they [...]

How to clone a website from another vps

Maybe you know that the magento 2 website works faster with production mode. You also enable merge js and css. And you should install varnish cache for it. [...]

How to solve the problem “No tokens were provided” when running di compile in magento 2

Some times you have the problem with error message "No tokens were provided" when you try to run ssh command line "php [...]

How to fix problem to change port for varnish cache

Although you changed the port in the varnish configuration file: sudo nano /etc/default/varnish DAEMON_OPTS="-a :80 \ -T localhost:6082 \ [...]