Unable to create new site, PHP version never loads

One error stands out to me:

{"class":"LightningServicesService","code":"ENOENT","errno":-2,"level":"error","message":"ENOENT: no such file or directory, scandir '%%userDataPath%%/lightning-services/php-8.3.0+1/bin'","path":"%%userDataPath%%/lightning-services/php-8.3.0+1/bin","stack":"Error: ENOENT: no such file or directory, scandir '%%userDataPath%%/lightning-services/php-8.3.0+1/bin'\n    at Object.readdirSync (node:fs:1527:3)\n    at t.readdirSync (node:electron/js2c/node_init:2:11289)\n    at LightningServicesService.getPlatformFromService (%%appPath%%/main/sites/LightningServicesService.js:1:4348)\n    at LightningServicesService.getRegisteredServices (%%appPath%%/main/sites/LightningServicesService.js:1:4114)\n    at LightningServicesService.<anonymous> (%%appPath%%/main/sites/LightningServicesService.js:1:4931)\n    at Generator.next (<anonymous>)\n    at o (%%appPath%%/main/sites/LightningServicesService.js:1:849)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","syscall":"scandir","thread":"main","timestamp":"2024-09-11T06:22:42.326Z"}

It almost seems like the 8.3.0+1 Lightning Service is corrupt.

Can you try deleting that version and re-downloading it? We don’t have a good way to do this through the GUI, but the steps are:

  1. Quit Local
  2. Open Local’s user config folder at ~/Library/Application Support/Local/lightning-services
  3. Delete the problem PHP version, for you, that would be php-8.3.0+1
  4. Restart Local and start a site that uses PHP 8.3

Give that a try and let us know how it goes. If you still have issues, can you also provide an updated version of the Local Log?