# PHP 8.0 Installation

### Beschreibung

Installation php 8.0 und einfügen in ISPConfig

### Installation

#### PHP 8.0 installieren

```
apt install php8.0 php8.0-cli php8.0-cgi php8.0-fpm php8.0-gd php8.0-mysql php8.0-imap php8.0-curl php8.0-intl php8.0-pspell php8.0-sqlite3 php8.0-tidy php8.0-xsl php8.0-zip php8.0-mbstring php8.0-soap php8.0-opcache php8.0-common php8.0-readline php8.0-xml php8.0-curl php8.0-imagick php8.0-bcmath
```

Danach erstmal die Ursprüngliche Version als default festlegen

```
update-alternatives --config php
update-alternatives --config php-cgi
```

nun wählen:

Ausgabe:

```
  Auswahl      Pfad             Priorität Status
------------------------------------------------------------
* 0            /usr/bin/php8.2   82        automatischer Modus
  1            /usr/bin/php7.3   73        manueller Modus
  2            /usr/bin/php7.4   74        manueller Modus
  3            /usr/bin/php8.2   82        manueller Modus

```

#### Einfügen neuer Config

Unter System -&gt; Zusätliche PHP Versionen

[![Screenshot 2023-09-04 at 13-01-46 ISPConfig.png](https://wiki.hacker-net.de/uploads/images/gallery/2023-09/scaled-1680-/6x4iBbTqdasJAoEU-screenshot-2023-09-04-at-13-01-46-ispconfig.png)](https://wiki.hacker-net.de/uploads/images/gallery/2023-09/6x4iBbTqdasJAoEU-screenshot-2023-09-04-at-13-01-46-ispconfig.png)

Dann auf PHP Version hinzufügen

[![Screenshot 2023-09-04 at 13-04-04 ISPConfig.png](https://wiki.hacker-net.de/uploads/images/gallery/2023-09/scaled-1680-/Xw40ybG8rLJ2wrww-screenshot-2023-09-04-at-13-04-04-ispconfig.png)](https://wiki.hacker-net.de/uploads/images/gallery/2023-09/Xw40ybG8rLJ2wrww-screenshot-2023-09-04-at-13-04-04-ispconfig.png)

Diese Werte eintragen

Server: &lt;Server&gt; (unseren Server auswählen)  
Kunde: leer  
PHP-Name: PHP 8.0  
Aktiv: Ja

[![Screenshot 2023-09-04 at 13-33-35 ISPConfig.png](https://wiki.hacker-net.de/uploads/images/gallery/2023-09/scaled-1680-/Vw2rSzy34P54gAZ7-screenshot-2023-09-04-at-13-33-35-ispconfig.png)](https://wiki.hacker-net.de/uploads/images/gallery/2023-09/Vw2rSzy34P54gAZ7-screenshot-2023-09-04-at-13-33-35-ispconfig.png)

Nun auf den Registerreiter FastCGI gehen

``

```
Pfad zum PHP FastCGI Binary: php8.0-cgi 
Pfad zum php.ini Verzeichnis  /etc/php/8.0/cgi/php.ini 
```

[![Screenshot 2023-09-04 at 13-34-31 ISPConfig.png](https://wiki.hacker-net.de/uploads/images/gallery/2023-09/scaled-1680-/Slvz1ZdrMnpjXTyZ-screenshot-2023-09-04-at-13-34-31-ispconfig.png)](https://wiki.hacker-net.de/uploads/images/gallery/2023-09/Slvz1ZdrMnpjXTyZ-screenshot-2023-09-04-at-13-34-31-ispconfig.png)

Nun auf den Register PHP-FPM Einstellungen

```
Pfad zum PHP-FPM Init Script: php8.0-fpm
Pfad zum php.ini Verzeichnis: /etc/php/8.0/fpm/php.ini
Pfad zum PHP-FPM Pool Verzeichnis: /etc/php/8.0/fpm/pool.d
```

[![Screenshot 2023-09-04 at 13-35-42 ISPConfig.png](https://wiki.hacker-net.de/uploads/images/gallery/2023-09/scaled-1680-/ar68fPY6DNAjRvQ4-screenshot-2023-09-04-at-13-35-42-ispconfig.png)](https://wiki.hacker-net.de/uploads/images/gallery/2023-09/ar68fPY6DNAjRvQ4-screenshot-2023-09-04-at-13-35-42-ispconfig.png)

Nun auf Speichern klicken