Etomite Multi-Site
#1
Posted 17 October 2008 - 12:41 AM
The site, would be a subdomain on a main domain (in this instance) [*1]. I've integrated the installer into the cPanel API, which means that the installer can automatically create individual mySQL Databases and users - so the Databases are all kept separate... this is also handy as it means a sys-admin could use phpMyAdmin to backup the database if it's working on a staging server before going live and installing it onto a production single install server.
The installer also creates the needed assets folders for each site, and CHMOD's them correctly.
Each site has it's own assets folder, which means unique cache files also.
Anyway, take it for a whirl. The domain's wildcarded, so to set up your own, pick any subdomain of the etomitesites.com domain.
Then, once you've picked a subdomain, add /installer/ to the address bar.
i.e. http://thisisithesub....com/installer/ ... PICK SOMETHING UNIQUE!
It'll set you up with a fully functioning Etomite website that's running from one Etomite install....
The code isn't (at this moment in time anyway) going to be made publically available - but could well influence how the integration could be done in future versions of Etomite... [*2]
Constructive Feedback Welcomed. Remember, it's still in development, so let me know of any bugs.... and don't store any important data as it could be deleted at any time!
[footers]
1. Actual top-level domains could be used, but would require third-party action to park the domain on top of the main one.
2. I've done all the coding for this myself - I'm not a PHP coder, so have quite literally "butchered" the code, which means it's not really suitable to release - but I've explained to Ralph the concept so could choose to implement something similar....
#2
Posted 17 October 2008 - 01:56 AM
however, if i save a document (i have had cache by default set to 'no' and 'yes' in configuration) i get this message:
bug fixed by dean
(tried to get codebox to play nice)
Edited by Dean, 17 October 2008 - 09:22 AM.
fixed bug
#3
Posted 17 October 2008 - 08:30 AM
I also created a full install with a different subdomain "crisDTest". All versions were quick and stable. Great job, this has a lot of possibilities for deployment options and uses.
#4
Posted 17 October 2008 - 08:44 AM
« Row count error in template query result. » SQL: SELECT * FROM `dbetomi_crisD`.etomite_site_templates WHERE `dbetomi_crisD`.etomite_site_templates.id = '';
ie the templates selected are not applying to the document as requested.
Also, with self-service site creation, it would be nice to have self-service site deletion... I tried to clean up, but I now have to leave that with you Dean
Also, I get the same error as Darren- above when I try to delete a document.
Edited by Cris D., 17 October 2008 - 08:52 AM.
#5
Posted 17 October 2008 - 09:21 AM
I don't seem to be able to reproduce this error - what's the procedure to create it?« Row count error in template query result. » SQL: SELECT * FROM `dbetomi_crisD`.etomite_site_templates WHERE `dbetomi_crisD`.etomite_site_templates.id = '';
I've also fixed the other bug - I've gone through nearly every processors file updating the cache location...
Regarding the self-service deletion, it'd mean having to create an account area etc where it lists your installs etc.. which'd be a headache... I'll have to have a ponder.
All test sites have been deleted - the installer now creates a config.lock file for all sites installed, to stop the installer being re-run.
#6
Posted 17 October 2008 - 09:53 AM
This has been done nowi do need to (at some point) disable the ability for a user to choose their database (make them all unique) - it could cause problems if someone uses a common word and someone else tries to install with that same word - it'd throw all sorts of errors...
#7
Posted 17 October 2008 - 11:37 AM
Create an accountI don't seem to be able to reproduce this error - what's the procedure to create it?
Agree to terms and conditions
Choose login details
Log in to manager
Click "New Document"
COnfirm that a template is selected in the publishing tab.
Select "Published" and "Show in menu" (these have been changed since last test)
Save the new document
Click "Launch site"
The page now has an alias "etomite-forums" although the alias is not set....
The template is now "0" and the database name is now not the same as the one I chose...
and the template error stands.
http://crisdtest3.et...ite-forums.html
Edited by Cris D., 17 October 2008 - 11:39 AM.
#8
Posted 17 October 2008 - 11:48 AM
You shouldn't have been able to choose a database name :/ it's randomly generated during the installer to stop duplicates...
#9
Posted 17 October 2008 - 12:08 PM
#10
Posted 17 October 2008 - 10:29 PM
No outstanding bugs?
#11
Posted 18 October 2008 - 09:15 AM
#12
Posted 18 October 2008 - 09:30 AM
#13
Posted 18 October 2008 - 12:05 PM
http://crisdtest2.etomitesites.com/
http://crisdtest2.et...s.com/installer
I must have tested it before you had the code added. Works well now. Havn't found anything else, will let you know if I do. I thought you had bitten off a lot to chew here, but it looks like you chew pretty well...lol.
#14
Posted 18 October 2008 - 01:38 PM
#15
Posted 18 October 2008 - 09:05 PM
OK, the post above that says you deleted sites was Oct 17 2008, 07:21 PMI deleted all test sites yesterday, so that test site doesn't exist - thats why you can run the installer
The post above links to a site that is avaliable (click the first link and see).
http://crisdtest2.et...s.com/home.html
Page Last Edited: 18-10-2008 03:30 PM. Site Last Edited: 18-10-2008 03:30 PM. MySQL: 0.0079 s, 11 request(s), PHP: 0.0174 s, total: 0.0252 s, document retrieved from cache
and this page:
http://crisdtest2.et.../resources.html
Page Last Edited: 15-10-2008 10:31 PM. (Prior to site deletion)
Site Last Edited: 18-10-2008 03:30 PM. (after site deletion)
MySQL: 0.0086 s, 12 request(s), PHP: 0.0208 s, total: 0.0294 s, document retrieved from database
Logging into the manager results in a "Failed to create a database connection".
I believe you have partially deleted this site, but portions of it still exist whether they are files and/or database tables. This partial deletion could be the main culprit- allowing me to access it and still run the installer. Perhaps not a typical situation, but may warrant investigation as to why 1/2 or more of a "deleted" site still exists.
#16
Posted 19 October 2008 - 09:04 AM
#17
Posted 20 October 2008 - 10:57 AM
When a site doesn't exist, it loads the stuff from the main website
For someone who claims to be not a PHP coder it looks like he's got all his bases covered well.
Congrats Dean.
#18
Posted 20 October 2008 - 11:05 AM
#19
Posted 20 October 2008 - 04:43 PM
Great work, Dean...
#20
Posted 22 October 2008 - 10:30 PM
As of my understanding, the name given to this topic and its content should be "Etomite Multi-Installator" not "Multi-Site", since this later should deal with using an instance of etomite to administer (drive) multiple Etomite live websites.
Am I wrong ?
Anyway, great stuff... ;-)
deadline
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users


This topic is locked








