restart php after installing phpmyadmin (#198)

This commit is contained in:
Saeed Vaziry
2024-05-09 12:52:28 +02:00
committed by GitHub
parent 016886f307
commit 765ac21916
6 changed files with 14 additions and 11 deletions

View File

@ -3,6 +3,7 @@
namespace App\SiteTypes;
use App\Enums\SiteFeature;
use App\SSH\Services\Webserver\Webserver;
use Illuminate\Validation\Rule;
class PHPBlank extends PHPSite
@ -42,7 +43,9 @@ public function data(array $input): array
public function install(): void
{
$this->site->server->webserver()->handler()->createVHost($this->site);
/** @var Webserver $webserver */
$webserver = $this->site->server->webserver()->handler();
$webserver->createVHost($this->site);
$this->progress(65);
$this->site->php()?->restart();
}

View File

@ -41,9 +41,12 @@ public function data(array $input): array
public function install(): void
{
$this->site->server->webserver()->handler()->createVHost($this->site);
/** @var Webserver $webserver */
$webserver = $this->site->server->webserver()->handler();
$webserver->createVHost($this->site);
$this->progress(30);
app(\App\SSH\PHPMyAdmin\PHPMyAdmin::class)->install($this->site);
$this->progress(65);
$this->site->php()?->restart();
}
}

View File

@ -68,7 +68,9 @@ public function data(array $input): array
*/
public function install(): void
{
$this->site->server->webserver()->handler()->createVHost($this->site);
/** @var Webserver $webserver */
$webserver = $this->site->server->webserver()->handler();
$webserver->createVHost($this->site);
$this->progress(15);
$this->deployKey();
$this->progress(30);

View File

@ -81,7 +81,9 @@ public function data(array $input): array
public function install(): void
{
$this->site->server->webserver()->handler()->createVHost($this->site);
/** @var Webserver $webserver */
$webserver = $this->site->server->webserver()->handler();
$webserver->createVHost($this->site);
$this->progress(30);
/** @var Database $database */
$database = app(CreateDatabase::class)->create($this->site->server, [