Change oC php version

Please help us by providing the following info. Before posting please also check the pinned "Known issues" thread.

Steps to reproduce
Yum updated PHP

Expected behaviour
OC should be using the updated PHP version (7.0.9)

Actual behaviour
oC admin page reports using PHP 5.4.40

Server configuration
Operating system: Centos 6.8
Web server: Apache 2.2
Database: MySQL
PHP version: 7.0.9
ownCloud version (see ownCloud admin page): 9.1.0

What do I need to change to make sure that OC is using PHP 7?

You have to tell your webserver to use php7. This question is more likely to be answered in the centOS community.

When I do php -v it says PHP 7.0.9 but when run the script phpinfo.php it reports 5.4.40.

On your terminal you are already using php7, you've probably installed both. In /etc/apache2/mods-available you normally have all available modules. a2enmod modulename enables and a2dismod modulename disables a module.

Moving to the off-topic category as this is not an issue of oC but a configuration issue on your webserver.

Ended up remoing everything php7