Setting up FreePBX under Ubuntu Edgy

Hi All,

Trying to configure freepbx under ubuntu edgy - currently the machine in use has a working apache webserver which is serving a frontend to another application I use (I am loathed to change the usernames that the httpd needs to use - is there any work arounds for this?)

Also, when trying to install freepbx - I am hitting an error during the install-amp process ;

/etc/amportal.conf writtenAssuming new install, --install-moh added to command line
OK
Reading /etc/amportal.conf…OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk 1.2…OK
Checking for selinux…OK
Connecting to database…FAILED
FATAL mysql PHP libraries not installed
[email protected]:/usr/src/freepbx-2.2$

I have been using the guide at ; http://aussievoip.com/wiki/freePBX-Ubuntu to get this far.

Any ideas/hints , a better way todo this?

Cheers

After a bit of hacking, its on the machine and running - trunks configured can receive calls etc.

However

1/ Online Module Administration fails with ;

Warning: file_get_contents(http://mirror.freepbx.org/version-2.2.0rc1.html) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/admin/page.modules.php on line 113

2/ Flash module fails to load with ;

Error loading configuration file variables.txt?aldope=58238

Using freepbx 2.2.0rc1 and Asterisk 1.2.12.1

Further update, I had to reconfigure mysql to fix the above problems ;

However now I get the following when the script tries to configure the system ;
/etc/amportal.conf writtenAssuming new install, --install-moh added to command line
OK
Reading /etc/amportal.conf…OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk 1.2…OK
Checking for selinux…OK
Connecting to database…OK
Checking current version of AMP…2.2.0rc1
Installing new AMP files…OK
Configuring install for your environment…[: 11: ==: unexpected operator
/usr/src/freepbx-2.2/apply_conf.sh: 28: source: not found
sed: can’t read /cdr_mysql.conf: No such file or directory
sed: can’t read /cdr_mysql.conf: No such file or directory
sed: can’t read /cdr_mysql.conf: No such file or directory
sed: can’t read /manager.conf: No such file or directory
sed: can’t read /manager.conf: No such file or directory
chmod: cannot access /var/lib/asterisk/agi-bin/*': No such file or directory OK Setting permissions on files..chmod: cannot access/var/lib/asterisk/agi-bin/*’: No such file or directory
OK
Checking for upgrades…0 found
Generating AMP configs…
Generating Configurations.conf…
Generating AMP configs…OK
Restarting Flash Operator Panel…OK
Please update your modules and reload Asterisk by visiting http://192.168.1.100/admin


  • Note: It’s possible that if you click the red ‘Update Now’ bar BEFORE *
  • updating your modules, your machine will start dropping calls. Ensure *
  • that all modules are up to date BEFORE YOU CLICK THE RED BAR. As long *
  • as this is observed, your machine will be fully functional whilst the *
  • upgrade is in progress. *