Hi friends.
I'm setting up a new PHP version on XAMPP 7.4.16 with PHP 7.4.
The version I need to configure is 5.6.40.
I downloaded the NTS version (non thread safe) and unzipped it in the "C:\xampp\php_5.6" folder.
Renamed and configured "php.ini-development" to "php.ini".
I uncommented the "extension_dir" line
extension_dir="C:\xampp\php_5.6\ext".
I added the following lines to httpd-xampp.conf:
#PHP 5.6 on port 8056
##
ScriptAlias /php_5.6 "C:/xampp/php_5.6"
Action application/x-httpd-php56-cgi /php_5.6/php-cgi.exe
<Directory "C:/xampp/php_5.6">
AllowOverride None
Options None
Require all denied
<Files "php-cgi.exe">
Require all granted
</Files>
</Directory>
Listen 8056
<VirtualHost *:8056>
<FilesMatch "\.php$">
SetHandler application/x-httpd-php56-cgi
</FilesMatch>
</VirtualHost>
I'm getting the following error in apache's error.log when I run the code:
<?php
phpinfo();
?>
Error:
[Wed Jun 16 10:01:11.392174 2021] [cgi:error] [pid 8780:tid 2128] [client 192.168.15.10:60851] End of script output before headers: php-cgi.exe
Can anybody help me?
Best regards.
Ricardo.