Upgrading FreePBX
Note: You may need to install subversion for your linux distribution if you have any errors. Do this by typing yum -y install subversion at the root prompt.
Upgrading to the latest Released Version: 2.6.0
You will want to pull the release tarball, and follow the instructions below. Once you have installed it you will want to navigate to Module Admin menu item and update all modules as well as install other available modules not included in the release tarball.

cd /usr/src/
wget http://mirror.freepbx.org/freepbx-2.6.0.tar.gz
tar zxvf freepbx-2.6.0.tar.gz
cd freepbx-2.6.0
./start_asterisk start # for upgrades use: amportal start 
./install_amp

On some rare cases you may experience an issue with the SQL database not being correctly updated. If that appears to be the case, you can safely add the --force-version option. For example, if you were upgrading from version 2.1.3 you might type:

cd /usr/src/freepbx-2.6.0
./install_amp --force-version=2.1.3

(Replace 2.1.3 with the version you are upgrading from, or an earlier version which is also safe)

Upgrading to the latest stable 2.6 branch from SVN
If you prefer to pull directly from the SVN repository you can follow these instructions below. Once you have installed FreePBX it is important to navigate to Module Admin in FreePBX and upgrade your modules. Installing FreePBX in this way (vs. using the release tarball) is not recommended for initial installs unless you are very familiar with the project. Without loading critical modules like core, framework, voicemail and some others your system will not be able to do anything for you or will function improperly.

cd /usr/src/
svn co http://svn.freepbx.org/freepbx/branches/2.6 freepbx-2.6

Installation instructions are the same as above after exploding the tarball

Note:Need to get the new func_devstate features to take advantage of the optional BLF? You can get a version that works on 1.4 from this website, and then you simply put the file in your apps subdirectory of your asterisk source and re-run make and make install. To use this mode, amportal.conf needs the setting:

USEDEVSTATE=true

Upgrading to the current 2.7 Beta/Release Candidate
You will want to pull the release tarball, and follow the instructions below. Once you have installed it you will want to navigate to Module Admin menu item and update all modules as well as install other available modules not included in the release tarball.

cd /usr/src/
wget http://mirror.freepbx.org/freepbx-2.7.0beta1.tar.gz
tar zxvf freepbx-2.7.0beta1.tar.gz
cd freepbx-2.7.0beta1
./start_asterisk start # for upgrades use: amportal start 
./install_amp

On some rare cases you may experience an issue with the SQL database not being correctly updated. If that appears to be the case, you can safely add the --force-version option. For example, if you were upgrading from version 2.1.3 you might type:

cd /usr/src/freepbx-2.7.0beta1
./install_amp --force-version=2.1.3

(Replace 2.1.3 with the version you are upgrading from, or an earlier version which is also safe)
Upgrading to 2.6 From trixbox
If you are using a version of trixbox that no longer connects to the FreePBX repository and does not provide you with the 2.6 Upgrade Tool, you can upgrade to 2.6 by following these simple instructions. The process will simply install a special version of the Upgrade Tool and then you will upgrade just the same as the normal GUI upgrade process. Although the tool may indicate you are upgrading to a beta or release candidate program, since 2.6 has gone final, you will actually be upgraded to the current 2.6 released version. The steps are simply:

  1. Download the upgrade module to your desktop by pressing this link: Download trixbox Upgrade Tool
  2. Navigate to Module Admin in FreeBPX, click on the Upload module link and then browse to the module you downloaded in step 1, choose it, and then press upload.
  3. Now you simply install the module as if you were downloading it from the Online Repository and then you can follow the instructions provided by the module to upgrade!

The process is almost identical to pulling the module from our repository and once you do this, you will have access to all the great features and many bug fixes no present elsewhere.
Upgrading to the trunk branch
The trunk is where active development happens. The project tries hard to keep it relatively stable and you will find it is fairly safe to run off of this branch most of the time, although it is actively being developed on so glitches can occur. This differs from release branches where they are limited to the latest bug fixes. You can access the development trunk as described below.
To run off of trunk and keep up-to-date with every change even before modules get published, there is a set of tools that will help you build an install environment where you do NOT use Module Admin to keep up-to-date. The instructions are:

