Synchronet v3.21e-Win32 (install) has been released (Mar-2026).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howto:php [2015/11/02 11:24] – Initial documentation for PHP-FPM deucehowto:php [2026/03/02 19:42] (current) – [Use PHP with the Synchronet Web Server] esc
Line 1: Line 1:
 ====== Use PHP with the Synchronet Web Server ====== ====== Use PHP with the Synchronet Web Server ======
-Dynamic [[http://php.net/|PHP]] content may be served by the Synchronet Web Server using //PHP-CGI// or, for 3.17a builds newer than November 1st, 20015, using //PHP-FPM// PHP-CGI is slower and less efficient than PHP-FPM, so PHP-FPM is recommended when available.+Dynamic [[http://php.net/|PHP]] content may be served by the Synchronet Web Server using //PHP-CGI// or, for 3.17a builds newer than November 1st, 2015, using //PHP-FPM// PHP-CGI is slower and less efficient than PHP-FPM, so PHP-FPM is recommended when available.
  
 PHP applications //will not// magically have access to your Synchronet content (e.g. users, messages, files). PHP applications //will not// magically have access to your Synchronet content (e.g. users, messages, files).
Line 80: Line 80:
 Edit the [[server:web#webctrl.ini per-directory configuration file|webctrl.ini file]] at the root of your PHP application and configure it to use FastCGI. Edit the [[server:web#webctrl.ini per-directory configuration file|webctrl.ini file]] at the root of your PHP application and configure it to use FastCGI.
  
-Example:+Example (using a TCP socket):
 <file> <file>
 [*.php] [*.php]
 FastCGISocket=127.0.0.1:9000 FastCGISocket=127.0.0.1:9000
 </file> </file>
 +
 +Example (using a UNIX Domain socket):
 +<file>
 +[*.php]
 +FastCGISocket=unix:/run/php/php-fpm.sock
 +</file>
 +
  
 Make sure that php-fpm is running and that the listener socket is the same as in the FastCGISocket line. Make sure that php-fpm is running and that the listener socket is the same as in the FastCGISocket line.