Case:
Centros 7,
Cpanel + WHM 102.0.17 ,
LiteSpeed Web Server Enterprise 6.0.12,
PHP + V8JS.
On try enter php page with v8js, LS server return 503 error.
/var/log/apache2/stderr.log show this error:
#
# Fatal error in , line 0
# Fatal process out of memory: Failed to reserve memory for new V8 Isolate
#
By LS docs abot 503 error, we try add memory limit for PHP (memory_limit up to 512M) and LS (
Memory Soft Limit up to 8192M
Memory Hard Limit: 8192M
).
Directly PHP CLI with V8JS works fine:
ea-php80 -f t.php ```(new V8Js())->executeString('print("Hello JS world")');```
will print:
Hello JS world
Centros 7,
Cpanel + WHM 102.0.17 ,
LiteSpeed Web Server Enterprise 6.0.12,
PHP + V8JS.
On try enter php page with v8js, LS server return 503 error.
/var/log/apache2/stderr.log show this error:
#
# Fatal error in , line 0
# Fatal process out of memory: Failed to reserve memory for new V8 Isolate
#
By LS docs abot 503 error, we try add memory limit for PHP (memory_limit up to 512M) and LS (
Memory Soft Limit up to 8192M
Memory Hard Limit: 8192M
).
Directly PHP CLI with V8JS works fine:
ea-php80 -f t.php ```(new V8Js())->executeString('print("Hello JS world")');```
will print:
Hello JS world