Nextcloud Update to PHP7

Status
Not open for further replies.

msvuze

Dabbler
Joined
Dec 11, 2016
Messages
45
I installed nextcloud and updated the jail to PHP7 but when I go to the admin page of nextcloud it still says I'm running PHP 5.5.
In the jail shell when I run php -v it says PHP 7.0.14
So I guess I have it installed inside the jail just don't know why nextcloud is not picking up the latest version (7.0.14) ?

Is there a guide on how to update php7 inside a jail or do a system wide update to PHP7 ?
or at least on where to find some guidance on how to change the default version inside a jail ?

THANKS FOR ANY HELP
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Did you restart the service after installing php7? service php-fpm restart
 

msvuze

Dabbler
Joined
Dec 11, 2016
Messages
45
Did you restart the service after installing php7? service php-fpm restart
Hi, yes I did.
Code:
root@nextcloud_1:/ # service php-fpm restart																						
Cannot 'restart' php_fpm. Set php_fpm_enable to YES in /etc/rc.conf or use 'onerestart' instead of 'restart'.					  
root@nextcloud_1:/ # service php-fpm onerestart																					
Performing sanity check on php-fpm configuration:																				  
[29-Dec-2016 21:50:52] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful									
																																	
Stopping php_fpm.																												  
Waiting for PIDS: 62529.																											
Performing sanity check on php-fpm configuration:																				  
[29-Dec-2016 21:50:52] NOTICE: configuration file /usr/local/etc/php-fpm.conf test is successful									
																																	
Starting php_fpm.																												  
root@nextcloud_1:/ # service php-fpm onestart																					  
php_fpm already running?  (pid=62642).																							
root@nextcloud_1:/ # php -v																										 
PHP 7.0.14 (cli) (built: Dec 29 2016 13:24:25) ( NTS )																			 
Copyright (c) 1997-2016 The PHP Group																							   
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies																					
						 
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Is this the plugin? You can't manually install a different version of PHP and expect it to work.

If you want PHP7 then follow the manual install of Owncloud posted by @Joshua Parker Ruehlig. Just replace every reference of Owncloud with Nexcloud and it will work.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
exactly what @Jailer said. The plugin uses apache's mod_php not php-fpm.
 
Status
Not open for further replies.
Top