Internal Server Error 500, PHP Scripts Out of Memory

162 views
Skip to first unread message

Junior Riau

unread,
Feb 12, 2016, 7:49:13 AM2/12/16
to OpenLiteSpeed Development
hello

i have trouble in litespeed version 1.4.15

error log show like below

2016-02-12 12:52:46.304 [NOTICE] [juniorriau2_lsphp] stop worker processes
2016-02-12 12:52:46.304 [NOTICE] [AdminPHP] stop worker processes
2016-02-12 12:53:16.982 [INFO] [202.67.44.25:37705] [REWRITE] Rule: Match '/wp-admin/plugin-install.php' with pattern '^index\.php$', result: -1
2016-02-12 12:53:16.982 [INFO] [202.67.44.25:37705] [REWRITE] Rule: Match '/wp-admin/plugin-install.php' with pattern '.', result: 1
2016-02-12 12:53:16.982 [INFO] [202.67.44.25:37705] [REWRITE] Cond: test '/home/juniorriau2/public_html/wp-admin/plugin-install.php' with pattern '-f', result: 0
2016-02-12 12:53:19.074 [NOTICE] [202.67.44.25:37705:lsapi] [STDERR] PHP Fatal error:  Out of memory (allocated 4194304) (tried to allocate 234657 bytes) in /home/juniorriau2/public_html/wp-includes/functions.php on line 345
2016-02-12 12:53:25.100 [NOTICE] [juniorriau2_lsphp] stop worker processes


here my virtual host config

LiteSpeed SAPI App

Name$VH_NAME_lsphp
Addressuds://tmp/lshttpd/$VH_NAME_lsphp.sock
NotesNot Set
Max Connections50
EnvironmentPHP_LSAPI_MAX_REQUESTS=500
PHP_LSAPI_CHILDREN=50
Initial Request Timeout (secs)100
Retry Timeout (secs)100
Persistent ConnectionYes
Connection Keep-Alive Timeout100
Response BufferingNo
Auto StartYes
Command$SERVER_ROOT/fcgi-bin/lsphp56
Back LogNot Set
InstancesNot Set
suEXEC Userjuniorriau2
suEXEC Groupjuniorriau2
umaskNot Set
Run On Start UpYes
Max Idle Time5
Priority2
Memory Soft Limit (bytes)512M
Memory Hard Limit (bytes)768M
Process Soft Limit400
Process Hard Limit500

PHP memory limit is 256MB

VPS with ram 1GB

Any idea?

George Wang

unread,
Feb 12, 2016, 9:00:20 AM2/12/16
to openlitespee...@googlegroups.com
The opcode cache takes a big chunk of of the
memory limit, reduce the side of opcode cache will help.

Best regards,
George Wang
> --
> You received this message because you are subscribed to the Google
> Groups "OpenLiteSpeed Development" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to openlitespeed-deve...@googlegroups.com
> <mailto:openlitespeed-deve...@googlegroups.com>.
> To post to this group, send email to
> openlitespee...@googlegroups.com
> <mailto:openlitespee...@googlegroups.com>.
> Visit this group at
> https://groups.google.com/group/openlitespeed-development.
> For more options, visit https://groups.google.com/d/optout.

Junior Riau

unread,
Feb 14, 2016, 10:03:31 AM2/14/16
to OpenLiteSpeed Development
Hello

thank you for your advice, i will try it :)
...

Junior Riau

unread,
Feb 16, 2016, 8:07:52 AM2/16/16
to OpenLiteSpeed Development
Hello

i have reduce to 
Memory Soft Limit (bytes)512M
Memory Hard Limit (bytes)768M
Process Soft Limit50
Process Hard Limit100

but i still get 500 internal server error. you wanna try? i will provide the access


Pada Jumat, 12 Februari 2016 19.49.13 UTC+7, Junior Riau menulis:
...

George Wang

unread,
Feb 16, 2016, 9:00:05 AM2/16/16
to openlitespee...@googlegroups.com
You should not reduce memory limit of lsphp5 configuration, you need to
change your PHP opcode cache configuration in php.ini to reduce its
memory usage. no matter it is APC, opcache or xcache.

Best regards,
George Wang

On 2/16/2016 8:07 AM, Junior Riau wrote:
> Hello
>
> i have reduce to
> Memory Soft Limit (bytes) 512M
> Memory Hard Limit (bytes) 768M
> Process Soft Limit 50
> Process Hard Limit 100
>
>
> but i still get 500 internal server error. you wanna try? i will provide
> the access
>
> Pada Jumat, 12 Februari 2016 19.49.13 UTC+7, Junior Riau menulis:
>
> hello
>
> i have trouble in litespeed version 1.4.15
>
> error log show like below
>
> 2016-02-12 12:52:46.304 [NOTICE] [juniorriau2_lsphp] stop worker
> processes
> 2016-02-12 12:52:46.304 [NOTICE] [AdminPHP] stop worker processes
> 2016-02-12 12:53:16.982 [INFO] [202.67.44.25:37705
> <http://202.67.44.25:37705>] [REWRITE] Rule: Match
> '/wp-admin/plugin-install.php' with pattern '^index\.php$', result: -1
> 2016-02-12 12:53:16.982 [INFO] [202.67.44.25:37705
> <http://202.67.44.25:37705>] [REWRITE] Rule: Match
> '/wp-admin/plugin-install.php' with pattern '.', result: 1
> 2016-02-12 12:53:16.982 [INFO] [202.67.44.25:37705
> <http://202.67.44.25:37705>] [REWRITE] Cond: test

Junior Riau

unread,
Mar 7, 2016, 2:10:22 AM3/7/16
to OpenLiteSpeed Development
Hi, thank you, already fixed


Pada Jumat, 12 Februari 2016 19.49.13 UTC+7, Junior Riau menulis:
...

Tien Dung

unread,
Mar 22, 2021, 5:42:26 AM3/22/21
to OpenLiteSpeed Development
Hello everybody, my site run php 8, but Redis not working. My site: www.vutruso.com

How to fix?

Thank you.

Vào lúc 19:49:13 UTC+7 ngày Thứ Sáu, 12 tháng 2, 2016, Junior Riau đã viết:
Reply all
Reply to author
Forward
0 new messages