What is your Operation system?
PHP 8.1 problems with Apache [Solved]
I have been upgrading all my development to php 8.1. Nginx is working fine.
But apache is doing the following:
The connection to the server was reset while the page was loading.
And in the error log:
AH00428: Parent: child process 2160 exited with status 3221225477 -- Restarting.
I have tried the solution here: https://laracasts.com/discuss/channels/code-review/laravel-8-with-php-81-on-apache-server?page=1&replyId=751753
The version I have is: PHP 8.1 (8.1.0) VS16 x64 Thread Safe (2021-Nov-23 22:35:04)
I went back one version: PHP 8.0 (8.0.13) VS16 x64 Thread Safe (2021-Nov-16 22:28:26)
And with the 8.0.13 all works with no errors in the log.
And I have triple checked my conf and ini files they are correct. Any ideas, or do you think 8.1 has a bug.
Thanks
@jlrdw You are correct, I meant the thread safe version.
I did this on my machine.
#1. Downloaded the httpd-2.4.51-win64-VS16.zip from Apache Lounge
#2. Unzip it to C:\Apache24
#3. Download php8.1 Thread safe from [windows.php.net(https://windows.php.net/download)
#4. Unzip it to C:\php8.1
#5. Add these lines to the end of httpd.conf
# PHP 8.1 module
PHPIniDir "C:/php8.1"
LoadModule php_module C:/php8.1/php8apache2_4.dll
AddType application/x-httpd-php .php
#6. Add index.php to the DirectoryIndex
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
#7. Test the config (As administrator) with `httpd -t``
#8. Start Apache (As administrator) with httpd
#9. Create index.php and add
<?php phpinfo();
#10. Browse to localhost
Please or to participate in this conversation.