Upgrade from 6.5 to 6.7 and install phpmyadmin

For some test i’ve install nethserver 6.5 on virtualbox. Everything works but i cannot install nethforge repositoy to install phpmyadmin.

 # yum install nethserver-nethforge-release
Loaded plugins: fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile
Setting up Install Process
No package nethserver-nethforge-release available.
Error: Nothing to do

Any suggestion ?

please update your Distro to 6.7 or use @dz00te repo instead

I can’t update the distro… i have to simulate a nethserver 6.5 server…
the nethforge repo is not available to nethserver 6.5 ?
how con i install @dz00te repo ?

I’m not sure we can support version 6.5.
Could I ask why you can’t update?

The original server is a production server not connected to internet. Due to update it i have to connect it but i have to stop it from production from the necessary time… but i don’t know how much is the necessary time…
It has some personalized settings such as php 5.4 with many optional library…
Last time i tryed to upgrade a small test server we have from 6.5 to 6.6 beta we lost some personalized settings.
Now i will have to do 2 update: 6.5 to 6.6 and 6.6 to 6.7 but i’m not very sure to update… if one of the update compromise the server functionality the entire restore of the backup can take some hours ! It’s a huge of time of production stop… for my point of view it’s risky… tipically this server born, still in production for 5 years and die (taken out of service) with the same os. If a failure occur a twin server takes the place in second.

To synthesize… i have to test the update process before to apply it on a production server…
My many concern are:
the php 5.4 intalled from remi repo still function after the double update?
how many time can take the update?
the data in the shared folder may be lost during the update ?
if the update fail can i restore the last backup made from the previous version of the os ?

But now… how can i install phpmyadmin module from @dz00te repo ?

i’m sorry but there is no phpmyadmin on my repo (which is a clone of the original @stephdl repo). From what i see phpmyadmin was pushed on nethforge

the package is here…
http://mirror.framassa.org/nethserver/6.5/nethforge/x86_64/Packages/

Yes.

You can go from 6.5 to 6.7 directly. Time is related to link speed and hardware performances.
Data in shared folders is not modified in any way, it can’t be lost.
You can restore a backup coming from 6.5 in 6.7.

I agree with you that the whole process should be tested at least once. I’ve completed a lot of updates without issues, my confidence in the process is above the average. :smile:

Very good news :wink:
In the 6.7 manual i not find this thing… can you link me the page with the instruction ?

@dz00te
I’m not very skilled… how can i download and install the package from the mirror ?
I have to wget the package and next ? can you make me an example ?
The correct couple of package to download are: nethserver-phpmyadmin-1.1.0-1.ns6.noarch.rpm and phpMyAdmin-4.0.10.4-1.el6.noarch.rpm ?

use wget to download:
nethserver-phpmyadmin-1.1.0-1.ns6.noarch.rpm
phpMyAdmin-4.0.10.4-1.el6.noarch.rpm
php-php-gettext-1.0.11-3.el6.noarch.rpm
pwauth-2.3.10-5.el6.x86_64.rpm
mod_authnz_external-3.2.6-1.el6.x86_64.rpm

then:

yum localinstall nethserver-phpmyadmin-1.1.0-1.ns6.noarch.rpm \
phpMyAdmin-4.0.10.4-1.el6.noarch.rpm php-php-gettext-1.0.11-3.el6.noarch.rpm \
pwauth-2.3.10-5.el6.x86_64.rpm mod_authnz_external-3.2.6-1.el6.x86_64.rpm

I think it should be enough, if i miss some deps download it and add the filename to the yum command

Great… i’ve installed phpmyadmin on nethserver 6.5
Thanks @dz00te :wink:
Here the “script”… in order to satisfy the dependency execute in order:

wget http://mirror.framassa.org/nethserver/6.5/nethforge/x86_64/Packages/nethserver-phpmyadmin-1.1.0-1.ns6.noarch.rpm
wget http://mirror.framassa.org/nethserver/6.5/nethforge/x86_64/Packages/phpMyAdmin-4.0.10.4-1.el6.noarch.rpm
wget http://mirror.framassa.org/nethserver/6.5/nethforge/x86_64/Packages/php-php-gettext-1.0.11-3.el6.noarch.rpm
wget http://mirror.framassa.org/nethserver/6.5/nethforge/x86_64/Packages/pwauth-2.3.10-5.el6.x86_64.rpm 
wget http://mirror.framassa.org/nethserver/6.5/nethforge/x86_64/Packages/mod_authnz_external-3.2.6-1.el6.x86_64.rpm

wget http://mirror.framassa.org/nethserver/6.5/nethforge/x86_64/Packages/php-tcpdf-6.0.095-1.el6.noarch.rpm
wget http://mirror.framassa.org/nethserver/6.5/nethforge/x86_64/Packages/php-tcpdf-dejavu-sans-fonts-6.0.095-1.el6.noarch.rpm

