Solving WHM Add a New IP Address error: Skipping xx.xxx.xx.xx .. already added. If you recently changed server main IP, make sure to update this file with the new main IP: /var/cpanel/mainip And make sure the IP is not mentioned in this file: /etc/ips Then try again.
You can find and replace text on one or multiple file at once using sed RHEL command sed -i ‘s/TEXT-TO-FIND/REPLACE-WITH/g’ filename.txt Find and replace text on multiple files with .txt extention sed -i ‘s/TEXT-TO-FIND/REPLACE-WITH/g’ *.txt Replace TEXT-TO-FIND and REPLACE-WITH with the text you’re looking for and its replacment Example: sed -i ‘s/thursday/friday/g’ weekdays.txt The
To change hostname on RHEL / Almalinux 8/9 hostnamectl set-hostname server.domain.com
Login to your server as root. Install wp-cli as stated here: http://wp-cli.org/#installing After installing WP-CLI Open file: /etc/cagefs/conf.d/wpcli.cfg using: $ nano /etc/cagefs/conf.d/wpcli.cfg Add the following content to that file and save. [wp-cli] comment=wp-cli paths=/usr/local/bin/wp And then run: $ cagefsctl –force-update Now all users who have SSH access can use wp-cli.
First, login with root and install git yum install git Then apply: cagefsctl –addrpm git cagefsctl –force-update On this is done, the git application should be available correctly within CageFS for all users to utilise via SSH. source
Here is how to solve the WHM transfer tool failure error which contains: command-line: line 0: Bad configuration option: ControlPersist) To solve this error and be able to transfer websites from a remote server, apply this command: $ yum update openssh
Edit /etc/ssh/sshd_config $ nano /etc/ssh/sshd_config Look for: #Port 22 Change to any port number of your choice, for example, 1234 Port 1234 (remove # from the beginning and change 22 to 1234, make sure not to use a port number that’s already used by another service like 80,21,443,53,25 etc..) 2) Add the port number to the
Sometimes when you try to install git on CentOS it doesn’t continue and output this error Requires: libcurl.so.3()(64bit) First try to install libcurl by : $ yum install libcurl libcurl-devel Then try installing git again. If this doesn’t work, try installing git with this command:
You can move between folders in linux using command cd ‘Change Directory’ cd /folder/destination/, move to destination folder. cd / , move to user root folder or cd ~ , move to user root folder cd .. , up one folder or cd ../ cd – , back to previous location You also can display the
There are many ways to read files in linux using bash screen. Command head <filename>, show the first few lines of the file. Command cat <filename>, display the file content on screen, not recommended with files longer than 10 lines. Command tail <filename>, used to show the last few lines of the file, it also has