Tag: ssh
-
How to fix Composer should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI error in SSH?
Put this in your bash profile and run source ~/.bashrc As Composer is now available via WHM you can use this to find it: This returned path “/opt/cpanel/composer/bin/composer” for me. If this returns nothing then disregard the rest of this answer, as Composer is not available to you at system level. You can now use php-cli to…
-
How to edit default python version for a linux user?
Edit the bash profile and add an alias using the following code Put the following line of code in .bashrc file and alter the python3.6 path as per your new installation Use CTRL x to exit and save After that you need to reload the source, so use the following command and you are good…
-
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…
-
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…
-
How to update Magento community edition using CLI
if you receive any errors post installation, try this hard fix
-
How to Update Magento 2.1x to latest version via SSH