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 without ssh user Unzip and upload it to your root website on your server via ftp or online management Open brower with url yourdomain/run-ssh.php Now you can run any magento command as you [...]

Read more

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

How to change ownership and permissions in magento 2

Sometimes if you use sudo to run command line deploy static content or compile code, it will create the file with user root and it cannot work with user php ( it can be [...]

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. The CDN is [...]

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

How to install Varnish cache on server ubuntu

Maybe you know that the varnish cache is quite necessary with magento 2 and it is very good with any website. Today, we will try to install varnish on server ubuntu and [...]

How to install phpMyAdmin on server ubuntu

Maybe you know that phpMyAdmin is a popular software to manage the MySQL data base. Now, we will try install it on your server. I suppose that you installed the mysql and [...]

How to restart apache2 on server ubuntu

You can try to use following command line to restart apache2 on server ubuntu: service apache2 restart or service apache2 reload P/s: If it works, you can see more [...]

How to enable specified modules in magento 2 by using command line

You canĀ enable specified modules in magento 2 by using command line: php bin/magento module:enable Magento_Sitemap You also can enable all modules by using the command [...]