PHP 7 Upgrade

Time for Christmas decorations,I thought.



A few days ago PHP7(.0) was released and hearing about it's performance improvements. I was so eager to add PHP7 support to BeeIMG.



After upgrading to PHP7 the nginx front end started serving server errors. The image serving was down too, due to php socket change in lighttpd. But since I was prepared for it images were back in a few minutes. during that time nginx served the cached images and only the non cached images were affected. The site was down due to missing its php memcache module. I quickly put the site in maintenance mode and removed the memcache caching, most parts of the the site was back up. The image views was collected in the redis server and were not lost. After building the redid php module manually, real time views were back online.



Next day I spent time fixing the other parts of the site, which occurred mostly due to memcache module. memcache caching was replaced with redis and I added a contingency along, so even if the redis module is missing the site should not go down.



Today I start to adding more features, testing the site and fixing the bugs. So back to work…



A Quick note: our CDN, cloudflare also enabled HTTP2 a few days ago, so when you browse our site in SSL it will be completely served in HTTP2! we also upgraded Bootstrap to 3.3.6.



Thank you for reading.

Comments

Popular posts from this blog

Stability Improvements 2020

Stability Improvements 2019

Recent Hiccups May 2016