Skip to content

Instantly share code, notes, and snippets.

@helmithejoe
helmithejoe / yii.nginx.conf
Created October 10, 2017 02:25 — forked from aqlx86/yii.nginx.conf
Yii +Nginx + PHP-FPM configuration
server {
set $host_path "/var/www/yoursite.com";
access_log /var/www/yoursite.com/log/access.log main;
server_name yoursite.com www.yoursite.com;
root $host_path/htdocs;
set $yii_bootstrap "index.php";
@helmithejoe
helmithejoe / opcache.ini
Created August 12, 2017 16:31 — forked from tegansnyder/opcache.ini
OpCache settings for Magento on PHP 5.5.14. Store this file as /etc/php.d/opcache.ini
; Enable Zend OPcache extension module
zend_extension=opcache.so
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=0
; The OPcache shared memory storage size.
@helmithejoe
helmithejoe / installer.sh
Created August 5, 2017 07:21 — forked from pjkelly/installer.sh
Installing PHPUnit via Pear on Ubuntu Lucid
# Uninstall any pre-existing packaged
# versions of phpunit
sudo apt-get remove phpunit
# Install pear via apt-get
sudo apt-get install php-pear
# Update existing pear channels
sudo pear channel-update pear.php.net
@helmithejoe
helmithejoe / 0001-BUGIFX-Magento-Zend-Framework-1-PHP5.6.patch
Created July 21, 2017 02:30 — forked from renttek/0001-BUGIFX-Magento-Zend-Framework-1-PHP5.6.patch
Bugfix for Zend Framework 1 in Magento (>= 1.7.*.*) + PHP 5.6
From 473846959772d8160b34b92ae3bcecddf24b972f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julian=20Nu=C3=9F?= <julian.nuss@outlook.com>
Date: Tue, 23 Sep 2014 21:07:29 +0200
Subject: [PATCH 1/1] [BUGIFX] Zend Framework 1 + PHP5.6
---
lib/Zend/Locale/Format.php | 22 +++++++++++-----------
lib/Zend/Service/Audioscrobbler.php | 6 +++---
lib/Zend/Service/Technorati.php | 6 +++---
lib/Zend/Validate/Hostname.php | 4 ++--