wget http://mirror.framassa.org/nethserver/6.5/nethforge/x86_64/Packages/libmcrypt-2.5.8-9.el6.x86_64.rpm
wget http://mirror.framassa.org/nethserver/6.5/nethforge/x86_64/Packages/php-mcrypt-5.3.3-3.el6.x86_64.rpm

yum localinstall php-tcpdf-6.0.095-1.el6.noarch.rpm 
yum localinstall php-tcpdf-dejavu-sans-fonts-6.0.095-1.el6.noarch.rpm
yum localinstall libmcrypt-2.5.8-9.el6.x86_64.rpm 
yum localinstall php-mcrypt-5.3.3-3.el6.x86_64.rpm

yum localinstall pwauth-2.3.10-5.el6.x86_64.rpm 
yum localinstall php-php-gettext-1.0.11-3.el6.noarch.rpm 
yum localinstall mod_authnz_external-3.2.6-1.el6.x86_64.rpm
yum localinstall phpMyAdmin-4.0.10.4-1.el6.noarch.rpm
yum localinstall nethserver-phpmyadmin-1.1.0-1.ns6.noarch.rpm

Now after some other personalization i will try the upgrade from 6.5 to 6.7 if i found the instruction :wink:

Hi Technet,

Indeed, there aren’t instruction to directly upgrade from NS 6.5 to NS 6.7 but you can try:

  1. successive updates from 6.5 to 6.6 and then from 6.6 to 6.7, according those docs: http://docs.nethserver.org/en/v6.6/release_notes.html#upgrading-from-6-5
    http://docs.nethserver.org/en/v6.7/release_notes.html

  2. try, first on vm testing machine (NOT TESTED! Just a logical mix of tasks according to both docs - if my logic is good):

a. Make sure the system is fully updated:
yum update

b. Installing “yum-presto” should reduce the total download size:
yum install yum-presto

c. Since repository configuration has changed, remove the old configuration file:
rm -f /etc/yum.repos.d/NethServer.repo

d. Start the upgrade from 6.5 to 6.6:
yum -c http://mirror.nethserver.org/nethserver/nethserver-6.6.conf update

e. Make sure the new system is fully updated:
yum update

f. Upgrade the “nethserver-release package”:
yum localinstall http://mirror.nethserver.org/nethserver/nethserver-release-6.7.rpm

g. Clean up yum cache and run update again:
yum clean all && yum update

h. Finally, reboot the system (optional).

Good luck!

1 Like

Ok, i tried on a VM.

After the step e… the os is already NethServer release 6.7 (final) with kernel 2.6.32-431.el6.x86_64
It is possible ?
Perhaps the nethserver-6.6.conf file contain already the instruction to update to 6.7 ?

If so, it is possible.
Check with g. and then with h.
After that, check if NS 6.7 works well.

Yes… after f. yum output is: Packet already installed. Nothing to do.
Performing g. again nothing to do.
I’ve reboot the server just to make sure but before was already working and updated :wink:

1 Like

So, we can resume:

There are two methods to upgrade NS 6.5 to NS 6.7:

1. Successive updates from 6.5 to 6.6 and then from 6.6 to 6.7, according those docs:
http://docs.nethserver.org/en/v6.6/release_notes.html#upgrading-from-6-51
http://docs.nethserver.org/en/v6.7/release_notes.html

2. Directly update from NS 6.5 to 6.7 (Tested by @Technet on VM) :

a. Make sure the system is fully updated:
yum update

b. Installing “yum-presto” should reduce the total download size:
yum install yum-presto

c. Since repository configuration has changed, remove the old configuration file:
rm -f /etc/yum.repos.d/NethServer.repo

d. Start the upgrade:
yum -c http://mirror.nethserver.org/nethserver/nethserver-6.6.conf update

e. Make sure the new system is fully updated:
yum update

f. Clean up yum cache and run update again (optional):
yum clean all && yum update

g. Finally, reboot the system (optional).

I’m I right?

According to 6.5 to 6.6 update instruction, remind to set the php timezone after the update.

Things that can be tweaked:
Upgrade the default PHP timezone (date.timezone INI setting) from system default:
In Date and time page change the Timezone to a temporary value and click Submit button.
Set the Timezone to the original value and click Submit again.

I had to set it after the update process.

We can insert this step between e. and f.
What do you think?

I have performed the setting after the final reboot g. … but i was testing… i think that between e. and f. it’s ok… or between f. and g. it’s the same…

During my test, after e. i reboot the server then i performed f. … but i think that the reboot wasn’t necessary…

I put between e. and f. because f. and g. steps are optional.

If everything it’s OK, can you mark this post as [SOLVED] ?

That’s a great guide! Would you like to copy/paste on our wiki? :+1:
@Technet please mark solved this thread choosing the best post :wink: