Debian 11'e PHP 7.4 kurmak için konsolda
apt -y install php7.4 php7.4-mbstring php-pear
yazarak kurulumun bitmesini bekleyelim. -
Yükleme bitince konsola php -v yazarak çalıştıralım.
Aşağıdaki gibi mesaj ekranı gellirse kurulum sorunsuz tamamlanmış demektir.
-PHP 7.4.21 (cli) (built: Sep 24 2021 22:49:49) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.21, Copyright (c), by Zend Technologies---
daha sonra konsola -
echo "<?php echo 'PHP Test Page'.\"\n\"; ?>" > test.php
-
yazarak enter tuşuna basalım. Bu işlem echo ile yazdığımızı test.php dosyasına kaydeder.
Ardından aşağıdaki komutu çalıştıralım.
php test.php
Bu işlem sonucunda aşağıdaki yazı görülüyorsa, PHP 7.4 çalışıyor demektir.
PHP Test Page --
Sorunsuz günler dilerim ...-
apt -y install php7.4 php7.4-mbstring php-pear
yazarak kurulumun bitmesini bekleyelim. -
Yükleme bitince konsola php -v yazarak çalıştıralım.
Aşağıdaki gibi mesaj ekranı gellirse kurulum sorunsuz tamamlanmış demektir.
-PHP 7.4.21 (cli) (built: Sep 24 2021 22:49:49) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.21, Copyright (c), by Zend Technologies---
daha sonra konsola -
echo "<?php echo 'PHP Test Page'.\"\n\"; ?>" > test.php
-
yazarak enter tuşuna basalım. Bu işlem echo ile yazdığımızı test.php dosyasına kaydeder.
Ardından aşağıdaki komutu çalıştıralım.
php test.php
Bu işlem sonucunda aşağıdaki yazı görülüyorsa, PHP 7.4 çalışıyor demektir.
PHP Test Page --
Sorunsuz günler dilerim ...-


