开发者

serving sites with compiled PHP code

so apparently it's possible to compile PHP do decouple it from the interpreter:

http://en.wikipedia.org/wiki/Php#Compilers

but then once you do so, how would you configure apache so that it'll be abl开发者_Go百科e to serve websites using the compiled PHP instead of interpreted PHP?


https://github.com/facebook/hiphop-php/wiki/Running-HipHop

You have an example here on how to compile WordPress and how to run it.

However, for smaller projects it's much better to use APC. It provides extreme speed gain - not as much as hiphop, but you can still use Apache, eval() and run standard php configuration.


It will depend on the compiler you are using and the OS configuration on which you wish to run the application. A compiler which may be worth looking at is HipHop (developed by Facebook). They have installation and configuration details available here: https://github.com/facebook/hiphop-php/wiki/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