Month: July 2018
-
How to install theme in Magento 2
Download the theme and copy the app folder and paste it in your magento root directory Open Shell, in the root directory, enter php bin/magento setup:upgrade . This will upgrade all the magento files. 2. Also, Clear cache ,type php bin/magento cache:clean . 3. Now force deploy the static files by typing php bin/magento setup:static-content:deploy -f . It will take a while. 4. Now,…
-
[SOLVED] PHP must be run as a CLI application error : Content-type: text/html; charset=UTF-8
php bin/magento cache:cleanContent-type: text/html; charset=UTF-8bin/magento must be run as a CLI application as root user, run the following commands (For php v7.0) The solution involves fixing php variable’s path. We need to find which php is being used right now, you can find out by To fix this PHP cli error, see how to edit…
-
MySQL error 1449: The user specified as a definer does not exist
Why this error happens? Most of the times, reason is that your database dump through command line or PhpMyAdmin or even other libraries can have SQL’s Definer statements. Now, as per MySQL’s Official Documentation: The DEFINER clause specifies the MySQL account to be used when checking access privileges at routine execution time for routines that have the SQL…
-
Magento 2 all cli commands
-
How to connect cpanel through SSH
Following are the steps to connect to cpanel through SSH:- Go to your cpanel and create a public private key-pair, under SSH access->manage keys. 2. Under manage keys section, go on create a new key. 3. Create a key and give key name, key password, key type and key size. 4. Click on generate keys…
-
Magento File Directory
/app The etc folder contains the di.xml configuration file The di.xml file contains class mapping and interface preferences Contains the design folder for themes. /bin The directory contains the magento file or a Command Line Interface script /dev Magento 2 testing and development tools are placed in this folder. /lib The internal and web subfolders…
-
Linux commands for SSH
tar– to create archive files(.zip, .tar) Syntax: tar [options] [archive-file] [file or directory to be archived] Options: -c : Creates Archive -x : Extract the archive -f : creates archive with given filename -t : displays or lists files in archived file -u : archives and adds to an existing archive file -v : Displays…
-
.htaccess redirect from http to https and from non-www to www redirect – Make site permanently SSL secured
put this in your htaccess file:
-
RPM repo not found connection errors on Centos Redhat duplicate problems
yum -y update command failing Command line will show messages like xxx is outdated and v abc will be installed but at the end it shows duplicate binary, please remove duplicate first. Process Backup first Integrity Check Find Problems Identify duplicates Clean duplicates re build conf cache update command remove backup file .prev if successfully…
-
Linux – Rescue disk how to reset root password and unblock yourself if locked out
Centos as test server Current situation – you are locked out, cant use WHM or SSH or anything else to login. You may or may not remember the password. In any case you can reproduce the following steps to unblock yourself. 1. Use any other linux OS cd which can run live. I prefer FINNIX…