Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

This is an old revision of the document!


Use PHP with the Synchronet Web Server

Dynamic PHP content may be served by the Synchronet Web Server using PHP-CGI.

PHP applications will not magically have access to your Synchronet content (e.g. users, messages, files).

Install PHP

Make sure you get PHP-CGI support. On *nix platforms, this achieved by excluding the –with-apxs2 option from the configure command-line during the installation process.

Install PHP Content

Install your PHP application(s) into your [Web] Root directory, as specified in your sbbs.ini file.

:!: Note: many PHP web applications require 3rd party database support (e.g. MySQL), which may need to be installed as well.

Configure Web Server

Edit your ctrl/sbbs.ini file, making sure that the CGIExtensions key value includes .php.

Example: CGIExtensions=.cgi,.pl,.php

Edit your ctrl/web_handler.ini file.

If you're running Synchronet for Windows, edit the [CGI.Win32] section, otherwise (e.g. *nix, or MacOSX), edit the [CGI] section:

Make sure the php key value points to the correct location of your php-cgi (or PHP-CGI.EXE) file.

Examples:

[CGI]
php = /usr/local/bin/php-cgi
[CGI.Win32]
php = /php/php-cgi.exe

See Also