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:config:understanding_500 [2018/05/16 15:10] Jackson Zhang [too many php processes] |
litespeed_wiki:config:understanding_500 [2018/05/16 15:10] Jackson Zhang [Run out of Memory on php.ini] |
||
---|---|---|---|
Line 69: | Line 69: | ||
tail /var/log/httpd/stderr.log | tail /var/log/httpd/stderr.log | ||
- | 2016-03-01 12:07:03.573 [STDERR] Tue Mar 1 12:07:03 2016 (12700): Fatal Error Unable to allocate shared memory segment of 134217728 bytes: shmat: Cannot allocate memory (12) | + | 2016-03-01 12:07:03.573 [STDERR] Tue Mar 1 12:07:03 2016 (12700): Fatal Error Unable to allocate shared memory segment of 134217728 bytes: shmat: Cannot allocate memory (12) |
Further check phpinfo page and memory limit was set to “128M” only. While opcode cache sonsution is “128M”. | Further check phpinfo page and memory limit was set to “128M” only. While opcode cache sonsution is “128M”. | ||
Line 86: | Line 86: | ||
The following error log captured with openlitespeed when PHP open_basedir intentionally set to a non-exist folder /111, phpinfo page returns 500 error. | The following error log captured with openlitespeed when PHP open_basedir intentionally set to a non-exist folder /111, phpinfo page returns 500 error. | ||
- | 2018-05-16 10:59:51.391153 [NOTICE] [192.168.0.198:14271] [STDERR] PHP Warning: Unknown: open_basedir restriction in effect. File(/usr/local/lsws/Example/html/phpinfo.php) is not within the allowed path(s): (/111) in Unknown on line 0 | + | 2018-05-16 10:59:51.391153 [NOTICE] [192.168.0.198:14271] [STDERR] PHP Warning: Unknown: open_basedir restriction in effect. File(/usr/local/lsws/Example/html/phpinfo.php) is not within the allowed path(s): (/111) in Unknown on line 0 |
- | 2018-05-16 10:59:51.391251 [NOTICE] [192.168.0.198:14271] [STDERR] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0 | + | 2018-05-16 10:59:51.391251 [NOTICE] [192.168.0.198:14271] [STDERR] PHP Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0 |
- | 2018-05-16 10:59:51.391263 [NOTICE] [192.168.0.198:14271] [STDERR] PHP Fatal error: Unknown: Failed opening required '/usr/local/lsws/Example/html/phpinfo.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0 | + | 2018-05-16 10:59:51.391263 [NOTICE] [192.168.0.198:14271] [STDERR] PHP Fatal error: Unknown: Failed opening required '/usr/local/lsws/Example/html/phpinfo.php' (include_path='.:/usr/local/lib/php') in Unknown on line 0 |
===== apache run as SuEXEC while LSWS not on cpanel ===== | ===== apache run as SuEXEC while LSWS not on cpanel ===== | ||
On a cpanel/WHM environment, apache runs as SuEXEC , however LSWS doesn’t. | On a cpanel/WHM environment, apache runs as SuEXEC , however LSWS doesn’t. |