1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 00:20:08 +01:00

Fix Homebrew PHP default www pools issue

This commit is contained in:
NasirNobin
2022-03-16 19:12:44 +06:00
parent d813a792cd
commit 9fdc02021a

View File

@@ -92,6 +92,12 @@ public function createConfigurationFiles($phpVersion)
$this->files->ensureDirExists(dirname($fpmConfigFile), user());
// rename (to disable) old FPM Pool configuration, regardless of whether it's a default config or one customized by an older Valet version
$oldFile = dirname($fpmConfigFile).'/www.conf';
if (file_exists($oldFile)) {
rename($oldFile, $oldFile.'-backup');
}
// Create FPM Config File from stub
$contents = str_replace(
['VALET_USER', 'VALET_HOME_PATH', 'valet.sock'],