My VPS (CENTOS 6.9) stops working every two or three weeks. If I restart the server everything works again. Below are the last lines of the error log of last two crashes. What could be the cause?
Code:
[Tue Jan 09 02:01:54.848979 2018] [mpm_prefork:error] [pid 9826] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process
[Tue Jan 09 02:01:59.117192 2018] [proxy_fcgi:error] [pid 2101] [client 12.12.12.12:48362] AH01071: Got error 'Primary script unknown\n'
[Tue Jan 09 02:02:02.437228 2018] [proxy_fcgi:error] [pid 2101] [client 12.12.12.12:48362] AH01071: Got error 'Primary script unknown\n'
[Tue Jan 09 02:02:04.849098 2018] [mpm_prefork:notice] [pid 9826] AH00171: Graceful restart requested, doing restart
[Tue Jan 09 02:02:05.199001 2018] [rewrite:error] [pid 9826] (12)Cannot allocate memory: AH00654: mod_rewrite: could not start RewriteMap program /usr/local/cpanel/bin/leechprotect
[Tue Jan 09 02:02:05.199043 2018] [:emerg] [pid 9826] AH00020: Configuration Failed, exiting
[Tue Jan 09 02:02:26.873776 2018] [proxy_fcgi:error] [pid 2049] [client 12.12.12.12:39997] AH01071: Got error 'Primary script unknown\n'
Code:
[Thu Dec 28 23:51:11.912166 2017] [proxy_fcgi:error] [pid 12999] [client 12.12.12.12:50872] AH01071: Got error 'Primary script unknown\n'
[Thu Dec 28 23:57:25.505462 2017] [proxy_fcgi:error] [pid 13068] [client 12.12.12.12:55743] AH01071: Got error 'Primary script unknown\n'
[Thu Dec 28 23:58:15.357033 2017] [proxy_fcgi:error] [pid 13176] [client 12.12.12.12:50489] AH01071: Got error 'Primary script unknown\n'
[Fri Dec 29 00:00:21.539281 2017] [mpm_prefork:notice] [pid 1468] AH00171: Graceful restart requested, doing restart
[Fri Dec 29 00:00:23.577980 2017] [rewrite:error] [pid 1468] (12)Cannot allocate memory: AH00654: mod_rewrite: could not start RewriteMap program /usr/local/cpanel/bin/leechprotect
[Fri Dec 29 00:00:23.578018 2017] [:emerg] [pid 1468] AH00020: Configuration Failed, exiting