|
|
How to be a CMS ASP-Hoster with Flux CMSThe install directory should now contain all you need. It will be some handwork (mainly adjusting passwords and maybe locations) and if you don't have shell access and access to the httpd.conf files even more. But mass hosting would still be possible without those posssibilities. Just more work. If that's the case, look at the scripts and it should be somehow clear, what has to be done. If not, just ask (I actually didn't test these instructions, so they may be errors in there) httpd.conf
ServerName one.com directory layout
mkdir hosts/ #in BX PROJECT_DIR config filescopy everything from install/conf-shared/ to conf/ adjust the mysql parameters in config.xml: The adjustments are for the "global access", not for one single-installation. All hosts are later running under the same mysql-user. So the tableprefix-parameter is not being used but gets fetched from the master-table (see below). To have immediate success later, comment out the whole block "<permm type="permm">" Now do the following: The important parameters are: If you want to create new databases "on the fly", you also have to set the root-parameters, else, you have to comment them out! .htaccessand make adjustements, if it needs them RewriteMapWe also use RewriteMap from mod_rewrite. See I added the following to our .htaccess: The Map hostdir contains the following: one.com hosts/one/ (this file is automatically created with the installer explained below) and the RewriteMap definition go into httpd.conf in the VirtualHost directives (they can't be put into .htaccess): RewriteMap hostdir txt:/www-data/kunden/bitflux/free/cms/conf/rewrite_hosts.map The Master-DBin /install there is a sql-dump called "master.sql". Create a database called freeflux_master and use the dump to create the table in there: mysql freeflux_master < ./install/master.sql Using the installerIn install/, there's a file called "installAll.sh" which should be used to install all hosts in the pipeline. The "master" table is per default in a separate database freeflux_master, you have to change the scripts, if you want to use something else for that. The "pipeline" is an SQL table called "master", the sql dump can be found in install/master.sql. The important fields are:
Then call "installAll.sh" and all new instances not yet installed are to be installed. The install script then copies the necessary files to hosts/domainname_org/ and does the needed tables. To be able to use the installer as it is, also create a file ~/.my.cnf which containes something like this: Further adjustments
Documentation Todo's
|
Comments (1)
Oct 14, 2007
Anonymous says:
if you want to use the mdb2 mysqli-driver instead of the "regular" one, change i...if you want to use the mdb2 mysqli-driver instead of the "regular" one, change in config.xml to '<phptype>mysqli</phptype>' and in conf/after.php the line mysql_select_db($row['db']) to $db->database_name =$row['db'];