Current time: 09-24-2024, 12:36 AM Hello There, Guest! (LoginRegister)


Post Reply 
Automatic subdomain creation PLUS more...
Author Message
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #8
RE: Automatic subdomain creation PLUS more...
Right after you copied the data.
Just create a new db based on the subdomain name and then fill it with content from a dummy db maybe with importing a sql file into your newly created db like on a shell :

mysql --password=<newpass> -u <subuser> -p -U <newdb> < dummy-cms.sql

after it :
mysql --password=<newpass> -u <subuser> -p -U <newdb> -e "update users set password = crypt('newpassword');"
Or write it directly in perl this depends on your knowledge.
Have a look at the ispcp-setup or the upgrade script to find out how to do it in perl.
02-06-2009 09:02 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Automatic subdomain creation PLUS more... - ephigenie - 02-06-2009 09:02 AM

Forum Jump:


User(s) browsing this thread: 5 Guest(s)