Installation Support

147 views
Skip to first unread message

freepybx

unread,
Mar 9, 2012, 12:11:57 PM3/9/12
to Free...@googlegroups.com
Please only post questions regarding the installation of FreePyBX in this topic. If you do not see a topic that fits your question, please feel free to contact the administrators.

freepybx

unread,
Mar 27, 2012, 10:39:26 PM3/27/12
to Free...@googlegroups.com
You will need to be in /usr/local/www

in this directory will be bin lib doc etc.

$ source bin/activate

then

cd FreePyBX

then continue... thanks, Noel

OlliT

unread,
Apr 12, 2012, 7:03:12 AM4/12/12
to Free...@googlegroups.com
Hi Noel,
 
in /usr/local/www there no bin, lib, etc.
 
I have installed a new cent os 6.2
 
Kind Regards

freepybx

unread,
Apr 12, 2012, 10:08:21 AM4/12/12
to Free...@googlegroups.com
as root or sudo:

# cd /usr/local
if freeswitch already exists
# usermod -d /usr/local/www freeswitch
or create the user with given directory
# adduser -d /usr/local/www freeswitch
# virtualenv www
# chown -R freeswitch:freeswitch www
# su freeswitch
# cd
# source bin/activate

Tony

unread,
Apr 14, 2012, 6:41:17 PM4/14/12
to Free...@googlegroups.com
I had the same issue. I not sure if we are following the instructions correctly but I found the bin directory in:
 
/usr/local/www/freepybx/FreePyBX/

OlliT

unread,
Apr 16, 2012, 9:33:34 AM4/16/12
to Free...@googlegroups.com
Thanks,
 
i think it is not correctly.
 
  • su freeswitch
  • cd ~/../
  • cd /usr/localvirtualenv --no-site-packages www
  • cd www
  • source bin/activate
 
there is another error, an "return" between /usr/local and virtualenv is the reason?
 
Kind Regards

OlliT

unread,
Apr 16, 2012, 10:00:02 AM4/16/12
to Free...@googlegroups.com
I have an error on
 
paster setup-app development.ini
 
import transaction is not a modul

Tony

unread,
Apr 16, 2012, 10:10:30 AM4/16/12
to Free...@googlegroups.com
I have spent a week trying to follow the installation guide it seems it is not accurate I was not able to complete the install.
I really think it is impossible to installing following the instrucions on that guide.

Here are the things I had to correct:
 
1. install lib     yum install bzip2-devel
2,  yum install python-paste-script
3. The command to create the virtual environment: virtualenv /usr/local/www  --no-site-packages
 
I was still getting issues with paster so I never got to see the login page.
 
If you decide to keep trying .... good luck! let me know if you were successful.
 

I think FreePyBX is a great GUI but the installation documentation seems not to be correct besides being kind of complicated.

OlliT

unread,
Apr 16, 2012, 10:43:19 AM4/16/12
to Free...@googlegroups.com
I have an error on start nginx:
 
Starting nginx: nginx: [emerg] "proxy_pass" directive is not allowed here in /etc/nginx/nginx.conf:63
                                                           [FAILED]

freepybx

unread,
Apr 17, 2012, 5:32:58 PM4/17/12
to Free...@googlegroups.com
make sure zope.sqlalchemy is installed

# easy_install zope.sqlalchemy

That will give you transaction support, but in recent sqlalchemy versions, the commit has a bug after several thousand transactions the commits no longer work. I did a workaround in the code and will pursue that bug when I have a little more time, but that should get you going.

freepybx

unread,
Apr 17, 2012, 5:53:22 PM4/17/12
to Free...@googlegroups.com
The instructions should work, but there are issues with FS build and postgres lib install directories. I also noticed that there were a few needed tweaks for 64 bit python zlib, but the docs have since been updated. paste will be installed by easy_install as part of step 7 and will be independent of yum python paste install, which would be for version 2.4 or 2.6 anyways. The virtualenv will house all necessary python binaries and modules in the ~freeswitch/lib/python2.7/site-packages directory.

freepybx

