Note |
---|
If you aren't going to work in --dev-links mode (meaning you would like a standard install of FreePBX 12) then do NOT follow the rest of this guide, failure to not adhere to these warning will only cause headaches for you, especially if you don't understand how FreePBX functions internally, instead run |
|
|
|
Note |
---|
If you are on the FreePBX 7 Distro you can setup a development environment in less than 10 minutes. Check it out: Here |
Table of Contents |
---|
GIT
FreePBX uses GIT, an open source version control system. If you are unfamiliar with GIT, you can learn more about it at http://git-scm.com/ . If you are already familiar with Subversion, you may be interested in checking out http://git.or.cz/course/svn.html for a brief crash course based on your Subversion knowledge. Because GIT is based on a distributed system there is no 'one' central server as there was with SVN. However we consider our master server to be http://git.freepbx.orggithub.com/FreePBX which mirrors to github at https://github.com/freepbx
...
Make sure you have added your SSH key to our GIT Server: http://git.freepbx.orggithub.com/FreePBX/plugins/servlet/ssh/account/keys
Navigate to /usr/src
Code Block cd /usr/src
Checkout the devtools repo into this starting location
Code Block git clone ssh://git@git.freepbx.orggit@github.com/FreePBX/freepbx/devtools.git
Navigate to inside the devtools repo
Code Block cd /usr/src/devtools
Install your default configuration settings to the config file (create a file in your home directory called .freepbxconfig and put the information below in it)
.freepbxconfig
Code Block repo_directory=/usr/src/freepbx language_directory=/usr/src/freepbxlocalization
Run the freepbx_git.php setup script. This script will download all of the repos from the FreePBX Project, excluding devtools, into /usr/src/ (unless you specify somewhere else using --directory). When prompted for your Username and Password, please use your FreePBX.org Username and Password.
Code Block ./freepbx_git.php --setup --switch=release/13.0
Navigate to /usr/src/freepbx/framework
Code Block cd /usr/src/freepbx/framework
Run install with the '--dev-links' parameter.
Code Block ./install --dev-links
Note you can add '-n' after '--dev-links', which will use secure defaults and passwords for all the services requred.
Note |
---|
When you add the --dev-links parameter, this significantly and fundamentally changes the layout of your FreePBX machine. This parameter sets up symlinks throughout all of FreePBX and renders online module updates unreliable, at best! You should never do this on a production machine as it can easily cause significant and unexpected problems. |
Receiving an Error?
|
This is caused because you have an existing installation of FreePBX and our installer will not override a real file with a symlink. To fix it we should, perform the following after backing up any changes you in /var/www/html:
...