Skip to content

Instantly share code, notes, and snippets.

Deploying Auto-Scalable Magento Cluster

MagenX magenx

Deploying Auto-Scalable Magento Cluster
Block or report user

Report or block magenx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
magenx / gist:9604368
Last active Aug 29, 2015
Clear apc cache
View gist:9604368
myip=$(curl -s
## monitor app folder and clear apc/opcode cache
/usr/bin/inotifywait -e modify \
-mrq /var/www/html/magento/app | while read line; do
echo -n "$line " >> /var/log/app_monitor.log
echo `date | cut -d " " -f1-4` >> /var/log/app_monitor.log
wget -O /dev/null http://$myip/apc_opcache/apc_clear.php >/dev/null 2>&1
arosenhagen / index.php
Last active Feb 21, 2020
[magento] multidomain-multistore-multistoreview setup with visible language codes
View index.php

Use these snippets to setup a magento installation with the following structure:

ck-on / ocp.php
Last active Feb 21, 2020
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)#ocp #php #opcache #opcode #cache #zend #optimizerplus #optimizer+
View ocp.php
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.7
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.7 2015-09-01 regex fix for PHP7 phpinfo
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
magento-team / 2500 config products
Created Nov 8, 2012
Create 2500 configurable products, Magento CE
View 2500 config products
* Error reporting
error_reporting(E_ALL | E_STRICT);
* Compilation includes configuration file
define('MAGENTO_ROOT', getcwd());
You can’t perform that action at this time.