Skip to content

Instantly share code, notes, and snippets.

@ryaan-anthony
ryaan-anthony / 5344.sh
Created April 17, 2015 18:24
magento EE supp patch
#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@ryaan-anthony
ryaan-anthony / PATCH.md
Last active August 29, 2015 14:19
Patch 5344 Magento CE & EE

Login as account via SSH

...

5344 Patch - Community 1.7.x

cd ~/public_html && wget https://gist.githubusercontent.com/ryaan-anthony/4f0a7b83fbc31a97f74c/raw/76b551fd9f70fb24b6c70368d105b85bef93feb3/5344.sh --no-check-certificate && chmod 755 5344.sh && ./5344.sh && rm 5344.sh

5344 Patch - Community 1.8.x - 1.9.x

#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@ryaan-anthony
ryaan-anthony / php-fpm.conf
Last active August 29, 2015 14:19
PHP-FPM conf for website
[_HOSTNAME_]
listen = /var/run/php-fpm/_HOSTNAME_.sock
listen.allowed_clients = 127.0.0.1
listen.owner = _USERNAME_
listen.group = nginx
listen.mode = 0666
user = _USERNAME_
@ryaan-anthony
ryaan-anthony / rackspace-setup.md
Last active August 29, 2015 14:19
Provisioning a "Magento prepped" Rackspace server. For multi-site instance, duplicate magento.conf files for each domain (more granular configurations) or add to server aliases (share config for all domains).

Prerequisites

  • nginx
  • php-fpm
  • percona
  • redis

Important: Start off as account user NOT ROOT.

Set up public root (as user)

@ryaan-anthony
ryaan-anthony / nginx-website.conf
Created April 16, 2015 16:45
Nginx magento host config
server {
listen 80 default;
listen 443 default ssl;
#ssl_certificate /etc/pki/tls/certs/localhost.crt;
#ssl_certificate_key /etc/pki/tls/private/localhost.key;
server_name www._HOSTNAME_ _HOSTNAME_;
root /home/ccardi/public_html;
@ryaan-anthony
ryaan-anthony / nginx.conf
Created April 16, 2015 16:34
/etc/nginx/nginx.conf
user nginx;
worker_processes 24;
worker_rlimit_nofile 150000;
error_log /var/log/nginx/error.log error;
pid /var/run/nginx.pid;
events {
worker_connections 4096;
use epoll;
@ryaan-anthony
ryaan-anthony / install-vagrant.md
Last active August 29, 2015 14:19
Installing Vagrant on OSX 10.10

Install Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Cask

brew install caskroom/cask/brew-cask

Install Virtualbox

@ryaan-anthony
ryaan-anthony / wordpress-setup.md
Last active August 29, 2015 14:18
Set up WordPress on OSX 10.10

Step 1 - Download WordPress.

download wordpress

curl -o wordpress.tar.gz https://wordpress.org/latest.tar.gz

extract intp Documents folder

tar -C ~/Documents -xzf wordpress.tar.gz
@ryaan-anthony
ryaan-anthony / webserver-osx.md
Last active August 29, 2015 14:18
How to start developing locally on OSX 10.10

create a Sites directory

mkdir ~/Sites

open apache user config

sudo vi /etc/apache2/users/*.conf

and set your config to look like this