php 5.5 and php 5.6

Status
Not open for further replies.

ibmguy

Dabbler
Joined
Jul 6, 2017
Messages
20
I am using the nextcloud jail inside freenas... nextcloud 11 requires php 5.6... will freenas be making the move to php 5.6??
 
Joined
Apr 9, 2015
Messages
1,258
An actual jail has nothing to really do with FreeNAS. If it needs version 5.6 you should use:

Code:
pkg install php56


http://www.freshports.org/lang/php56

Basically a jail is what you make of it and as long as it's available as a pkg or port you should be able to instal it.
 

ibmguy

Dabbler
Joined
Jul 6, 2017
Messages
20
An actual jail has nothing to really do with FreeNAS. If it needs version 5.6 you should use:

Code:
pkg install php56


http://www.freshports.org/lang/php56

Basically a jail is what you make of it and as long as it's available as a pkg or port you should be able to instal it.

"Updating local repository catalogue...
pkg: file:///usr/ports/packages/meta.txz: No such file or directory
repository local has no meta file, using default settings
pkg: file:///usr/ports/packages/packagesite.txz: No such file or directory
Unable to update repository local
All repositories are up-to-date.
pkg: Repository local cannot be opened. 'pkg update' required
pkg: No packages available to install matching 'php56' have been found in the re
positories"
 
Joined
Apr 9, 2015
Messages
1,258
What version of FreeNAS are you using and if you are on a 9.10 version did you upgrade from 9.3. That is what it sounds like so may want to do the upgrade to 11 and create a new jail. Otherwise there may be a connection problem that is preventing you from downloading.
 
D

dlavigne

Guest
Also, are you running that command inside the jail's shell? It won't work if you run it on FreeNAS instead.
 

ibmguy

Dabbler
Joined
Jul 6, 2017
Messages
20
My problem was because i didn't perform the command in the jail shell

"root@nextcloud_1:/ # pkg install php56
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed
"
seems that it did the update just fine
i then restarted the jail

but nextcloud is still telling me that i am on php5.5
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    63.6 KB · Views: 654
Joined
Apr 9, 2015
Messages
1,258
Probably have to stop php5.5 from starting up and modify so php5.6 is booting.

Enter the jail and then:
Code:
edit /etc/rc.conf


Should be something in there that points to php5 being enabled and you need php5.6.

Otherwise just make a new jail and start from scratch.

And Google is your friend, pretty much ANYTHING that you do in a jail on FreeNAS is the same as on FreeBSD since that is what FreeNAS is based on.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
pkg delete php55 followed by service php-fpm restart.

Do note that if you have all of the php55 dependencies installed it will delete all of them too. You'll likely have to re install all of them to match the php version you are using.

Also is this a plugin or manual install in a standard jail?
 

ibmguy

Dabbler
Joined
Jul 6, 2017
Messages
20
pkg delete php55 followed by service php-fpm restart.

Do note that if you have all of the php55 dependencies installed it will delete all of them too. You'll likely have to re install all of them to match the php version you are using.

Also is this a plugin or manual install in a standard jail?
root@nextcloud_1:/ # pkg delete php55
No packages matched for pattern 'php55'

Checking integrity... done (0 conflicting)
Package(s) not found!
root@nextcloud_1:/ # pkg delete php55
No packages matched for pattern 'php55'

I am using nextcloud plugin

i did the first command to download and install php5.6
but the two commands that you said to try didnt do anything
At this point i already completely deleted nextcloud and started over
when i reinstalled nextcloud it still only gave me nextcloud 10
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
Ok you can't update the packages that the nextcloud plugin was built with. You'll have to wait until the nextcloud plugin maintainer updates the plugin which isn't likely to happen since the plugins are going to change in FreeNAS 11.1.

You'd be much better served with a manual install in a standard jail that you can keep up to date yourself.
 

ibmguy

Dabbler
Joined
Jul 6, 2017
Messages
20
Ok you can't update the packages that the nextcloud plugin was built with. You'll have to wait until the nextcloud plugin maintainer updates the plugin which isn't likely to happen since the plugins are going to change in FreeNAS 11.1.

You'd be much better served with a manual install in a standard jail that you can keep up to date yourself.

so either wait for the next freenas update or do a standard jail?
and by doing the "pkg install php56" command will that screw anything up?
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977
and by doing the "pkg install php56" command will that screw anything up?
No but it will ignore the fact that php56 was installed.
so either wait for the next freenas update or do a standard jail?
Wait for the next Nextcloud plugin update or do a manual install in a standard jail. pkg install nexcloud will work or you can follow the guide in the forums. It's written for Owncloud but everything is the same. Just substitute Nexcloud for Owncloud in the instructions.
 

Kirschenhofer

Dabbler
Joined
Nov 23, 2016
Messages
14
I have an FreeNAS 11.0-U4 System.
I added a new standard - jail
I did a: pkg install nextcloud
The installation went through properly.

Now what is next? How can I start nextcloud?
Thanks!
 
Status
Not open for further replies.
Top