Apache500, log: End of script output before headers: xxx.php

the php7.2.10+apache2.4, used by the newly installed phpstudy2018, in the home computer will report 500 when executing all php files

clipboard.png

error log:

[Thu May 05 17:15:20.696222 2016] [core:error] [pid 21132:tid 1724] [client 127.0.0.1:60080] End of script output before headers: index.php

the picture and log are found on the Internet, except that the time of the mailbox and log on the picture is different.

Several solutions on

have been tried:
1. No insufficient memory (if you execute phpinfo () will be reported)
2, mod_rewrite

is enabled.

after trying to switch to nginx at night, pop-up CGI/FastCGI has stopped working and is still 500. Search below says that PHP has a library that cannot be loaded, and execute php-v without reporting an error.

whether, Server API or CGI/FastCGI, did not stop working after switching the PHP version to 7.0.12.

Mar.02,2021

turn off (escape


what is the solution? Why didn't I see


I also met why


check whether the php-cgi.exe process exists, and if not, check that the related vc library is not installed.

vc9 (32-bit) free download link http://www.php.cn/xiazai/gong.
vc10 (64-bit) free download link http://www.php.cn/xiazai/gong.
VC11 (32-bit) free download link http://www.php.cn/xiazai/gong.
VC12 (32 + 64 bits) free download link http://www.php.cn/xiazai/gong.
VC13 (32 + 64 bits) free download link http://www.php.cn/xiazai/gong.
VC14 (32-bit) free download link http://www.php.cn/xiazai/gong.
php5.3, 5.4, and apache are all compiled in vc9, and the computer must have the vc9 runtime installed to run.
php5.5 is compiled by vc11. If you use php5.5, you must install the vc11 runtime.
php7.0, 7.1 is compiled by vc14. If you use php7.0, 7.1 or above, you must install the vc14 runtime.

has the problem


been solved? I have encountered exactly the same problem as you. Finally, just switch to 7.0. did you finally solve this problem?


this is usually caused by timeout or insufficient memory
check your phpinfo information. If the Server API is CGI/FastCGI, add these settings to the apache configuration:
FcgidIOTimeout 384
FcgidConnectTimeout 360
FcgidOutputBufferSize 128
FcgidMaxRequestsPerProcess 1000
FcgidMinProcessesPerClass 0
FcgidMaxProcesses 16
FcgidMaxRequestLen 268435456
ProcessLifeTime 360
FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000

  • How does ubuntu cut the php version?

    I found it like this update-alternatives --set php usr bin php7.2 the original version is 7. 0 installed. I want to cut the past , but I found that etc php 7.2 is also available here. which is the right way? what else should we pay attention to?! ...

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2c4b4-2bb13.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2c4b4-2bb13.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?