cd /usr/src/
svn co http://svn.freepbx.org/freepbx/trunk freepbx-trunk
cd freepbx-trunk
./setup_svn.php

At this point, you will now have a special SVN environment where all the FreePBX modules are pulled into your install directory. You can then do a normal install:

./install_amp --force-version=2.4.1

Note that you will always want to do a force-version in case there are new schema changes introduced since the last time you updated. If you are updating from a release prior to 2.4.1, you should use that release number the first time, but 2.4.1 after that is fine.
Now, instead of using Module admin with this setup, you can simply follow the following procedure to update yourself to the newest updates that may have been committed:

cd /usr/src/freepbx-trunk
svn update
./install_amp --force-version=2.4.1 #(*)

(*) if there were no updates pulled, then there is no need to do an install amp again
The install will take longer because it will be going through the process of reinstalling all modules, but it will do such with all new changes even before they are published to the Online Repository.

Changing the URL from a previously checked SVN checkout
You may already have already performed an svn co from the repository and when you now try to access the repository (e.g. doing an svn update) it no longer works because the URL has been changed from some of the recent SVN changes. You can simply change the URL to point to the new repository location with the following instructions:

  1. Go to the root of your checked out branch and type svn info
  2. you will see something such as: https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/branches/2.3 as part of the information.
  3. you would then execute the following command:
    svn switch --relocate https://amportal.svn.sourceforge.net/svnroot/amportal/freepbx/branches/2.3 http://svn.freepbx.org/freepbx/branches/2.3
    
  4. That would be it, you should now be pointing to the proper repository. You may need to modify the above URL depending on what you get from your svn info command.

Related Content


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

OK, I am all about it.

cosmicwombat's picture

I did the upgrade this morning fro 2.3.1.1 and it seemed to go very smoothly. This is on a new install of PBXiaF 1.1.


Upgraded from 2.3.1.2 to 2.4 Beta with this error

versodom's picture

Error occurs when a reload is initiated after upgrading modules:

Fatal error: Cannot instantiate non-existent class: ext_setcallerpres in /var/www/html/admin/modules/core/functions.inc.php on line 1166

What should I do to correct this?


Added additional Modules now relaod causes different error

versodom's picture

Fatal error: Cannot instantiate non-existent class: ext_parkedcall in /var/www/html/admin/modules/parking/functions.inc.php on line 107

Problem went away when I uninstalled parking module then reinstalled module.

Original problem returned (above).


did you load framework

p_lindheimer's picture

did you load framework first? I've been 'slack' in putting dependency requirements this early in the beta program, the expectation is you accept all updates when they are made available. These should be declared and provided in framework.


I don't recall the order. If

versodom's picture

I don't recall the order. If not how do I fix the problem?


load framework and don't do

p_lindheimer's picture

load framework and don't do the reload bar until framework is up and loaded.


Thanks, it is back up

versodom's picture

I installed the latest framework module and problem is solved.


mirror.freepbx.org is not working

gcastano's picture

Never mind ... it is working now.


mysql PHP Libraries?

vbundi's picture

Getting this error

Connecting to database..FAILED
[FATAL] mysql PHP libraries not installed

which is not true...


trunks do not appear in FreePBX interface

vokykaka's picture

I have installed Asterisk from Fedora Core 4 , but in Panel interface of FreePBX do not appear zap trunks ( zap1, zap2 , zap3 ... )
Please help me to resolve this problem. Thanks


-bash: ./amportal: No such file or directory

greno's picture

I tried to upgrade but it failed:
cd freepbx-2.4.0
./amportal start
-bash: ./amportal: No such file or directory

???


Trixbox Upgrade Fails

dljames9's picture

I downloaded this file: versionupgrade-2.4.0.1.tar
I selected upoad from the modules page, and then chose the file above.
Pressed Submit, and got this error:

The following error(s) occured processing the uploaded file:

File must be in tar+gzip (.tgz or .tar.gz) format
You should fix the problem or select another file and try again.

My current version of FreePBX is 2.3.1.7


I had the same problem. You

