Skip to content

Instantly share code, notes, and snippets.

@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 / 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_
#!/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

@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 / cache.php
Last active August 29, 2015 14:19 — forked from bjarneo/cache.php
<?php
/**
* Clear cache cli style
*
*
* @category Mage
* @package Mage_Shell
* @copyright Copyright (c) 2015 Bjarne Oeverli (http://bjarneo.codes)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

1. Download Magento 2

    git clone https://github.com/magento/magento2.git
Navigate to magento2 directory...
    cd magento2
#!/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=""
#!/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=""
#!/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=""