Display the current CentOS 8 hostname
hostname
or
hostnamectl
CentOS 8 change hostname at
sudo vi /etc/hostname
Next Edit the /etc/hosts file
sudo vi /etc/hosts
Reboot system
sudo reboot
by dev
Display the current CentOS 8 hostname
hostname
or
hostnamectl
CentOS 8 change hostname at
sudo vi /etc/hostname
Next Edit the /etc/hosts file
sudo vi /etc/hosts
Reboot system
sudo reboot
by dev
SSH method
Login to SSH as root and Run below line.
echo 500 > /etc/virtual/bdhostit.com/limit/helpdesk1
The above command will increase daily email sending limit to 500 of helpdesk1@bdhostit.com.
Change the bold text replacing your details.
by dev
This would mean that the account likely already exists on the system in /etc/passwd, and the the data in /usr/local/directadmin/data/users/username does not exist.
userdel -r username
cd /usr/local/directadmin/scripts ./fix_da_user.sh username user domain.com
by dev
To move a database from one user, to another user, run the following command:
VERBOSE=1 DBUSER="da_admin" DBPASS="da_adminpass" USERNAME="username" NEWUSERNAME="newusername" /usr/local/bin/php /usr/local/directadmin/scripts/change_database_username.php
by dev
Using php in CLI mode (not suPhp) to change the open_basedir value,:
Admin Level -> Custom httpd configuration -> domain.com
Insert below line In the top text area:
|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/var/tmp/:/usr/local/lib/php/|