Change oC php version

off-topic
php

#1

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?


#2

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


#3

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


#4

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.


#5

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


#6

Ended up remoing everything php7