How can a website build in PHP (like Facebook) can be so fast and (sorry if I’m wrong) secure ?
Do they use their own compiled version ? What kind special techniques do you guys think they use?
What config do we need to have to make PHP viable for huge scale project?
That have a PHP compiler that transforms PHP into C++ (Hip-Hop), this is one big improvement. They also have written there entire backend in C++ (transport data through Apache Thrift) and built Cassandra.
I don’t think their PHP necessarily has any specific security tools (or I haven’t any seen any of them). Speaking for experience with Thrift, it helps when both frontend/backend understand exploits and both work to ensure there are no issues.
All of these things have helped alot, check our High Scalability for more information about scaling your stack