I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis
onto
the box and here's how I did it and some things to look
out for.
To install:
<?php | |
/** | |
* @author Branko Ajzele <ajzele@gmail.com, http://foggyline.net> | |
*/ | |
$XMLRequestType = 'RacunZahtjev'; /* RacunZahtjev OR PoslovniProstorZahtjev */ | |
<frontend> | |
<events> | |
<!-- logs --> | |
<controller_action_predispatch> | |
<observers><log><type>disabled</type></log></observers> | |
</controller_action_predispatch> | |
<controller_action_postdispatch> | |
<observers><log><type>disabled</type></log></observers> | |
</controller_action_postdispatch> | |
<customer_login> |
diff -rupN mage_org/app/code/core/Mage/Catalog/Model/Url.php src_shop/app/code/core/Mage/Catalog/Model/Url.php | |
--- mage_org/app/code/core/Mage/Catalog/Model/Url.php 2013-11-19 00:48:25.679009391 +0100 | |
+++ src_shop/app/code/core/Mage/Catalog/Model/Url.php 2013-11-19 00:49:24.188005601 +0100 | |
@@ -643,13 +643,24 @@ class Mage_Catalog_Model_Url | |
$this->_rewrite = $rewrite; | |
return $requestPath; | |
} | |
+ | |
+ // avoid unnecessary creation of new url_keys for duplicate url keys | |
+ $noSuffixPath = substr($requestPath, 0, -(strlen($suffix))); |
# Symfony 2, 3, 4 color scheme - aka monolog | |
# Usage: multitail -cS symfony logfile | |
# Inspired by: https://gist.github.com/Stubbs/9504462 | |
colorscheme:symfony | |
cs_re:white,,bold:^\[....-..-.. ..:..:..\] | |
cs_re:cyan: .*\.(DEBUG): | |
cs_re:blue: .*\.(INFO|NOTICE): | |
cs_re:yellow: .*\.(WARNING): | |
cs_re:red: .*\.(ERROR|CRITICAL): | |
cs_re:red:(ERROR|CRITICAL) |
# Template Updated At 2019-04-17 | |
upstream php_backend_%domain_idn%_%web_ssl_port% { | |
server %backend_lsnr%; | |
#server %backend_lsnr% backup; | |
} | |
server { | |
listen %ip%:%web_ssl_port%; | |
server_name %domain_idn% %alias_idn%; |
This is a proposal for PHP extension to disable running unapproved PHP code, uploaded using security holes or by any other means.