Open and login into your TCC
From the main menu choose Site → Manage sites → Add new site
You have to enter site details as follows:
TFT_Web_Page. Keep it short - 2-3
letters. In the example TFT stands for Tangra Framework
Test
Click button. When saved a record for this site will be created and you will be redirected to “Manage site” page for this site.
Create new VirtualHost for your new site in Apache configuration.
For creating virtual host please consult your Apache documentation.
Example 3.1. Example for VirtualHost record:
<VirtualHost *:80>
ServerAdmin user@somedomain.tld
DocumentRoot /var/www/sites/tft/htdocs
ServerName tft.myhost
ErrorDocument 404 /not_found.php
</VirtualHost>
On the row “Install template” click link to the right to select site template. Site template is a predefined set of modules. Select “Jabba” template. Selecting template will return you to “Manage site” page.
On “Manage site” page, click to install the site using template “Jabba” - a list of all modules (sorted in order of installation) and their parameters will be shown:
Setting module installation parameters
There are 3 types of module installation parameters:
When parameter has a value it is shown in green color.
You will have to set at least following parameters:
You may set these paths to point to libs inside tcc/ext_inc directory but generally that is not good idea. Best solution is to download these libs (» Smarty, » ADOdb) and extract them in a directory that will be common for all of your TF applications. Example: /var/www/inc.
Note: Please note that it is NOT good idea db-dsn and session-dsn to create persistent connections (i.e. with ?persistent instead of ?new). Using persistent connections along with transactions (which are widely used in TF) may lead to DB deadlocks.
After filling above parameters click on "Install" link. You will see:
Actual installation
Click on button and installation will start.
On error above the table (grid) with modules error message will appear in red color.
On success you will see "Installation complete" above the table (grid) and next to all modules, status will be green "Installed".
Check out your brand new tangra powered site
Open a browser and point it to hostname that you configured when created the VirtualHost (in our example above - tft.myhost).
Note: If you don't use fully qualified domain name like in the example above (i.e. tft.myhost) you may need to add new record in your /etc/hosts file (Linux) or C:\WINDOWS\system32\drivers\etc\hosts (Windows) in order to be able to open the site in your browser.
You should see: