Hi pakmafia,
Sometimes both versions of PHP are installed on the server but only one is enabled. You have to disable PHP7 then enabled PHP5 if you want to use it. Some directions below:
$ssh username@myIP - Login to your server via ssh
$ a2dismod php7.0 - Disable PHP7
$ a2enmod php5 - Enable PHP5
$ service apache2 restart - Restart Apache2
Sometimes both versions of PHP are installed on the server but only one is enabled. You have to disable PHP7 then enabled PHP5 if you want to use it. Some directions below:
$ssh username@myIP - Login to your server via ssh
$ a2dismod php7.0 - Disable PHP7
$ a2enmod php5 - Enable PHP5
$ service apache2 restart - Restart Apache2