Typo3 Lamp
Upcoming SlideShare
Loading in...5

Typo3 Lamp






Total Views
Views on SlideShare
Embed Views



1 Embed 3

http://www.slideshare.net 3



Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

Typo3 Lamp Typo3 Lamp Presentation Transcript

  • CMS & Typo3
      • Module 2: Typo3 and LAMP architecture
      • < [email_address] >
  • CMS – Module 2 Typo3 and LAMP architecture
    • Session index:
      • Content Management with Typo3.
      • Basic requirements of LAMP architecture.
      • Typo3 installation.
      • The administration interface ( Backend )
  • CMS – Module 2 Typo3 and LAMP architecture
    • 1. Content Management with Typo3
      • Typo3: Content Management Development Framework with GPL license.
        • http://typo3.com : Corporative project web.
        • http://typo3.org : Community web.
      • Started in 2000 by Danish developer Kasper Skårhøj.
      • Completely Free Software coordinated by non-profitable TYPO3 Association created in November of 2004.
        • http://association.typo3.org/
      • Currently installed in over 200.000 servers all over the world and translated into 44 languages.
  • CMS – Module 2 Typo3 and LAMP architecture
      • Plenty of integrated features. Specially remarkable his visual template integration system:
        • http://typo3.com/Feature_list.1243.0.html
      • Important Success Stories: Projects for New York Times, Wolkswagen investors, Amnistía internacional or First American Bank, among others:
        • http://typo3.org/about/sites-made-with-typo3/
      • In a local ambi t, PSA Citroën, Bayern, and Xunta de Galicia.
      • Good documentation and high community participation in the mailing lists:
        • http://lists.netfielders.de/
        • http://typo3.org/documentation/
  • CMS – Module 2 Typo3 and LAMP architecture
    • 2. Basic requirements of Typo3 LAMP architecture :
      • Standard requirements of LAMP architecture, with additional components as ImageMagik/GD or PHPAccelerators. This is in an standard installation:
        • Linux Operating System ( Debian, Suse, Red Hat, Ubuntu, etc. )
        • Apache 2 (optionally. Apache )
        • PHP 5
        • MySQL (optionally. PostgresSQL or Oracle).
      • LAMP packages installation ( in a Debian / Ubuntu environment ):
        • # apt-get install php5 mysql-server apache2 php5-mysql
          • libapache2-mod-auth-mysql libapache2-mod-php5 /* Required */
        • # apt-get install php5-cli php5-gd php5-curl php5-imap php5-mcrypt php5-ldap
          • imagemagick ldap-utils ldapscripts tidy /* Complementary */
  • CMS – Module 2 Typo3 and LAMP architecture
    • Other optional components:
      • Mail services to manage notifications sent from the portal: sendmail .
      • PHP accelerator to reduce the execution time of the web application: eAccelerator .
      • LDAP server or connectivity with it: OpenLDAP .
      • Application Server or connectivity with it for the deploy of other components as a Central Authentication System: Tomcat
  • CMS – Module 2 Typo3 and LAMP architecture
    • Automated process execution cron
      • Some projects should be specifically planned by the Operating System, as for instance, the programmed mail delivery, index regeneration, etc.
      • Some of this processes must interact with the periodic process planner: cron
      • Their configuration is defined in the system file:
        • /etc/cron.tab
      • For instance, to execute the mail system process every day at 00:00 :
        • 0 0 * * * * (dir)/typo3conf/ext/gl_tcdirectmail/cli/mailer.php > /dev/null 2>&1
  • CMS – Module 2 Typo3 and LAMP architecture
    • 3. Typo3 installation.
      • Installation using source font packages ( src ) and skeleton ( dummy ), in a base directory in the server ( commonly in /var/www/project_name ).
        • The src package contains the kernel of the system, this is, all the functionalities and libraries used natively by Typo3.
                    • base_dir# tar xvzf typo3_src-4.2.0.tar.gz
        • The dummy package contains the configuration files, basic structure and installed extensions for a basic web site. It contains symbolic links to the src directory:
                  • base_dir# tar xvzf dummy-4.2.0.tar.gz
  • CMS – Module 2 Typo3 and LAMP architecture
      • Manual symbolic link construction (required in previous versions or when updating src version)
        • base_dir# rm index.php; ln -s ../typo3_src/index.php index.php
        • base_dir# rm typo3; ln -s ../typo3_src/typo3/ typo3
        • base_dir# rm typo3_src; ln -s ../web_src/ typo3_src
        • base_dir# ln -s ../typo3_src/tslib tslib
      • Permission adjustments for apache user on installation directories:
        • base_dir# chown -R www-data *; chmod o+wrx -R *
      • Creation of database to be used by the website and the implicit database users to them:
        • # mysql> create database standard_project;
        • # mysql> grant all on standard_project.* to 'user'@'localhost' identified by 'user';
  • CMS – Module 2 Typo3 and LAMP architecture
      • Revision of Virtualhost file in Apache:
        • # nano /etc/apache2/sites-available/00n-exemplo.localhost;
      • Virtualhost specific configuration:
          • <VirtualHost>
          • ServerName exemplo-typo3.localhost
          • DocumentRoot /var/www/exemplo-typo3/exemplo_web/
          • <Directory /var/www/cruisecontrol/exemplo-typo3/exemplo_web/>
          • Allow from all
          • Options -Indexes FollowSymLinks
          • </Directory>
          • </VirtualHost>
      • For remote access to the installation wizard it is necessary create the file:
          • /basedir/dummy/ typo3conf/ENABLE_INSTALL_TOOL
  • CMS – Module 2 Typo3 and LAMP architecture
      • Start of installation wizard in the base URL defined in the Virtual Host:
  • CMS – Module 2 Typo3 and LAMP architecture
    • Once completed the assistant, environment parameters can be reviewed in the installation menu ( selectiong continue to configure TYPO3 ).
  • CMS – Module 2 Typo3 and LAMP architecture
      • After finishing the wizard the two views of the web site can be accessed:
        • http://exemplo-typo3.localhost : Frontend or standard public view.
        • http://exemplo-typo3.localhost /typo3 : Backend or administration view.
      • The access to the frontend will be showing an error message, as no valid page structure and templates were defined.
        • It will be necessary to build a basic website structure or Main Template .
  • CMS – Module 2 Typo3 and LAMP architecture
      • We will log in the backend with the standard user ( admin / password ) to go on with the installation of basic extensions.
  • CMS & Typo3: Module 3 The administration interface
    • 4. The administration interface
      • Two separate access views to the portal
        • Frontend ( / ) : External view ( initially public to all users )
        • Backend ( /typo3 ): Administration view
      • Standard Modules and Functions in Typo3:
        • Web: Page Tree content administration
        • File: Management of media filesystem structure
        • User tools: Logged user operations and settings
        • Admin tools: Several administrative tools
  • CMS – Module 2 The administration interface
    • The extensions system in Typo3 is the mechanism of new component importation and installation. It's very easy and it's based on a main repository:
        • TER (Typo3 Extension Repository)
      • It is synchronized with extension mirrors and allows automatic installation of packages from the administration interfaces.
      • It is recommended to set the options to display shy and unrevised packages to be able to download and test all extensions from the repository.
      • All this options are used in the module “Tools > Extension administration”.
  • CMS – Module 2 The administration interface
    • Frequently used extensions:
      • templavoila : Extension for the translation of static HTML files to Typo3 templates.
      • tt_news : News support and basis for multitude of extensions ( categorization, events, feeds, etc. )
      • page_css_selector : CSS file association to branches of the page tree.
      • real_url : Friendly management of URLs.
      • kickstarter : Meta extension for development of new functionalities.
      • Translation handling extensions. RSS. Search boxes, LDAP, etc.
  • CMS – Module 2 The administration interface
    • Templavoilà template system
      • Allows an easy adaptation of graphical design to the website and the organization of the areas that the page structure consists of.
      • Translates static HTML of each page type to dynamic content structures
      • Mapping process = DS ( Data Structures ) + TO ( Template Objects ) creation
      • The Templavoilà documentation ( Futuristic Template building ) replaces the Modern Template Building tutorial
        • http://typo3.org/documentation/document-library/tutorials/doc_tut_ftb1/current/