unread,
Apr 17, 2012, 5:57:38 PM4/17/12
to Free...@googlegroups.com
My guess would be that you closed the curly brace for the server directive before the proxy_pass directive. You would need to move that toward the bottom of the file after the:

  location / {
proxy_pass http://127.0.0.1:2088;
...
}
} # <- here

Tony

unread,
Apr 17, 2012, 6:07:16 PM4/17/12
to Free...@googlegroups.com
Thanks for your reply.
 
You are correct, there are issues with postgres lib and FS. The thing is that if you do not have some programming skills it is a challege trying to complete the install.
Can I guide for mysql be created? or can you come up with an installation script that would kind of automate the install of FS and FreePyBX? or even better... can we can up with an ISO?
 
Thanks
Tony

OlliT

unread,
Apr 18, 2012, 6:27:27 AM4/18/12
to Free...@googlegroups.com
Hello,
 
yes an iso was fine or a vhd for xen, hyper-v oder vm-ware?
 
Kind Regards

freepybx

unread,
Apr 18, 2012, 11:02:08 AM4/18/12
to Free...@googlegroups.com
Good idea. I will work on an iso and post it ASAP. I will see if github can also host the rpms.

Tony

unread,
Apr 18, 2012, 3:12:42 PM4/18/12
to Free...@googlegroups.com
That sounds great!
How long do you think it will take you to have this ready?

Tony

unread,
Apr 19, 2012, 1:03:16 PM4/19/12
to Free...@googlegroups.com
I was able to complete the installation on two machines but on both I get the same error.
 
I al able to get to the admin login screen but when I enter the default user and password (I had not changed it) I get error: You are not even logged in!
This is the same error we get in freepybx.ort demo page.
 
I connected to the dabase and run queries on the pbx database and cound not find any users at all.
I entered one manually and when trying to login with that user I get the same error so I am not sure what's going on.
 
Any help will be appreciated.

Thanks
Tony
 
 
 

On Friday, March 9, 2012 12:11:57 PM UTC-5, freepybx wrote:
Please only post questions regarding the installation of FreePyBX in this topic. If you do not see a topic that fits your question, please feel free to contact the administrators.

On Friday, March 9, 2012 12:11:57 PM UTC-5, freepybx wrote:
Please only post questions regarding the installation of FreePyBX in this topic. If you do not see a topic that fits your question, please feel free to contact the administrators.

On Friday, March 9, 2012 12:11:57 PM UTC-5, freepybx wrote:
Please only post questions regarding the installation of FreePyBX in this topic. If you do not see a topic that fits your question, please feel free to contact the administrators.

On Friday, March 9, 2012 12:11:57 PM UTC-5, freepybx wrote:
Please only post questions regarding the installation of FreePyBX in this topic. If you do not see a topic that fits your question, please feel free to contact the administrators.

On Friday, March 9, 2012 12:11:57 PM UTC-5, freepybx wrote:

Joe

unread,
Apr 19, 2012, 4:28:17 PM4/19/12
to Free...@googlegroups.com
Just asked this question.  This is what you needed to do.  I had the same problem.  

Uncomment the insert_data line in websetup.py, then run: paster setup-app development.ini Then login @ http://.../admin/login

Tony

unread,
Apr 19, 2012, 5:10:32 PM4/19/12
to Free...@googlegroups.com
Thanks Joe, that worked really good! Thanks!

freepybx

unread,
Apr 21, 2012, 2:46:25 PM4/21/12
to Free...@googlegroups.com
Guys make sure you comment that back out before running setup again. Everytime you change or add a model just create a new method like: insert_my_data() and follow my example etc.

Mehul Bhatt

unread,
Jul 25, 2012, 11:15:30 PM7/25/12
to Free...@googlegroups.com, san...@gmail.com
Hi

I can provide bash script to install Freeswitch & FreePyBx 

let me know 

gshergill

unread,
Nov 5, 2012, 8:06:25 AM11/5/12
to Free...@googlegroups.com
Hi FreePyBX Community,

I've recently followed the install guide;


I am using CentOS.

I've literally followed word for word. The edits were, I believe;

Step 8: Used my IP address. Used server name as <centos hostname>.<domain>

Step 9: Changed mysite.com to <centos hostname>.<domain>. Changed password.

