Category: Linux
-
How to use VestaCP Cli Commands? – Linux
There are a lot of vestacp commands which are useful in automating things but you see error OR something like this: Solution type this in command line (ssh) After that use any command like: Dont use < or > or * * means optional < and > means replace your info with that Complete command…
-
How to change PHP versions in VestaCP Ubuntu – Downgrade Upgrade 5.6, 7.1 and 7.2
For Downgrading 7.2 (default) to 7.1 PHP Reference: Sandy B @ mysterydata.com
-
Fix Magento 2 – php cli error on cpanel or other hostings
The problem: On a fresh install of Magento2 on cpanel based hosting, you receive the following error while running any command on SSH The Solution: You have to point php to correct binary;Use the following code in order:First, open the file which can alter the runtime variables like .bash_profile or .bashrc Go to last line…
-
[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…
-
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…
-
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…
-
PHP Malware – Important regex to bust infected website
-
Linux Bash – How to change all filenames to uppercase leaving the file extension unchanged
use this simple code in bash shell. The following code will change all xxx.jpg files to XXX.jpg in any particular working directory.