We completed development of a new site (upgrade to new version of XOOPS) in a Virtual server I set up
dev.hinduismtoday.com with admin user devtoday, new XOOPs MySQL “devtoday” with MySQL user “devtoday”
When it was done it was a simple job to get the new content to go live on the existing “Live” virtual server:
mv /home/currentLiveSite /home/currentLiveSite-backup
mv /home/devtoday /home/htoday
chown -R htoday:htoday htoday
go back and fix the immutables (fortunately your other thread on this saved my day) for the php5.fcgi and change it’s owner and “viola” new site was live at www.hinduismtoday.com
BUT: in the main config for the new XOOPS site we are pointing to the new database and it logs in to MySQL as the user for the development site “devtoday” and I need to leave it that way…
So I want to just delete the virtual server “dev.hinduismtoday.com” and enter this as an alias for www.hinduismtoday.com (I already changed the IP of the dev site in our DNS matrix) but we need to preserve the MySQL user “devtoday” which is the admin for the virtual site to be deleted as well as the database “devtoday”
But the VirtualMIn Delete Server option does not allow selective choices among the following:
1 Administration user - The administration user and group for this virtual server will be deleted.
2 Home directory - The home directory for this virtual server, containing all website and otherwise, will be deleted.
3 Apache website - All Apache directives in the virtual host will be removed.
4 Log file rotation - The Logrotate configuration for the virtual server’s log files will be deleted.
5 MySQL database - All MySQL databases, all tables and the server’s MySQL login will be deleted.
6 ProFTPd virtual FTP - All ProFTPd directives in the virtual server will be removed.
7 Webmin login - The Webmin user for this virtual server will be deleted.
Of these seven actions I need them all to run but not # 5…as the database, tables and mySQL user log in need to be preserved.
How can I accomplish this? I can tackle it 'piece meal" i) remove directives for old site by hand editing the httpd.conf ii) ?? iii) ?? for each of the above 1,2,3,4,6,7 deletions.
I supposed I could have used the “move virtual server” option, but since I don’t understand well what that does I did it “by hand”