PHP Meetup 30 April 2013

시작하기. 무료입니다
또는 회원 가입 e메일 주소
PHP Meetup 30 April 2013 저자: Mind Map: PHP Meetup 30 April 2013

1. Automate Dev Environment Setups by Michael Cheng

1.1. Problems it solved

1.1.1. Focus on the important thing - writing code

1.1.2. Automated install

1.1.3. Synchronisation of project files with VM

1.2. What is it?

1.2.1. Development Virtual machines

1.2.2. Allow automated setup via Puppet or shell script

1.2.3. Spins up a VM with a base OS Linux and Windows too!

1.2.4. Supports Plug-ins eg. to spin up VMWare / AWS instances etc

1.3. Demo

1.3.1. Download Vagrant Latest 1.2.2 for mac

1.3.2. Pick up a base OS

1.3.3. Download OS at

1.3.4. Common Vagrant Commands vagrant box add name url vagrant init name vagrant box list vagrant up vagrant suspend vagrant reload restart the OS vagrant destroy vagrant ssh Login to the VM vagrant provision Runs the provisioning script without reload

1.3.5. Cheap Virtual machines

1.4. Provisioning Script

1.4.1. Puppet Vagrant Provisioning Script by Michael Puppet Forge

1.4.2. Chef

1.4.3. Puppet / Chef are already built into Vagrant boxes

2. Why you should use PhpStorm! by Arul Kumuran

2.1. PHP Development with PhpStorm

2.2. By JetBrains

2.3. Free for Open Source Development

2.4. PhpStorm includes Webstorm

2.5. Composer Integration

2.5.1. Easily setup a composer project

2.5.2. Add dependancies easily

2.5.3. Plenty of Packages available

2.6. Deployment

2.6.1. Configure FTP!

2.6.2. Upload on save

2.6.3. Compare files between server and local version

2.7. Show changes / undo changes

2.8. Version control built in

2.8.1. Show changes

2.8.2. VCS History etc

2.9. Built in coding standards in PhpStorm

2.9.1. Eg. 4 spaces, 2 spaces

2.10. Great tool to take the 30 days trial!

3. Your Magento is Speeding! by Ashish

3.1. Background

3.1.1. Past years worked alot on all the different eCommerce platforms

3.2. What is Magento

3.2.1. Open Source platform built on PHP Zend Framework

3.2.2. Acquired by eBay in 2011

3.2.3. Comes in 3 varients Community Magento Go Hosted Magento Enterprise Edition

3.2.4. Over 4 million downloads!

3.2.5. Flexible

3.2.6. Extendable

3.2.7. Modular

3.2.8. Upgradable

3.2.9. Scalable

3.3. Comparison with other eCommerce Platform

3.3.1. Growing huge trends

3.3.2. Team behind osCommerce is same!?

3.3.3. Magento is the leader in eCommerce Domain

3.4. People think Magento is Slow..Really?

3.4.1. Truth: Resource intensive

3.4.2. How to debug? Identify server resources is the cpu/mem etc enough? Number of products, categories how many SKUs etc

3.5. Solutions

3.5.1. Optimize Magento Configuration Merge JS/CSS Files Lower the requests

3.5.2. Compile Magento lookup to only 1 location over multiple directories Increase Magento Performance by 25-40% Once enabled no upgrade to store no changes to core settings etc decompile and compile again Systems > Tools > Compilation

3.5.3. Disable Magento Logs System > Configuration > Advanced > Developer (Log settings)

3.5.4. Enable Magento Cache System > Cache Management

3.5.5. .htaccess configuration Enable gzip compression Use header expires Enable Apache keepAlive KeepAlive On MaxKeepAliveRequests 100 Disable Etag FileEtag None

3.5.6. Web server and browser configuration Use Varnish Cache Use PHP Accelerator APC Xcache eAccelerator Use CDN Reduce External Sources Images iFrames Deploy NginX or Litespeed Don't use CHEAP hosting!

3.5.7. MySQL Configuration Increase InnoDB buffer pool innodb_buffer_pool_size = 512M Less disk I/O means faster Multithreading innodb_thread_concurrency = 2 x [# of CPUs] + 2 Concurrent connections to the db tables Enable query cache query_cache_size = 32M Enable sort buffer sort_buffer_size = 4M

3.6. Tools for measuring performance

3.6.1. Magento Speed Tester

3.6.2. Speed Monitoring Pingdom

3.6.3. Fooman Speedster For combining and compressing and caching JS/CSS

3.6.4. Page cache Extension Not in community edition Works with Varnish Cache Full Page Cache improves performance by 20%

3.7. Q&A

3.7.1. What kind of AWS Instance? Minimum of 1GB Ram

3.7.2. Redmart uses Magento with AWS/Load Balancer

3.7.3. Why every upgrade in Magento breaks Template / Layout?