Cevap yorumlardan hiçbiri. Aşağıdakini uygulayıp sunucu php versiyonunu istenene göre değiştirin.



phpinfo() gives you the version of apache which is the actual version the project runs on and in case you want to change it simply follow these steps:
install php version that you wish to install:
sudo add-apt-repository ppandrej/php -y
sudo apt-get update

//replace X with the version you want
sudo apt-get install php7.X-fpm php7.X-curl php7.X-mbstring php7.X-mysql -y
Now restart your apache:
sudo service apache2 restart
disable current php version(the one that phpinfo() gives you):
sudo a2dismod php7.2
And now enable php version that you just installed:
sudo a2enmod php7.X