SyntaxFix
Write A Post
Hire A Developer
Questions
First, disable the php5 module:
php5
a2dismod php5
then, enable the php7 module:
php7
a2enmod php7.0
Next, reload/restart the Apache service:
service apache2 restart
wrt the comment, you need to specify exact installed php-7.x version.