Apache (when configured) loads a php.so module - so PHP is 'loaded' (ready
to go) as part of apache startup.
Yes, when HTTP hits Apache, the server.php file is loaded (on each HTTP
request). Since php.so module is already running as part of apache
startup - its 'very fast' BUT you do want to keep server.php files smaller
(1,000(s) of lines) instead of 50,000(s) of lines. We used a URL name
space to have multiple server.php files - e.g. http://host/login.php
(login.php is a server.php file), http://host/accounts.php, etc. - e.g.
1 'server.php' for grouping of web services. The login.php and
account.php, and x.php and y.php can call into shared library.php(s) but
again, overall, keep the #includes smaller so each server.php is not 'too
large'. We achieved average 10ms (where php called MSSQL inside)
response time for 1,000(s) of simultaneous users on single apache server.
We put 1st apache server in DNZ zone (publically available for URL) and then
used apache reverse proxy over to internal apache that that actually called
the server.php(s) for very strong protection. Worked very well. Then
as we grew, we used the reverse proxy to load balance - but apache also has
other forms of load balance.
[mailto:phpxmlrpc-boun...@lists.usefulinc.com] On Behalf Of David Luu
Sent: Monday, December 24, 2012 10:35 PM
Subject: [phpxmlrpc] How to start/stop XML-RPC server?
I'm just looking into XML-RPC server with PHP, so have not much idea about
its implementation and design.
With other language implementations, it's easy to understand, as you can
start/stop the server from command line (or other interface like UI, XML-RPC
call for stop, etc.) as all the server functionality can be combined with
the XML-RPC server itself as a single self contained binary/application.
With PHP, the PHP code is served by a web/application server. So wanted some
* how do you start the server? Start up the web/application server (Apache,
IIS, etc.), then hit the URL to the PHP script that creates the server
instance? Are the XML-RPC requests (different XML-RPC method calls) going to
same URL or different one?
* how do you stop the PHP XML-RPC server? Stop the web/application server
itself? (e.g. Apache, IIS, etc.) Or is there a way to stop it w/o turning
off the whole web/application server or say killing PHP.
phpxmlrpc mailing list