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

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
Next revisionBoth sides next revision
howto:php [2010/03/16 22:10] digitalmanhowto:php [2010/03/16 22:16] digitalman
Line 6: Line 6:
 ===== Install PHP ===== ===== 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.+Make sure you get PHP-CGI support. On *nix platforms, this is achieved by excluding the ''--with-apxs2'' option from the ''configure'' command-line during the installation process.
  
 ===== Install PHP Content ===== ===== Install PHP Content =====
Line 18: Line 18:
 Edit your ''[[dir:ctrl]]/[[config:sbbs.ini]]'' file, making sure that the ''CGIExtensions'' key value includes ''.php''. Edit your ''[[dir:ctrl]]/[[config:sbbs.ini]]'' file, making sure that the ''CGIExtensions'' key value includes ''.php''.
  
-Example: ''CGIExtensions=.cgi,.pl,.php''+Example: 
 +<file> 
 +CGIExtensions=.cgi,.pl,.php 
 +</file>
  
 Edit your ''[[dir:ctrl]]/[[config:web_handler.ini]]'' file. Edit your ''[[dir:ctrl]]/[[config:web_handler.ini]]'' file.
Line 26: Line 29:
 Make sure the ''php'' key value points to the correct location of your ''php-cgi'' (or ''PHP-CGI.EXE'') file.  Make sure the ''php'' key value points to the correct location of your ''php-cgi'' (or ''PHP-CGI.EXE'') file. 
  
-Examples:+Example (*nix):
  
 <file> <file>
Line 32: Line 35:
 php = /usr/local/bin/php-cgi php = /usr/local/bin/php-cgi
 </file> </file>
 +
 +Example (Windows):
  
 <file> <file>
 [CGI.Win32] [CGI.Win32]
 php = /php/php-cgi.exe php = /php/php-cgi.exe
 +</file>
 +
 +Edit your ''[[dir:ctrl]]/[[config:cgi_env.ini]]'' file, making sure it contains the following lines:
 +<file>
 +[REDIRECT_STATUS]
 +value=200
 </file> </file>
  
 ===== See Also ===== ===== See Also =====
-  * [[:howto:|HowTo index]]+  * [[http://php.net/]] 
 +  * [[:server:web|Synchronet Web Server]] 
 +  * [[:howto:|How-To Pages]]