|
|
@ -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')) { |
|
|
|
|
|
|
|