mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-19 09:51:37 +00:00
add PHP 8.3 support
This commit is contained in:
parent
d8056441c0
commit
fd93f3dd47
@ -1,3 +1,3 @@
|
|||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common curl zip unzip git gcc
|
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common curl zip unzip git gcc openssl
|
||||||
git config --global user.email "__email__"
|
git config --global user.email "__email__"
|
||||||
git config --global user.name "__name__"
|
git config --global user.name "__name__"
|
||||||
|
@ -2,7 +2,9 @@ sudo add-apt-repository ppa:ondrej/php -y
|
|||||||
|
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get update
|
sudo DEBIAN_FRONTEND=noninteractive apt-get update
|
||||||
|
|
||||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y php__version__ php__version__-fpm php__version__-mbstring php__version__-mysql php__version__-mcrypt php__version__-gd php__version__-xml php__version__-curl php__version__-gettext php__version__-zip php__version__-bcmath php__version__-soap php__version__-redis php__version__-sqlite3
|
if ! sudo DEBIAN_FRONTEND=noninteractive apt-get install -y php__version__ php__version__-fpm php__version__-mbstring php__version__-mysql php__version__-gd php__version__-xml php__version__-curl php__version__-gettext php__version__-zip php__version__-bcmath php__version__-soap php__version__-redis php__version__-sqlite3 php__version__-tokenizer php__version__-pgsql php__version__-pdo; then
|
||||||
|
echo 'VITO_SSH_ERROR' && exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if ! sudo sed -i 's/www-data/__user__/g' /etc/php/__version__/fpm/pool.d/www.conf; then
|
if ! sudo sed -i 's/www-data/__user__/g' /etc/php/__version__/fpm/pool.d/www.conf; then
|
||||||
echo 'VITO_SSH_ERROR' && exit 1
|
echo 'VITO_SSH_ERROR' && exit 1
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
'8.0',
|
'8.0',
|
||||||
'8.1',
|
'8.1',
|
||||||
'8.2',
|
'8.2',
|
||||||
|
'8.3',
|
||||||
],
|
],
|
||||||
'databases' => [
|
'databases' => [
|
||||||
'none',
|
'none',
|
||||||
@ -239,6 +240,7 @@
|
|||||||
'8.0' => 'php8.0-fpm',
|
'8.0' => 'php8.0-fpm',
|
||||||
'8.1' => 'php8.1-fpm',
|
'8.1' => 'php8.1-fpm',
|
||||||
'8.2' => 'php8.2-fpm',
|
'8.2' => 'php8.2-fpm',
|
||||||
|
'8.3' => 'php8.3-fpm',
|
||||||
],
|
],
|
||||||
'ubuntu_20' => [
|
'ubuntu_20' => [
|
||||||
'5.6' => 'php5.6-fpm',
|
'5.6' => 'php5.6-fpm',
|
||||||
@ -249,7 +251,7 @@
|
|||||||
'7.4' => 'php7.4-fpm',
|
'7.4' => 'php7.4-fpm',
|
||||||
'8.0' => 'php8.0-fpm',
|
'8.0' => 'php8.0-fpm',
|
||||||
'8.1' => 'php8.1-fpm',
|
'8.1' => 'php8.1-fpm',
|
||||||
'8.2' => 'php8.2-fpm',
|
'8.3' => 'php8.3-fpm',
|
||||||
],
|
],
|
||||||
'ubuntu_22' => [
|
'ubuntu_22' => [
|
||||||
'5.6' => 'php5.6-fpm',
|
'5.6' => 'php5.6-fpm',
|
||||||
@ -261,6 +263,7 @@
|
|||||||
'8.0' => 'php8.0-fpm',
|
'8.0' => 'php8.0-fpm',
|
||||||
'8.1' => 'php8.1-fpm',
|
'8.1' => 'php8.1-fpm',
|
||||||
'8.2' => 'php8.2-fpm',
|
'8.2' => 'php8.2-fpm',
|
||||||
|
'8.3' => 'php8.3-fpm',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'redis' => [
|
'redis' => [
|
||||||
|
@ -181,7 +181,10 @@ class="mt-1 block w-full"
|
|||||||
<x-input-label for="os" value="Operating System" />
|
<x-input-label for="os" value="Operating System" />
|
||||||
<x-select-input id="os" name="os" class="mt-1 w-full">
|
<x-select-input id="os" name="os" class="mt-1 w-full">
|
||||||
@foreach (config("core.operating_systems") as $operatingSystem)
|
@foreach (config("core.operating_systems") as $operatingSystem)
|
||||||
<option value="{{ $operatingSystem }}" @if($operatingSystem == old('os')) selected @endif>
|
<option
|
||||||
|
value="{{ $operatingSystem }}"
|
||||||
|
@if($operatingSystem == old('os', 'ubuntu_22')) selected @endif
|
||||||
|
>
|
||||||
{{ str($operatingSystem)->replace("_", " ")->ucfirst() }}
|
{{ str($operatingSystem)->replace("_", " ")->ucfirst() }}
|
||||||
LTS
|
LTS
|
||||||
</option>
|
</option>
|
||||||
@ -197,7 +200,7 @@ class="mt-1 block w-full"
|
|||||||
<x-select-input x-model="type" id="type" name="type" class="mt-1 w-full">
|
<x-select-input x-model="type" id="type" name="type" class="mt-1 w-full">
|
||||||
@foreach (config("core.server_types") as $serverType)
|
@foreach (config("core.server_types") as $serverType)
|
||||||
<option value="{{ $serverType }}" @if($serverType == old('type')) selected @endif>
|
<option value="{{ $serverType }}" @if($serverType == old('type')) selected @endif>
|
||||||
{{ $serverType }}
|
{{ ucfirst($serverType) }}
|
||||||
</option>
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</x-select-input>
|
</x-select-input>
|
||||||
@ -207,7 +210,7 @@ class="mt-1 block w-full"
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid grid-cols-1 gap-3 lg:grid-cols-3">
|
<div class="grid grid-cols-1 gap-3 lg:grid-cols-3">
|
||||||
<div x-show="[ServerType::REGULAR].includes(type)">
|
<div x-show="['{{ ServerType::REGULAR }}'].includes(type)">
|
||||||
<x-input-label for="webserver" value="Webserver" />
|
<x-input-label for="webserver" value="Webserver" />
|
||||||
<x-select-input id="webserver" name="webserver" class="mt-1 w-full">
|
<x-select-input id="webserver" name="webserver" class="mt-1 w-full">
|
||||||
@foreach (config("core.webservers") as $ws)
|
@foreach (config("core.webservers") as $ws)
|
||||||
@ -220,7 +223,7 @@ class="mt-1 block w-full"
|
|||||||
<x-input-error class="mt-2" :messages="$message" />
|
<x-input-error class="mt-2" :messages="$message" />
|
||||||
@enderror
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div x-show="[ServerType::REGULAR, ServerType::DATABASE].includes(type)">
|
<div x-show="['{{ ServerType::REGULAR }}', '{{ ServerType::DATABASE }}'].includes(type)">
|
||||||
<x-input-label for="database" value="Database" />
|
<x-input-label for="database" value="Database" />
|
||||||
<x-select-input id="database" name="database" class="mt-1 w-full">
|
<x-select-input id="database" name="database" class="mt-1 w-full">
|
||||||
@foreach (config("core.databases") as $db)
|
@foreach (config("core.databases") as $db)
|
||||||
@ -233,7 +236,7 @@ class="mt-1 block w-full"
|
|||||||
<x-input-error class="mt-2" :messages="$message" />
|
<x-input-error class="mt-2" :messages="$message" />
|
||||||
@enderror
|
@enderror
|
||||||
</div>
|
</div>
|
||||||
<div x-show="[ServerType::REGULAR].includes(type)">
|
<div x-show="['{{ ServerType::REGULAR }}'].includes(type)">
|
||||||
<x-input-label for="php" value="PHP" />
|
<x-input-label for="php" value="PHP" />
|
||||||
<x-select-input id="php" name="php" class="mt-1 w-full">
|
<x-select-input id="php" name="php" class="mt-1 w-full">
|
||||||
@foreach (config("core.php_versions") as $p)
|
@foreach (config("core.php_versions") as $p)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user