503 error on include large file

br3t

New Member
#1
Hello. I need to include big (20Mb) PHP-file with two-dimensional array (about 80k rows) into my PHP-script. This causes 503 server error. I tried to enlarge PHP memory limit to 1024Mb, but it doesn't help. It's a specific problem, because on Apache server file is included without any error.

My engine.php:
PHP:
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

include('data.php'); // <- it's about 20Mb
And my error log:
Code:
2023-09-01 10:40:44.508249 [NOTICE] [10704] [111.22.33.44:99099#example.com] oops! 503 Service Unavailable
2023-09-01 10:40:44.508308 [INFO] [10704] [111.22.33.44:99099] Content len: 0, request line: 'GET / HTTP/1.1'
2023-09-01 10:40:44.508312 [INFO] [10704] [111.22.33.44:99099] Redirect: #1, URL: /engine.php
There is no error if I split data.php into 2 smaller files, but it's no a solution, because it's generated by another script.
 
Top