Hello and welcome to #root.bg!
Here you can find tutorials about linux, networks and their firewall, games and fun, as well as hobbies – rollers, drones and many more.
Here you can find tutorials about linux, networks and their firewall, games and fun, as well as hobbies – rollers, drones and many more.
Николай Николов Howto memcache, memcached, piwik 0
The main purpose is to load faster our heavy loaded piwik site. The latest version of piwik have memcached lib installed ,so we need to tell the piwik to use it.
Of course we need memcached server installed and running and php5-memcache package.
First , need to create file named bootstrap.php in piwik htdocs dir .After that put this on the file :
< ?php
ini_set('session.save_handler', 'memcache');
ini_set('session.save_path', 'tcp://server:port?persistent=1&weight=1&timeout=1&retry_interval=15');
That’s it!
Николай Николов Работа, Howto cache, http, https, rinetd, spy, ssl, varnish 0
I try this long time ago , but with no luck.. I wrote this tutorial but still https doesn’t workin. Its open 443 port , but in varnishlog it says “timeout”.
Today I decide to try little trick with rinetd (debian based port forwarding tool) to redirect 443 port to my local ip address of the web server. This is my rinetd.conf :
# # this is the configuration file for rinetd, the internet redirection server # # you may specify global allow and deny rules here # only ip addresses are matched, hostnames cannot be specified here # the wildcards you may use are * and ? # allow * # # forwarding rules come here # # you may specify allow and deny rules after a specific forwarding rule # to apply to only that forwarding rule # # bindadress bindport connectaddress connectport my.web.address.of.varnish.cache.server 443 192.168.*.* 443 # logging information logfile /var/log/rinetd.log # uncomment the following line if you want web-server style logfile format # logcommon
I remove 443 port on /etc/default/varnish , restart rinetd and now my blog works with https and spdy!
I know that varnish now doesn’t cache , but the main purpose is http to works , and now it works! Now I’m behind varnish again! I feel good yeah! My score at pingdom will continue to increase :whistle:
Николай Николов Работа, Howto css, etag, js, minify, pingdom, varnish, w3 total cache, wp-supercache 0
Привет, днес ще пиша за тези два страхотни плугина за кеширане. От около 2 години използвам WP SuperCache и бях много доволен заради това как е направен юзър френдли и колко лесно се работи с него.
Тъй като мен ме гризе отвътре да се занимавам с нещо по-предизвикателно , реших днес да сменя WP SuperCache с другия така прехвален плугин W3 Total Cache. Този плугин го ползвам в един от сайтовете ми, и наскоро видях че има голям ъпдейт , че така реших ,че е момента и аз да го пробвам. Хареса ми това колко много функции има, поддръжка на ETag ,компресирането на css и js , работи с varnish който ползвам и аз и много други! Просто страхотно!
Разбира се, имах малко проблеми в началото точно с minify настройките му , но не ми отне много време да ги оправя и да тествам след това.
Прилагам графика от pingdom за резултатите на блога ми в период от няколко месеца, където си личи че работата ми си струва, и резултатите говорят сами за себе си 🙂
Линк към history-то на pingdom от днес и от Януари.
Ако някой има въпроси по темата , ще се радвам да му помогна!
ПС, смених опциите в менюто Page Cache от Disk на Memcached , тъй като ползвам memcached cluster , ефекта беше мигновен! 91 от 100 🙂
Николай Николов Howto, Iphone/MacOS apple, bug, find my iphone, imessage, iphone 3gs 0
I’ve got problem with my 3gs with my imessage and find my iphone , I never got working those apple functions on 3gs before today! 🙂
Today I buy new 4S so the 3gs model is now unnecessary. I deside to erase it all and install it like new iphone. I put those steps: Settings/General/Reset/Erase All Content and Settings.
Now put one sim card for the test. After all I activate the telephone and deside to test the iMessage function. For my surprise the button comes blue and I send message to my other iphone. Now i turn on “Find my iphone” and log to see is it works – lol , working!
For those years I never try “erase all” but now I have never to lose and effect is incredible!
I thing that this was a bug, because I try to fix it many times! I search for this problem in google and saw how many people got it in their 3gs’s.
In the end , regards to apple! 🙂