Typo3 Lamp


Published on

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Typo3 Lamp

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