Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:php [2018/09/17 21:29] Michael Alegre [PHP Execution Method] |
litespeed_wiki:php [2019/03/19 16:00] Lisa Clarke [Add-Ons/Extensions] Removed broken link |
||
---|---|---|---|
Line 18: | Line 18: | ||
Unlike apache or nginx using php-fpm or fastcgi, LSWS uses LSPHP, which is faster than php-fpm or fastcgi. On LSWS (native), you can install LSPHP from LiteSpeed CentOS, Ubuntu/Debian repositories, then create/configure external app and script handler to point LSWS to use the newly installed PHP binaries. | Unlike apache or nginx using php-fpm or fastcgi, LSWS uses LSPHP, which is faster than php-fpm or fastcgi. On LSWS (native), you can install LSPHP from LiteSpeed CentOS, Ubuntu/Debian repositories, then create/configure external app and script handler to point LSWS to use the newly installed PHP binaries. | ||
- | Please see this [[litespeed_wiki:php:configuring-lsws-for-php|LSPHP Setup Overview]]. | + | Please see [[litespeed_wiki:php:configuring-lsws-for-php|Configuring LiteSpeed Web Server for PHP]]. |
- | + | ||
- | === Install LSPHP === | + | |
- | * [[litespeed_wiki:php:rpm|Installing LSPHP via RPM: The fastest way to get PHP for CentOS]] | + | |
- | * [[litespeed_wiki:php:apt|Installing LSPHP via APT: The fastest way to get PHP for Debian/Ubuntu]] | + | |
- | + | ||
- | === Create/Configrate PHP external apps and script handlers === | + | |
- | * [[litespeed_wiki:other-ext-apps:setup|create a PHP external application mapping to the installed PHP Binary]] | + | |
- | * [[litespeed_wiki:php:configuring-lsws-for-php#the_script_or_context_handler|set a script handler mapping to the PHP external application]]. | + | |
Line 32: | Line 24: | ||
Please see [[litespeed_wiki:php:which_php_setup_am_i_using|suEXEC or non-suEXEC]], a guide to figure out which PHP execution method you are using. | Please see [[litespeed_wiki:php:which_php_setup_am_i_using|suEXEC or non-suEXEC]], a guide to figure out which PHP execution method you are using. | ||
- | ===== PHP Process Modes: ProcessGroup/Daemon/Worker ===== | + | ===== Process Modes: ProcessGroup/Daemon/Worker ===== |
LiteSpeed Web Server offers a number of different [[litespeed_wiki:php:process-mode|PHP process modes]] for the various needs and goals of shared hosting providers: [[litespeed_wiki:php:process-mode#processgroup_mode|ProcessGroup mode]], [[litespeed_wiki:php:process-mode#daemon_mode|Daemon mode]], and [[litespeed_wiki:php:process-mode#worker_mode|Worker mode]]. | LiteSpeed Web Server offers a number of different [[litespeed_wiki:php:process-mode|PHP process modes]] for the various needs and goals of shared hosting providers: [[litespeed_wiki:php:process-mode#processgroup_mode|ProcessGroup mode]], [[litespeed_wiki:php:process-mode#daemon_mode|Daemon mode]], and [[litespeed_wiki:php:process-mode#worker_mode|Worker mode]]. | ||
Line 41: | Line 33: | ||
* [[litespeed_wiki:php:enable_opcode_cache|Enable opcode cache: How to enable PHP opcode cache for LiteSpeed]] | * [[litespeed_wiki:php:enable_opcode_cache|Enable opcode cache: How to enable PHP opcode cache for LiteSpeed]] | ||
- | ===== PHP Detached Mode ===== | + | ===== Detached Mode ===== |
- | * As of LiteSpeed Web Server version 5.3, LSPHP can be run independent of the web server in [[litespeed_wiki:php:detached_mode|Detached mode]]. This allows the LSPHP process, and it's opcode cache, to survive through server restarts. | + | As of LiteSpeed Web Server version 5.3, LSPHP can be run independent of the web server in [[litespeed_wiki:php:detached_mode|Detached mode]]. This allows the LSPHP process, and it's opcode cache, to survive through server restarts. |
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
Line 68: | Line 60: | ||
* [[litespeed_wiki:php:mysql-persistent-connections|Performance tip: avoid php/mysql persistent connections.]] | * [[litespeed_wiki:php:mysql-persistent-connections|Performance tip: avoid php/mysql persistent connections.]] | ||
* [[litespeed_wiki:php:run-without-timeouts|Disable PHP timeouts: Make LSWS compatible with long-running processes]] | * [[litespeed_wiki:php:run-without-timeouts|Disable PHP timeouts: Make LSWS compatible with long-running processes]] | ||
- | * [[litespeed_wiki:php:generate-source-code-with-lsapi|Use LSAPI to generate source code for viewing with a browser]] | + | * [[litespeed_wiki:php:generate-source-code-with-lsapi|Use LSAPI to generate formatted PHP source code for viewing with a browser]] |
* [[litespeed_wiki:php:fcgi-environment-variables|Supported environment variables for non-LSAPI applications]] | * [[litespeed_wiki:php:fcgi-environment-variables|Supported environment variables for non-LSAPI applications]] | ||
* [[litespeed_wiki:php:maxwaitq-limit|PHP Max Wait Queue Limit: Preventing the PHP wait queue from getting too long]] | * [[litespeed_wiki:php:maxwaitq-limit|PHP Max Wait Queue Limit: Preventing the PHP wait queue from getting too long]] | ||
Line 80: | Line 72: | ||
===== Add-Ons/Extensions ===== | ===== Add-Ons/Extensions ===== | ||
* [[http://www.litespeedtech.com/support/forum/showthread.php?t=874|Connecting to Oracle with PHP + LSAPI]] | * [[http://www.litespeedtech.com/support/forum/showthread.php?t=874|Connecting to Oracle with PHP + LSAPI]] | ||
- | * [[http://wowtutorial.org/tutorial/3.html|Building a LiteSpeed PHP5 LSAPI With Suhosin Patch and Extension on FreeBSD 6.2]] | ||
* [[litespeed_wiki:php:new_relic|How to get New Relic to work with LSWS]] | * [[litespeed_wiki:php:new_relic|How to get New Relic to work with LSWS]] | ||