Hi all,
Wow, for over a year I have been using WikiPBX and I must say I am impressed!
I have a functional installation on FreeBSD using a virtual server I purchased at Link2VoIP.com. It has been running the 0.5 version (r199) for a while and works great. However I want to migrate to the 0.8 trunk.
I installed mod_wsgi from source because the mod_wsgi that was in FreeBSD Ports was 2.6 (quite old). No problems there.
I have a postgres DB, called wikipbx, and I have created a new DB called wikipbx0.8 which I will use for this new version. I have exported my configuration to XML. The source for 0.8 has been downloaded into /usr/src/wikipbx0.8. I have been following along the guide on the Wiki and modifying the instructions slightly so they work on FreeBSD.
My Apache has the module loaded for WSGI and my vhost entry is as follows (The paths are correct and everything is actually located where I have defined it below):
WSGIPythonPath /usr/src/wikipbx0.8:/usr/src/wikipbx0.8/wikipbx:/usr/src/django:/usr/src/freeswitch/libs/esl/python
<VirtualHost *:80>
ServerAdmin support@thirtytwenty.com
ServerName MYHOSTNAMEHERE
ErrorLog "/var/log/ipbx-error_log"
CustomLog "/var/log/ipbx-access_log" common
<Directory "/usr/src/wikipbx0.8">
Options Indexes FollowSymLinks
AllowOverride FileInfo
Order allow,deny
Allow from all
</Directory>
# I Read online that this may be required - but I get same behaviour either way if it is commented out
AddType text/html .wsgi
WSGIScriptAlias / /usr/src/wikipbx0.8/wikipbx.wsgi
LogLevel debug
</VirtualHost>
My new DB is blank and the user and permissions are set up. I can log into the DB and use it when testing with no problems.
When I got into /usr/src/wikipbx0.8/wikipbx and I run python manage.py syncdb this is all I see:
root# python manage.py syncdb
Loading 'initial_data' fixtures...
No fixtures found.
root#
The database is still blank, yet there are no errors. Here is a diff of my settings.py against the default settings_template:
root# diff settings_template.py settings.py
26,28c26,28
< DATABASE_NAME = 'wikipbx' # Or path to database file if using sqlite3.
< DATABASE_USER = 'YOUR_DB_USER' # Not used with sqlite3.
< DATABASE_PASSWORD = 'YOUR_DB_PASS' # Not used with sqlite3.
---
> DATABASE_NAME = 'wikipbx0.8' # Or path to database file if using sqlite3.
> DATABASE_USER = 'wikipbx' # Not used with sqlite3.
> DATABASE_PASSWORD = 'thisisnotreallymyrealpassword' # Not used with sqlite3.
124c124
< FREESWITCH_URL_PORT = "http://127.0.0.1"
---
> FREESWITCH_URL_PORT = "http://MYHOSTNAMEHERE"
The settings I have put into settings.py for the DB should be working. They are copied from my old DB except for the database name. I have added the wikipbx user to the allowed users on the new DB.
When I re-load Apache, and access my hostname in the browser, I was initially getting access denied entries in my Apache error log, until I set up a Directory definition for the /usr/src/wikipbx0.8 directory that allowed access. Now, after reloading again, when I hit http://MYHOSTNAMEHERE in my browser, I get a blank page (nothing appears in View Source either). I hit it with Lynx and Lynx says:
root# lynx http://MYHOSTNAMEHERE
Looking up MYHOSTNAMEHERE
Making HTTP connection to MYHOSTNAMEHERE
Sending HTTP request.
HTTP request sent; waiting for response.
Alert!: Unexpected network read error; connection aborted.
Can't Access `http://MYHOSTNAMEHERE/'
Alert!: Unable to access document.
lynx: Can't access startfile
root#
Even with debug logging turned on in Apache, there are no errors appearing in the access or error logs for this attempt.
I am stuck here. Any tips?
Thanks,
Steve





