james david low

live / work / play / worship

Detecting Quercus

At Onoko, I’ve been using Quercus to run PHP applications on Elastic Beanstalk, Amazon’s scalable Java stack.

Quercus is great, although I’ve found I have to work round some of its unimplemented methods or implementation differences from PHP. I test on a plain Linux/Apache/PHP server though, and wanted a way to detect Quercus so I can conditionally use different work arounds. You can do this with the following PHP:

$IS_QUERCUS = strpos($_SERVER[“SERVER_SOFTWARE”],’Quercus’) !== false;

If you found any of the software useful, please consider supporting its further developement by donating.


    You can also check for the existence of quercus-specific functions like quercus_version().

    4:51am / Jun 22nd / 12 Nam

    Thanks Nam, saw that you’re starting to work through some of the Quercus bugs that I posted. Thanks a lot, and looking forward to a version of Quercus that I don’t have to use my own custom build!

    7:50am / Jun 29th / 12 James Low