Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
howto:php [2010/02/24 23:53] – created digitalman | howto:php [2011/02/14 14:09] – digitalman | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Use PHP with the Synchronet Web Server ====== | ====== Use PHP with the Synchronet Web Server ====== | ||
- | FIXME | + | Dynamic [[http:// |
+ | |||
+ | 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 is achieved by excluding the '' | ||
+ | |||
+ | ===== Install PHP Content ===== | ||
+ | |||
+ | Install your PHP application(s) into your '' | ||
+ | |||
+ | :!: 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 '' | ||
+ | - The Web Server is enabled ('' | ||
+ | - If your application has an '' | ||
+ | - The '' | ||
+ | - The '' | ||
+ | - The '' | ||
+ | |||
+ | Example: | ||
+ | < | ||
+ | [Web] | ||
+ | AutoStart=true | ||
+ | IndexFileNames=index.html, | ||
+ | MaxCgiInactivity=120 | ||
+ | CGIExtensions=.cgi, | ||
+ | Options=NO_HOST_LOOKUP | ||
+ | </ | ||
+ | |||
+ | Edit your '' | ||
+ | |||
+ | If you're using Synchronet for Windows v3.15 (Web Server Revision 1.525 or later), edit the '' | ||
+ | |||
+ | Ensure the '' | ||
+ | |||
+ | Example (*nix): | ||
+ | |||
+ | < | ||
+ | [CGI] | ||
+ | php = / | ||
+ | </ | ||
+ | |||
+ | Example (Windows): | ||
+ | |||
+ | < | ||
+ | [CGI.Win32] | ||
+ | php = / | ||
+ | </ | ||
+ | |||
+ | Edit your '' | ||
+ | < | ||
+ | [REDIRECT_STATUS] | ||
+ | value=200 | ||
+ | </ | ||
+ | |||
+ | :!: If you see the PHP error '' | ||
===== See Also ===== | ===== See Also ===== | ||
- | * [[:howto:|HowTo index]] | + | |
+ | * [[: | ||
+ | | ||