
It all started with php update, a long time ago and in the same galaxy. And from that moment I was pursued by one vile problem that spoiled my life for quite a long time.
I use php for only a few sites: a wordpress blog, a phpbb forum and a small modx site. This works in conjunction with nginx + php-fpm. I basically don't use Apache, since nginx can do everything. Each fpm has its own account, its own home, everything is stabbed and cut, so that it only works to please my paranoia.
And after that very ancient update, weirdness began. When opening one of the sites and then opening another site, I received an error from the previous one.
')
That is, when opening a site on phpbb and following a site on modx, I saw an error about an uninstalled block from phpbb, when opening a site on modx and following a blog on wordpress, I saw hi 503 from modx. As if in some strange way, one fpm thread accessed scripts from another, working in another directory, another port, another user in another group ...
Since that time, much water has flowed, nginx configurations have been rewritten several times, fpm'y changed, used .sock instead of the port. The result was the same - when you quickly open two different sites, the answer was from Pergy, and the second I get a glitch of the engine of the first site.
If the sites were popular, I would have snatched up with a search for a solution, but the forum hung half-dead, a few people visit the blog, like modx. And here a couple of days ago, being in working nastronii and restoring order on the server, I wrote an interesting article:
How To Host Multiple Websites On Ubuntu 14.04 .
And it was this quotation that clarified to me “who is who ...”:
Amazingly, if you’re running again, it’s not. It has not been fixed yet.
I said to myself:
“this means that the opcache sausages my fpms for the last 7 months, pushing my cache and carrying the tower to unhappy CMS!”There was a small edit
opcache.enable=0
and ... the problem disappeared. She is no more. Three unfortunate sites work happily, the server snaps into a hole in the 384 vent hole, and I just touched the nirvana and even listened to a couple of tracks.
What did I lose with opcache shutdown? opcache. How did this affect my performance? No I use the nginx cache on the raid server, and 8 cores are loaded on average by 5-10%. So the extra parsing of php resource scripts will not eat. And visually nothing slows down, including under load tests.
A special case? May be. Already not bug? Full Why not php7? Because. Update? Nope, I write JSP code.