herd-community icon indicating copy to clipboard operation
herd-community copied to clipboard

[Bug]: php artisan serve is not working after the PHP 8.3.7 update

Open to-sanchez opened this issue 1 year ago • 9 comments

Platform

Windows

Operating system version

Windows 10 (22H2 19045.4046)

System architecture

Intel (x86)

Herd Version

1.6.1

PHP Version

PHP 8.3.7

Bug description

When I updated PHP to version 8.3.7 and then tried to run the command php artisan serve, I get the following error: Failed to listen on 127.0.0.1:8000 (reason: ?). Failed to listen on 127.0.0.1:8001 (reason: ?). Failed to listen on 127.0.0.1:8002 (reason: ?). Failed to listen on 127.0.0.1:8004 (reason: ?).

Steps to reproduce

No response

Relevant log output

No response

to-sanchez avatar May 14 '24 13:05 to-sanchez

Could you check in the task manager if you still have php processes running?

mpociot avatar May 14 '24 13:05 mpociot

Could you check in the task manager if you still have php processes running?

I think so because all the other PHP commands work, and when I run the command php -S localhost:8000 -t public, it also works.

to-sanchez avatar May 14 '24 13:05 to-sanchez

Could you check in the task manager if you still have php processes running?

I think so because all the other PHP commands work, and when I run the command php -S localhost:8000 -t public, it also works.

Hi, I also encountered this problem. I try to modify the php.ini of php83, then it works again.

before: variables_order = "EGPCS"

after: variables_order = "GPCS"

Hope it will help you.

EMeDesign avatar May 15 '24 15:05 EMeDesign

same bro i tried all what they said but it does not work we might as well wait for the update to fix the bug... if your project is still on production for now use this command "php -S 127.0.0.1:8000 -t public/"

kerrtt16 avatar May 16 '24 12:05 kerrtt16

Did you try the variable order in the php.ini as well? Also: why are you using php artisan serve instead of nginx?

mpociot avatar May 16 '24 12:05 mpociot

@mpociot on my case I am using artisan serve instead of nginx to reach our mobile network. Is it not the right approach?

davideprevosto avatar May 16 '24 14:05 davideprevosto

I can open tinker from Herd but not from CLI. my php.ini has variables_order = "GPCS". I 'm on PHP 8.3

spitfire64 avatar May 17 '24 07:05 spitfire64

@EMeDesign

Could you check in the task manager if you still have php processes running?

I think so because all the other PHP commands work, and when I run the command php -S localhost:8000 -t public, it also works.

Hi, I also encountered this problem. I try to modify the php.ini of php83, then it works again.

before: variables_order = "EGPCS"

after: variables_order = "GPCS"

Hope it will help you.

Is working with taht. Thank's

to-sanchez avatar May 17 '24 12:05 to-sanchez

@mpociot

Did you try the variable order in the php.ini as well? Also: why are you using php artisan serve instead of nginx?

I need it for something.

to-sanchez avatar May 17 '24 12:05 to-sanchez

@mpociot #810 is solved using herd link,Thanks

RehamTammam1 avatar Jun 17 '24 18:06 RehamTammam1