diff --git a/app/Commands/NginxVhostsCommand.php b/app/Commands/NginxVhostsCommand.php index c7ce50c..f396880 100644 --- a/app/Commands/NginxVhostsCommand.php +++ b/app/Commands/NginxVhostsCommand.php @@ -202,7 +202,7 @@ class NginxVhostsCommand extends Command // add directory for validator to check if file exits $data['index'] = $data['root'].'/'.$data['index']; - $validator = v::key('domain', v::domain()) + $validator = v::key('domain', v::domain(false)) ->key('root', v::directory()) ->key('index', v::file()); diff --git a/app/Commands/PhpFpmInstallCommand.php b/app/Commands/PhpFpmInstallCommand.php index a0e1049..9f95044 100644 --- a/app/Commands/PhpFpmInstallCommand.php +++ b/app/Commands/PhpFpmInstallCommand.php @@ -33,19 +33,10 @@ class InstallPhpFpmCommand extends Command */ public function handle() { - //$option = $this->menu('Install') - // ->addOption('nginx', 'Nginx') - // ->open(); - - //File::put('/etc/kkk', '/etc/kkk'); - - //$workers = exec('echo $(grep ^processor /proc/cpuinfo | wc -l)'); - //$ - //$ $this->info('Install PHP FPM'); exec('apt update 2>&1'); - exec('apt install -y php-fpm php-curl php-mysql php-pear php-mbstring php-dev php-gd 2>&1'); + exec('apt install -y php-fpm php-curl php-mysql php-pear php-dev php-gd 2>&1'); if (Install::isReady('nginx')) { diff --git a/app/Menus/Styles.php b/app/Menus/Styles.php new file mode 100644 index 0000000..e69de29