Tuesday 28 September 2004 3:34:55 am
Read the concepts here: http://ez.no/ez_publish/documentation/ez_publish_basics/site_management_in_ez_publish
Assuming your default or first site is named: "first_site"
Assuming your second site is named "second_site"
Assuming your SETUP is URL setup
Assuming your sencond site uses a different language and a different database account Assuming your DB is MySQL DB
First create the database account (database, host, user, password )for your second site A minimalistic step by step guide :
1) create a dir for settings of your second site as settings/siteaccess/second_site
2) copy files from settings/siteaccess/first_site to settings/siteaccess/second_site
4) create a dir for templates as design/second_site
6) create a dir for media storage and cache files as var/second_site 7) Edit the following settings in settings/siteaccess/second_site/site.ini.append
[SiteSettings]
SiteName=Second Site
SiteURL=www.mydomain.com/second_site
[DesignSettings]
SiteDesign=second_site
AdditionalSiteDesignList[]=first_site
[FileSettings]
VarDir=var/second_site
[DatabaseSettings]
Server=localhost
Database=second_site_database
User=my_user
Password=my_password
[ContentSettings]
TranslationList=por-PT;eng-GB //here change to your list of languages
[RegionalSettings]
Locale=eng-GB //here change to the second site language
ContentObjectLocale=eng-GB //change to the second site language
8) Add this lines to your settings/override/site.ini.append
[SiteSettings]
SiteList[]=second_site
[SiteAccessSettings]
AvailableSiteAccessList[]=second_site
Now you will need to create an extra site for admin your second site, assuming it uses a different database and a different language
9) create a dir for settings of your second site admin as settings/siteaccess/second_site_admin
10) copy files from settings/siteaccess/first_site_admin to settings/siteaccess/second_site_admin 11) Edit the following settings in settings/siteaccess/second_site/site.ini.append
[SiteSettings]
SiteName=Second Site Admin
SiteURL=www.mydomain.com/second_site_admin
[DesignSettings]
SiteDesign=admin
[FileSettings]
VarDir=var/second_site
[DatabaseSettings]
Server=localhost
Database=second_site_database
User=my_user
Password=my_password
[ContentSettings]
TranslationList=por-PT;eng-GB //here change to your list of languages
[RegionalSettings]
Locale=eng-GB //here change to the second site language
ContentObjectLocale=eng-GB //change to the second site language
12) Add this lines to your settings/override/site.ini.append
[SiteSettings]
SiteList[]=second_site_admin
[SiteAccessSettings]
AvailableSiteAccessList[]=second_site_admin
13) Clear all the caches
Lazaro
Lazaro
http://www.mzbusiness.com
|