Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

PHP Meetup 30 April 2013 by Mind Map: PHP Meetup 30 April 2013
0.0 stars - reviews range from 0 to 5

PHP Meetup 30 April 2013

Automate Dev Environment Setups by Michael Cheng

Presentation by Michael Cheng

Problems it solved

Focus on the important thing - writing code

Automated install

Synchronisation of project files with VM

What is it?

Development Virtual machines

Allow automated setup via Puppet or shell script

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

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

Demo

Download Vagrant, Latest 1.2.2 for mac

Pick up a base OS

Download OS at Vagrantbox.es

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

Cheap Virtual machines

Provisioning Script

Puppet, Vagrant Provisioning Script by Michael, https://github.com/miccheng/vagrant-lamp-centos63, Puppet Forge

Chef

Puppet / Chef are already built into Vagrant boxes

Why you should use PhpStorm! by Arul Kumuran

LuracastRestler

PHP Development with PhpStorm

By JetBrains

Free for Open Source Development

PhpStorm includes Webstorm

Composer Integration

Easily setup a composer project

Add dependancies easily

Plenty of Packages available Packagist.org

Deployment

Configure FTP!

Upload on save

Compare files between server and local version

Show changes / undo changes

Version control built in

Show changes

VCS History etc

Built in coding standards in PhpStorm

Eg. 4 spaces, 2 spaces

Great tool to take the 30 days trial!

Your Magento is Speeding! by Ashish

By Ashish PurohitRanosys Technologies Pte Ltdashish@ranosys.com

Background

Past years worked alot on all the different eCommerce platforms

What is Magento

Open Source platform built on PHP Zend Framework

Acquired by eBay in 2011

Comes in 3 varients, Community, Magento Go, Hosted Magento, Enterprise Edition

Over 4 million downloads!

Flexible

Extendable

Modular

Upgradable

Scalable

Comparison with other eCommerce Platform

Growing huge trends

Team behind osCommerce is same!?

Magento is the leader in eCommerce Domain

People think Magento is Slow..Really?

Truth: Resource intensive

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

Solutions

Optimize Magento Configuration, Merge JS/CSS Files, Lower the requests

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

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

Enable Magento Cache, System > Cache Management

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

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!

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

Tools for measuring performance

Magento Speed Tester

Speed Monitoring, Pingdom, http://mon.itor.us

Fooman Speedster, For combining and compressing and caching JS/CSS

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

Q&A

What kind of AWS Instance?, Minimum of 1GB Ram

Redmart uses Magento with AWS/Load Balancer

Why every upgrade in Magento breaks Template / Layout?