Step 10: 
"paster serve --reload development.ini " - this command failed

Error:

(www)bash-4.1$ paster serve --reload development.ini 
Starting subprocess with file monitor
Starting server in PID 30389.

----

"curl -k https://freepybx:password@<centos hostname>.<domain>/dialplan?variable_sofia_profile_name=vwci" - this command didn't work. 

Error:

curl: (7) couldn't connect to host

In addition, navigating to:

http://<centos hostname>.<domain>/admin/login

Leads to a 502 Bad Gateway.

Thank you for any support.

Kind Regards,

Gary Shergill

gshergill

unread,
Nov 5, 2012, 8:24:56 AM11/5/12
to Free...@googlegroups.com
Hi, 

Sorry, that should be;

In addition, navigating to:

http://<centos hostname>.<domain>/admin/login

Fails.

Whilst navigating to:

http://<centos ip address/admin/login

Leads to a 502 Bad Gateway.

Also:

(www)bash-4.1$ curl -k https://freepybx:password@<centos ip address>/dialplan?variable_sofia_profile_name=vwci
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.2.4</center>
</body>
</html>

Branden Strickland

unread,
Jan 25, 2013, 10:55:51 AM1/25/13
to Free...@googlegroups.com
Hey - Great product - I didn't think the setup was all that from my perspective - however - I do have a bit of an issue when I try to authenticate.  I made sure to uncomment (temporarily) the insert piece for adding the admin and pass etc.

My webservice comes up fine on 2088 but then when I try to log in I get the following:
/usr/local/www/lib/python2.6/site-packages/WebOb-1.2.3-py2.6.egg/webob/request.py:122: DeprecationWarning: You unicode_errors='replace' to the Request constructor.  Passing a ``unicode_errors`` value to the Request is no longer supported in WebOb 1.2+.  This value has been ignored
/usr/local/www/lib/python2.6/site-packages/WebOb-1.2.3-py2.6.egg/webob/request.py:130: DeprecationWarning: You passed decode_param_names=False to the Request constructor. Passing a ``decode_param_names`` value to the Request is no longer supported in WebOb 1.2+.  This value has been ignored
Error - <type 'exceptions.KeyError'>: 'HTTP_REMOTE_EU'
Error - <type 'exceptions.KeyError'>: 'HTTP_REMOTE_EU'


Any Ideas what might be causing this?  I did have to adjust a few of the yum installs - as they either changed the names or something was weird, but I'm fairly certain I have all equivalents.

I'm python 2.6 (as you can see)
CentOS 6.3
postgres (PostgreSQL) 8.4.13

If you need any other info let me know.  Thanks!








On Friday, March 9, 2012 12:11:57 PM UTC-5, freepybx wrote:

Branden Strickland

unread,
Jan 25, 2013, 10:56:30 AM1/25/13
to Free...@googlegroups.com
All that *difficult* That should read!

Graham Nelson-Zutter

unread,
Apr 19, 2013, 4:52:08 PM4/19/13
to Free...@googlegroups.com
Hi Branden,

We got stuck at the same error: 'HTTP_REMOTE_EU'.

Did you find a way around this?

cheers,
Graham


On Friday, January 25, 2013 10:55:51 AM UTC-5, Branden Strickland wrote:

Casey Havenor

unread,
Aug 23, 2013, 12:19:51 AM8/23/13
to Free...@googlegroups.com, san...@gmail.com
Mehul Bhatt -- Do you really have a bash script that can seamlessly install FreePyBX?   -- I'd like to use it.  Having some struggles over here.

shadowy m

unread,
Dec 23, 2013, 8:45:57 PM12/23/13
to Free...@googlegroups.com
I figured out a way around this to where I actually (gasp!) get the admin menu.  In the traceback debugger if you do "print request.environ" you will see there is no HTTP_REMOTE_EU variable.  The code doesn't like that so I just commented out that line and replaced it with
user.remote_addr = '127.0.0.1'

This is at line 81 in /usr/local/FreePyBX/freepybx/model/core.py

I am connecting via localhost using
paster serve --reload development.ini

so not trying to run wsgi or nginx yet. Ymmv.
Reply all
Reply to author
Forward
0 new messages