# 08. Multiple versi PHP-FPM pada Nginx Virtual Host ### Login VPS dan Lihat Nginx Config Login ke vps dengan ssh menggunakan ssh public key [![Screenshot 2023-10-31 at 00.30.11.png](https://book.najamudinridha.com/uploads/images/gallery/2023-10/scaled-1680-/screenshot-2023-10-31-at-00-30-11.png)](https://book.najamudinridha.com/uploads/images/gallery/2023-10/screenshot-2023-10-31-at-00-30-11.png) kemudian kita lihat configurasi nginx kita sebelumnya ```bash cat /etc/nginx/sites-enabled/idrive.id ``` [![Screenshot 2023-10-31 at 00.30.58.png](https://book.najamudinridha.com/uploads/images/gallery/2023-10/scaled-1680-/screenshot-2023-10-31-at-00-30-58.png)](https://book.najamudinridha.com/uploads/images/gallery/2023-10/screenshot-2023-10-31-at-00-30-58.png) ### Membuat Folder untuk Sub Directory Backend untuk membuat root directory untuk sub directory pada domain, kita buat terlebih dahulu folder dan file index.php untuk testing, jalankan perintah berikut ```bash # pindah direktory cd /var/www/ # membuat folder baru sudo mkdir backend ``` [![Screenshot 2023-10-31 at 00.32.02.png](https://book.najamudinridha.com/uploads/images/gallery/2023-10/scaled-1680-/screenshot-2023-10-31-at-00-32-02.png)](https://book.najamudinridha.com/uploads/images/gallery/2023-10/screenshot-2023-10-31-at-00-32-02.png) buat file `index.php` dengan perintah `sudo nano index.php` kemudian enter dan isi dengan kode berikut : ```bash https://idrive.id` akan diload dengan php versi 7.4 [![Screenshot 2023-10-31 at 01.00.34.png](https://book.najamudinridha.com/uploads/images/gallery/2023-10/scaled-1680-/screenshot-2023-10-31-at-01-00-34.png)](https://book.najamudinridha.com/uploads/images/gallery/2023-10/screenshot-2023-10-31-at-01-00-34.png) dan akses website `https://idrive.id/backend` akan diload dengan php versi 8.1 [![Screenshot 2023-10-31 at 01.00.40.png](https://book.najamudinridha.com/uploads/images/gallery/2023-10/scaled-1680-/screenshot-2023-10-31-at-01-00-40.png)](https://book.najamudinridha.com/uploads/images/gallery/2023-10/screenshot-2023-10-31-at-01-00-40.png)