Localhost Won't Start After php Upgrade

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Localhost Won't Start After php Upgrade

Postby AndyTheAstronomer » 15. April 2022 23:17

Hi all, I wonder if anybody can help?

I upgraded php under Xampp from 7.4 to 8.1.4, and both Apache and MySQL start OK. But now localhost won't start. I get the "Connection refused" error. Tried 127.0.0.1 directly but same thing. Currently using Port 8080.

Can anybody help me solve this? I've checked the Windows 10 firewall but cannot see any issues. Is there something new with php 8.1.4 which requires different configuration anywhere?

Your help would be much appreciated!

Thanks!

Andy.
AndyTheAstronomer
 
Posts: 10
Joined: 27. March 2019 09:17
XAMPP version: 7.2.10
Operating System: Windows 10

Re: Localhost Won't Start After php Upgrade

Postby legendary1 » 16. April 2022 05:44

I ran into this issue when I updated XAMPP (Apache, mysql, php, perl) to include PHP8.1. After wasting several hours trying to troubleshoot, it became apparent that the only viable solution was to revert back to a previous version of PHP. The update to the newest PHP has caused many applications to randomly crash including WordPress, WordPress plugins, XAMPP installations, and others. Eventually, developers discovered that all of the issues stemmed from incompatibility with PHP 8.1 and advised users to revert back to the last working PHP version. Now I'm just waiting on all of the application developers to work out the kinks so that I can update without worry. I'm not sure what Apache's plan for compatibility is though.
legendary1
 
Posts: 2
Joined: 16. April 2022 05:07
XAMPP version: 8.0.15
Operating System: Windows 11

Re: Localhost Won't Start After php Upgrade

Postby Nobbie » 16. April 2022 10:16

Xampp does not provide PHP upgrade, so we dont know what you did.

You say, that you are "currently" using Port 8080. What is meant by "currently"? You have to apply the Portnumber in the URL if you dont use Port 80, did you do that?
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: Localhost Won't Start After php Upgrade

Postby AndyTheAstronomer » 17. April 2022 10:25

Hi Nobbie, thanks for your reply. I upgraded php manually in connection with another project I was working on, so obviously not from within xampp. Yes, I am using localhost:8080, but it fails. Any other ideas? Thanks!
AndyTheAstronomer
 
Posts: 10
Joined: 27. March 2019 09:17
XAMPP version: 7.2.10
Operating System: Windows 10

Re: Localhost Won't Start After php Upgrade

Postby Nobbie » 17. April 2022 11:33

Its difficult without any error message and without any configuration line. Last not least it could be, that it actually works, but you have a redirect which leads to an unresolved server (i.e. to localhost on Port 80 or so).
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04

Re: Localhost Won't Start After php Upgrade

Postby AndyTheAstronomer » 21. April 2022 12:14

Thanks Nobbie. Much appreciated. I shall investigate further.
AndyTheAstronomer
 
Posts: 10
Joined: 27. March 2019 09:17
XAMPP version: 7.2.10
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 119 guests