| Wednesday 30 July 2003 7:01:05 am 
                                                                 Using the tutorial to create a new site 'mybookstore.com' 
First of all I have run the windows installer.The tutorial give the example of using hostname so I have put an entry in my host file:
 127.0.0.1 ww.mybookstore.com localhost admin.bookstore.com
 (I can ping www.mybookstore.com with reply from 127.0.0.1)
 I have then created a new mysql database.
 C:\ez\mysql\bin\mysql.exe
 mysql> create database bookstore;
 Query OK, 1 row affected (0.04 sec)
 mysql> grant all on bookstore.* to bookstore@localhost identified by 'bookstore';
 Query OK, 0 rows affected (0.45 sec)
 mysql> exit
 Bye
 
In the C:\ez\Exponential\settings\siteaccess folder there are sub folders called admin, demo, sdk and user. I have renamed these to org_admin, org_demo, org_sdk and org_user.I have then created folders admin and www
 I have also created the folder C:\ez\Exponential\settings\override
 
I have then set- up the C:\ez\Exponential\settings\site.ini file and made the following changes:[SiteAccessSettings]
 CheckValidity=true
 
I have then set-up the site via IE. http://127.0.0.1/index.phpSystem Check - No problems
 Database set-up
 Servername localhost
 Socket
 Databasename bookstore
 Username bookstore
 Password ********* (bookstore)
 Confirm password ********* (bookstore)
 
The database was successfully initialised (demo data not installed)Email Settings left blank
 Site Details - Title - Bookstore - URL - www.bookstore.com
 
4 files created in C:\ez\Exponential\settings\overridei18n.ini.append.php image.ini.append.php setup.ini.append.php site.ini.append.php
 
The tutorial advises that you need to make changes in site.ini but I have changed site.ini.append.php[SiteAccessSettings]
 MatchOrder=host
 HostMatchRegexp=^(.+)\.mybookstore\.com$
 HostMatchSubtextPost=\.mybookstore\.com
 
I have then created folder/file C:\ez\Exponential\settings\siteaccess\admin\site.ini.append with settings:[SiteSettings]
 LoginPage=custom
 [SiteAccessSettings]
 RequireUserLogin=true
 
And also C:\ez\Exponential\settings\siteaccess\www\site.ini.append with the setting:[DesignSettings]
 SiteDesign=mybookstore
 [SiteAccessSettings]
 RequireUserLogin=false
 
I have then created folder/file C:\ez\Exponential\design\mybookstore\templates\pagelayout.tplWith the contents (from the tutorial):
 
If I try to access http://admin.mybookstore.com I get the page cannot be displayed.So I logged into the site http://127.0.0.1/index.php using admin and publish
 Went to setup > content and created a new class called Book as per the tutorial
 (ID 14)
 Created a folder in root called Books. Clicked on Books and created a new Book and sent for publishing. Created a template line_class_14.tpl and full_class_14.tpl in C:\ez\Exponential\design\mybookstore\override\templates\node\view 
If I access admin.mybookstore.com/index.php I am taken to the login page and can login using admin - publishI also get this if I access www.mybookstore.com/index.php
 
This appears to be directly related to DefaultAccess entry in the fileIn C:\ez\Exponential\settings\override\site.ini.append.php
 If it is set to admin I get the login page for both URLs and if it is set to www I get to the site without logging in but cannot see the book data I inputted.
 I also get a link for Default object view. Click to create a custom template ??
 So, can anyone help me with what's wrong in the set-up? Regards DT |