I have just updated to Nextcloud 13 on my Raspberry Pi (Stretch). It reports that php 5.6 is installed and I should upgrade to 7.0 which I successfully did. "php -v" shows
Apparently, Nextcloud is some sort of web service, written in PHP. So, to get Nextcloud to use the updated version of PHP, you have to have your webserver use the updated version of PHP. This would likely entail shutting down and restarting your web server. That should be all you need to do.
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request
Unfortunately not. I searched a while with no avail.
I followed the instruction to install PHP7.0. It appears that php7.0-curl and php7.0-gd were missing. Now they are installed, the Pi restarted but Nextcloud still grumbles about PHP5.6 still in use.
A thought.... what version is your apache mod_php? Look through your http config files for a LoadModule line naming a php module. Make sure that it names the php 7 library and not the php 5 library
--
Lew Pitcher
"In Skills, We Trust"
PGP public key available upon request
Configuration files are always in /etc. Do "ls /etc" and see that apache2 is the folder you want. Do "ls /etc/apache2" and see nothing immediately helpful ... so try "grep -lr php /etc/apache2" to print the filenames (-l option) of all configuration files in that dir or subdirs (-r option) containing the string php. (Although I don't know why it didn't list "/etc/apache2/conf-available/phpmyadmin.conf" for me.) Then inspect them one-by-one to see if they need editing, e.g. "grep php /etc/apache2/mods-available/php5.load", while confirming that the configuration is enabled by checking the appropriate "enabled" dir for links, e.g. "ls -al /etc/apache2/mods-enabled"
I don't think this will end well. My advice is to start with a completely fresh Raspbian image. The latest one based on Debian Stretch has php7 in the standard repo, so simply install it together with apache, using apt-get.
is an even better friend; it may or may not find more stuff, but at least it doesn't spy on you.
Just say no to Big Brother.
--
/~\ cgibbs@kltpzyxm.invalid (Charlie Gibbs)
\ / I'm really at ac.dekanfrus if you read it the right way.
X Top-posted messages will probably be ignored. See RFC1855.
/ \ HTML will DEFINITELY be ignored. Join the ASCII ribbon campaign!
On 2018 Feb 22 00:05:54, you wrote to Lew Pitcher:
SB> I followed the instruction to install PHP7.0. It appears that SB> php7.0-curl and php7.0-gd were missing. Now they are installed, the Pi SB> restarted but Nextcloud still grumbles about PHP5.6 still in use.
you have to adjust the web server config to point to the proper shared module so that the web server is actually running/interfacing with the new PHP... just installing the new PHP doesn't have anything to do with what the web server talks to...
)\/(ark
Always Mount a Scratch Monkey Do you manage your own servers? If you are not running an IDS/IPS yer doin' it wrong... ... "God Jul og Godt Nytt Aar." - Norwegian Christmas
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.