diff --git a/app/Factories/NginxVhostFactory.php b/app/Factories/NginxVhostFactory.php index da38edb..ea08365 100644 --- a/app/Factories/NginxVhostFactory.php +++ b/app/Factories/NginxVhostFactory.php @@ -148,10 +148,10 @@ class NginxVhostFactory ->ask(); $email = $result->fetch(); - system(base_path().' php mcp lets-encrypt:add '.$email.' '.$vhost['domain']); + system('php '.base_path().'/mcp lets-encrypt:add '.$email.' '.$vhost['domain']); if ($vhost['redirect_www'] === true) { - system(base_path().' php mcp lets-encrypt:add '.$email.' www.'.$vhost['domain']); + system('php '.base_path().' mcp lets-encrypt:add '.$email.' www.'.$vhost['domain']); } });