Re: phpbb on quercus php

Sam <[email protected]> Thu, 4 May 2006 07:46:23 -0700
Newsgroups gmane.text.xml.resin.user
Message-ID <[email protected]>
> I have installed phpbb successfully, but it doesn't work properly:
> 
> There is nothing shown in browser but some table border, but after I restart
> resin server the phpbb can be display page rightly only once (
> http://localhost/bbs/index.php or http://localhost/bbs/faq.php ...) and
> then(click a link) it failed again.

An explanation of this behaviour:

Quercus executes code in two modes, interpreted and compiled, and
a third combination of the two which is `lazy'

The default behaviour is `lazy', which means that when a script
is first used it runs in interpreted mode and compilation is
started in the background.  As soon as the compilation is
finished Quercus will switch over to using the compiled version.

This means that there are two code paths, one that applies for
interpreted and one for compiled.  That is why you saw the
behaviour you did, your first request was interpreted, subsequent
requests were using the compiled code, and the compiled code had
a bug.

You can control the compilation behaviour with the `compile'
configuration of the QuercusServlet:

  <servlet-mapping url-pattern="*.php"
                   servlet-class="com.caucho.quercus.servlet.QuercusServlet">
    <init compile="false"/>
  </servlet-mapping>

The valid values of `compile' are `true', `false', and `lazy'
(the default).

-- Sam