R_Henry's picture

I had the same problem. You probably downloaded it with IE.

just change the file name. to .tgz and try again it will work. Or I should say it worked for me.

Rob


-bash: ./amportal: No such file or directory

rbl2's picture

I tried to upgrade Ver 2.2.1 to 2.5.0, but it failed:
cd freepbx-2.5.0
./amportal start
-bash: ./amportal: No such file or directory
What am I doing wrong?


typo in the instructions,

p_lindheimer's picture

typo in the instructions, it's 'amportal start'


Many Thanks

rbl2's picture

Thanks for the reply - correcting the command to 'amportal start' works but the next command:

./install_amp gives another error as follows:

Status: 400
Content-type: text/html

Security Alert! The PHP CGI cannot be accessed directly.

This PHP CGI binary was compiled with force-cgi-redirect enabled. This means that a page will only be served up if the REDIRECT_STATUS CGI variable is set, e.g. via an Apache Action directive.

For more information as to why this behavior exists, see the http://php.net/security.cgi-bin page for CGI security.
For more information about changing this behavior or re-enabling this webserver, consult the installation file that came with this distribution, or visit http://php.net/install.windows manual page.

The above web pages are no help. Any suggestions?

Regards:

Rich


are you trying to run this

p_lindheimer's picture

are you trying to run this on windows?


update

menno79's picture

Hi all,

i would like to update the system, but I'm not really familiar with freepbx. If found 2 different version numbers. The first one shows 2.2.1 as being the administration-module. The second versionnumber mentioned is Trixbox CE 2.2.3. Any idea what I need to update and where to get the right update to update with?

Thanks a lot in advance!

Menno


trixbox is a distro release

fskrotzki's picture

trixbox is a distro release number. trixbox 2.2.3 was probably the last of the good releases...

The version of FreePBX is found by going to the admin interface and on that screen you'll find it's number upper left corner is where it is in newer versions, older versions had it at the bottom if I remember correctly.

You can also get it from the Module admin screen and you'll be interested in what the core version number is.

no matter what you do FIRST BACKUP your system just to be safe.


back-up 'n update

menno79's picture

@fskrotzki

Hi, thanks for your reply. Can you tell me how to back-up and update from version 2.2.1 to 2.5.1?? I'm really not familiar with FreePBX. Core version is v1.2 by the way...

Thanks in advance!

Menno


To backup a older FreePBX

fskrotzki's picture

To backup a older FreePBX system install and activate the backup module. The create a backup using it, make sure you checked all options for the backup, and set now as the start time, save the backup, then select it and click run now (Yes if you try run now without saving it there is nothing saved in the database to be run first). VERIFY that it completed the backup to do that in linux go to /var/lib/asterisk/backups/xxx where xxx is the name you gave the backup an inside it there should be a file that starts with the days date it ran in the format of YYYYMMDD.HH.mm.SS.tar.gz (Y=Year, M=Month, D=day, H=Hour, m=minute, S=second)

When you see that file first off transfer a copy to someplace safe off the machine just in case..

Then follow the directions above for upgrading.

If you have other questions you'd be better posting them in the forums section then under the documentation section.


to link a E1 line

gideon101@gmail.com's picture

Hi there i in South Africa and trying to link a E1 line to my pbx. im running threw a E1 gateway. please i need some help or guideline on where to look to fix the problem


gideon101, what does your

fskrotzki's picture

gideon101, what does your question have to do with upgrading a system. Please post as a new topic instead of hijacking a existing one. It is considered very impolite.


Wrong versions - upgrade 2.5 to 2.6 (resolved)

colinjack's picture

The Upgrade Tool link above links to http://mirror.freepbx.org/versionupgrade-2.4.0.1.tgz

I want to upgrade to 2.6 from my current 2.5 version but get this when I try and install the module:

"A FreePBX version below 2.5.0alpha1 is required, you have 2.5.2"

Followed by 'Cancel'

I tried to SSH to the module folder and edit the version in the XML file - which allowed it to install - but it didn't upgrade the FreePBX and then deleted itself!

What to do please?

Thanks

Note: I re-posted on the forum and got this fixed.