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_503_error [2014/02/05 17:11] Michael [2. Check for Corresponding Entries in stderr.log] |
litespeed_wiki:php_503_error [2014/04/23 17:26] Kevin Fwu [2. PHP Binary-Module Mismatch] |
||
---|---|---|---|
Line 57: | Line 57: | ||
To enable a core dump, add the environment value ''LSAPI_ALLOW_CORE_DUMP=1'' to your external application settings (WebAdmin console > Configuration > External App). Next time the application crashes, a core dump will be generated. The core file created can usually be found in the directory holding the PHP script affected. | To enable a core dump, add the environment value ''LSAPI_ALLOW_CORE_DUMP=1'' to your external application settings (WebAdmin console > Configuration > External App). Next time the application crashes, a core dump will be generated. The core file created can usually be found in the directory holding the PHP script affected. | ||
- | **Note:** As noted below, opcode caches are frequently a cause of PHP crashes. If you find your PHP crashed, you may want to try turning off any opcode caching you have. This addressed further [[litespeed_wiki:php_503_error#opcode_caches_apc_xcache_eaccelerateor|below]]. | + | **Note:** As noted below, opcode caches are frequently a cause of PHP crashes. If you find your PHP crashed, you may want to try turning off any opcode caching you have. This is addressed further [[litespeed_wiki:php_503_error#opcode_caches_apc_xcache_eaccelerateor|below]]. |
==== 4. Analyze Core File with GNU Debugger ==== | ==== 4. Analyze Core File with GNU Debugger ==== | ||
Line 109: | Line 109: | ||
These options need to match in Unknown on line 0 | These options need to match in Unknown on line 0 | ||
- | To fix this, you will need to either rebuild the module and PHP, making sure that you are using a version of PHP that works with the module. Also, make sure that the correct extension path is used. | + | To fix this, you will need to either rebuild the module and/or PHP, making sure that you are using a version of PHP that works with the module. Also, make sure that the correct extension path is used. |
==== 3. Opcode Caches (APC, xCache, EAccelerateor) ==== | ==== 3. Opcode Caches (APC, xCache, EAccelerateor) ==== | ||
Line 155: | Line 155: | ||
The above example shows the use of GDB to show that opcode cache was causing a crash. | The above example shows the use of GDB to show that opcode cache was causing a crash. | ||
+ | |||
+ | [[litespeed_wiki:php_503_error_example3|Opcode Cache Crashes PHP 2]] | ||
+ | |||
+ | The above example shows another error that was solved by turning off the opcode cache. | ||
[[http://www.litespeedtech.com/support/forum/showthread.php?t=5545|ZenGuardLoader Bug]] | [[http://www.litespeedtech.com/support/forum/showthread.php?t=5545|ZenGuardLoader Bug]] |