Richard G
Verified User
I installed my server with a hostname starting with server15. After installation I realised that this should be server16 so I changed the hostname through directadmin and lateron again just to be sure.
However, my system messages kept getting send by server15.mydomain.com so I checked which files still had server15 in it and that were a lot:
Now I worry the most about these 3:
I can change them manually, but shouldn't that be done by the hostname.sh already?
And how come the old hostname keeps present in mysql? How do I change that one?
Because all restored accounts now also get the old hostname in the mysql backup.
However, my system messages kept getting send by server15.mydomain.com so I checked which files still had server15 in it and that were a lot:
grep -H server15 /usr/local/directadmin/* -R | cut -d: -f1
/usr/local/directadmin/custombuild/mysql_backups/mysql.sql
/usr/local/directadmin/custombuild/mysql_backups/mysql.sql
/usr/local/directadmin/data/users/admin/user.conf
/usr/local/directadmin/data/tickets/000000/002/000.conf
/usr/local/directadmin/scripts/packages/ncftp-3.2.5/sio/Makefile
/usr/local/directadmin/scripts/packages/ncftp-3.2.5/config.h
/usr/local/directadmin/scripts/packages/ncftp-3.2.5/libncftp/Makefile
/usr/local/directadmin/scripts/packages/ncftp-3.2.5/vis/Makefile
Binary file /usr/local/directadmin/scripts/packages/ncftp-3.2.5/bin/ncftp matches
/usr/local/directadmin/scripts/packages/ncftp-3.2.5/config.status
/usr/local/directadmin/scripts/packages/ncftp-3.2.5/config.status
/usr/local/directadmin/scripts/packages/ncftp-3.2.5/config.status
/usr/local/directadmin/scripts/packages/ncftp-3.2.5/config.status
/usr/local/directadmin/scripts/packages/ncftp-3.2.5/config.status
Binary file /usr/local/directadmin/scripts/packages/ncftp-3.2.5/ncftp/main.o matches
/usr/local/directadmin/scripts/packages/ncftp-3.2.5/ncftp/Makefile
/usr/local/directadmin/scripts/packages/ncftp-3.2.5/Makefile
/usr/local/directadmin/scripts/packages/ncftp-3.2.5/sh_util/Makefile
Now I worry the most about these 3:
/usr/local/directadmin/custombuild/mysql_backups/mysql.sql
/usr/local/directadmin/custombuild/mysql_backups/mysql.sql
/usr/local/directadmin/data/users/admin/user.conf
/usr/local/directadmin/data/tickets/000000/002/000.conf
I can change them manually, but shouldn't that be done by the hostname.sh already?
And how come the old hostname keeps present in mysql? How do I change that one?
Because all restored accounts now also get the old hostname in the mysql backup.