mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
Updated Home (markdown)
parent
51e09b43be
commit
7bd7dee2af
|
@ -22,7 +22,7 @@ The first time we run **./php.sh** inside */var/www/example* we must have as res
|
|||
><?php phpinfo(); ?>
|
||||
|
||||
***
|
||||
####1) You can safely run PHP scripts using ULib’s CGI support.
|
||||
#1) You can safely run PHP scripts using ULib’s CGI support.
|
||||
|
||||
Run **./php.sh** with argument 1: (we have as output something like that)
|
||||
~~~~
|
||||
|
@ -40,7 +40,7 @@ The downside of this approach is the latency caused by the spawn of a new PHP in
|
|||
~~~~
|
||||
03/08/15 18:47:51 (pid 18714)> request "/cgi-bin/index.php" run in 219 ms
|
||||
~~~~
|
||||
####2) To improve performance we can rely on a separate PHP processor to handle PHP requests proxed by FastCGI protocol. Most often, this processing is handled with php-fpm.
|
||||
#2) To improve performance we can rely on a separate PHP processor to handle PHP requests proxed by FastCGI protocol. Most often, this processing is handled with php-fpm.
|
||||
|
||||
[See the official PHP documentation for fpm for all possible configuration options.](http://www.php.net/manual/en/install.fpm.configuration.php)
|
||||
|
||||
|
@ -86,7 +86,7 @@ The latency is not changed as we can see in *./log/php2b.log*:
|
|||
~~~~
|
||||
03/08/15 20:21:00 (pid 2183)> request "/info.php" run in 8 ms
|
||||
~~~~
|
||||
####3) To get superior performance you will want to embed the PHP interpreter in the Ulib, ie to configure ULib with php embedded (*./configure --with-php-embedded ...*).
|
||||
#3) To get superior performance you will want to embed the PHP interpreter in the Ulib, ie to configure ULib with php embedded (*./configure --with-php-embedded ...*).
|
||||
|
||||
A bunch of distros (such as Fedora, Red Hat and CentOS) include a *php-embedded* package.
|
||||
Install it, along with *php-devel* and you should be able to build ULib with PHP interpreter embedded
|
Loading…
Reference in New Issue
Block a user