Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

giorg's avatar
Level 1

valet not serving after php upgrade

Hi, I worked successfully for more than 1 year on my dev mac with valet. Today I upgraded to php 7.3.12 (before had 7.3.2), after that valet commands were heading to syntax error. So I downgraded to 7.3.9, now all valet commands are working, i.e. valet restart gives me this output:

Restarting ... Restarting nginx... Valet services have been restarted

but no site is any longer served, and in fact I cannot see any nginx process running. Any hint? Thanks a lot

0 likes
4 replies
giorg's avatar
Level 1

Hi, thanks for your answer. Yes I did, no chance... My guess is nginx is not running even if valet says "restarted", because I don't see the process...

Tray2's avatar

Try reinstalling valet. There are probably some links that has changed.

giorg's avatar
Level 1

tried with no luck. So i upgraded php to my initial goal, 7.3.12. when I give any valet command this is the output:

Parse error: syntax error, unexpected '' (tried: /usr/local/opt/php-i' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in Command line code on line 3/cli/valet.php

Please or to participate in this conversation.