libapache2-mod-php5
need also to be installed.libapache2-mod-php5
is something like a glue within the Apache2 server and your PHP files.apt-get install libapache2-mod-php
.sudo apt-get install php-mbstring php7.0-mbstring php-gettext
.sudo apt-get install apache2 libapache2-mod-php mysql-server php php-gettext php-mbstring php7.0-mbstring
sudo /etc/init.d/apache2 restart
php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";