Php Apache 500

wants to execute a script. For a relatively long time. But it will be 500 in about 7 minutes;
the following is printed out by the error.log file.
has added
< IfModule mpm_winnt_module >

to httpd.conf
ThreadStackSize 8888888

< / IfModule >
search on the Internet cannot solve

[Fri Dec 14 17:45:56.047810 2018] [mpm_winnt:crit] [pid 14040:tid 692] AH02538: Child: Parent process exited abruptly. Child process is ending
[Fri Dec 14 17:46:00.115917 2018] [core:warn] [pid 17840:tid 788] AH00098: pid file D:/phpstudy/PHPTutorial/Apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Fri Dec 14 17:46:00.228614 2018] [mpm_winnt:notice] [pid 17840:tid 788] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2j mod_fcgid/2.3.9 configured -- resuming normal operations
[Fri Dec 14 17:46:00.228614 2018] [mpm_winnt:notice] [pid 17840:tid 788] AH00456: Server built: Jul  1 2016 16:42:20
[Fri Dec 14 17:46:00.228614 2018] [core:notice] [pid 17840:tid 788] AH00094: Command line: "D:\\phpstudy\\PHPTutorial\\Apache\\bin\\httpd.exe -d D:/phpstudy/PHPTutorial/Apache"
[Fri Dec 14 17:46:00.295041 2018] [mpm_winnt:notice] [pid 17840:tid 788] AH00418: Parent: Created child process 16448
[Fri Dec 14 17:46:01.364642 2018] [mpm_winnt:notice] [pid 16448:tid 756] AH00354: Child: Starting 150 worker threads.
Jun.07,2022

is your php version or threaded version?


did you restart apache after modifying the module? in addition, check that the code variables are destroyed properly.
and set a larger memory space: ini_set ('memory_limit','1024M');


if you execute a script for such a long time, it is best not to be directly associated with apache, which is not quite in line with the web scenario. If you just view the results of the script execution, you can write the results of the script execution to the database, and write another API to query the database to observe the execution status of the script

.
Menu