jandbeyond - extend joomla! webserver instead
DESCRIPTION
Slideset used by Jisse Reitsma during Joomla! conference JAndBeyond, dealing with Linux-based tools that could aid Joomla! sites (webp, optipng, mod_pagespeed, maldet, and many more)TRANSCRIPT
![Page 1: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/1.jpg)
april 2012 Joomla! Database Abstractie
Extend the Joomla! webserver
instead
![Page 2: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/2.jpg)
april 2012 Joomla! Database Abstractie
Jisse Reitsma● Co-founder and developer of Yireo
MageBridge, Vm2Mage, SimpleLists, Dynamic404, SSL Redirect, ...
● System administratorLinux, HP-UX, VMware ESX
● ProgrammerJoomla!, Magento, PHP, Java, Android
● Freelance trainerJoomla! development, Magento development
![Page 3: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/3.jpg)
april 2012 Joomla! Database Abstractie
This talk● Part 1: Dealing with images (optipng, WebP)● Part 2: Dealing with CSS and Javascript● Part 3: Other stuff (mod_pagespeed, maldet)
![Page 4: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/4.jpg)
april 2012 Joomla! Database Abstractie
Requirements● We “own” the server● Using SSH is vital (basic shell experience)
![Page 5: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/5.jpg)
april 2012 Joomla! Database Abstractie
(questions?)
![Page 6: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/6.jpg)
april 2012 Joomla! Database Abstractie
Part 1:Dealing with images
![Page 7: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/7.jpg)
april 2012 Joomla! Database Abstractie
Dealing with images● Optimizing / indexing images (optipng, ...)● WebP: An alternative image-format
![Page 8: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/8.jpg)
april 2012 Joomla! Database Abstractie
Image optimization (1/2)● What to do:
– Bit depth; color palette; indexation– Less quality; resolution– Compression technique
![Page 9: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/9.jpg)
april 2012 Joomla! Database Abstractie
Image optimization (2/2)● optipng● pngcrush● pngout● jpegoptim● jpegtran
![Page 10: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/10.jpg)
april 2012 Joomla! Database Abstractie
Google WebP● Reduces image size with 25-34%● Binary file “cwebp”● Yireo extensions:
– WebP for Joomla!– WebP for Magento
![Page 11: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/11.jpg)
april 2012 Joomla! Database Abstractie
(questions?)
![Page 12: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/12.jpg)
april 2012 Joomla! Database Abstractie
Part 2:Dealing with CSS and JS
![Page 13: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/13.jpg)
april 2012 Joomla! Database Abstractie
CSS compressors● CSStidy● CSSCompressor● AjaxMin● Minify● YUICompressor
![Page 14: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/14.jpg)
april 2012 Joomla! Database Abstractie
JavaScript compressors● Packer● JSMin● Closure Compiler● YUICompressor● AjaxMin
![Page 15: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/15.jpg)
april 2012 Joomla! Database Abstractie
Also:● Forget about merging, build CSS using LESS● Use mod_deflate to compress JS/CSS output● JCH Optimize, Yireo ScriptMerge, RokGzipper
![Page 16: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/16.jpg)
april 2012 Joomla! Database Abstractie
(questions?)
![Page 17: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/17.jpg)
april 2012 Joomla! Database Abstractie
Part 3:Other stuff
![Page 18: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/18.jpg)
april 2012 Joomla! Database Abstractie
Google mod_pagespeed● Apache 2 module● Features (core filters):
– HTML optimization– CSS / JS merging and compression– Image compression– Ideal for dedicated servers, not shared
![Page 19: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/19.jpg)
april 2012 Joomla! Database Abstractie
Security tools● maldet● rkhunter● Nessus
![Page 20: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/20.jpg)
april 2012 Joomla! Database Abstractie
Also (1/2)● Kernel parameters (TCP windows, timeouts)● tmpfs / ramfs● PHP accelerator: APC, memcache, XCache, ...● Use Nginx or Lightspeed instead of Apache● MySQL optimization
![Page 21: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/21.jpg)
april 2012 Joomla! Database Abstractie
Also (2/2)● SPDY (HTTP2)● NewRelic● Piwik● Amazon S3 (s3cmd)
![Page 22: JAndBeyond - Extend Joomla! webserver instead](https://reader034.vdocuments.net/reader034/viewer/2022050720/554bca2ab4c90594278b5834/html5/thumbnails/22.jpg)
april 2012 Joomla! Database Abstractie
(questions?)