Enabling Commercial Module Support on fresh install

Good afternoon. We’re exploring some Google Cloud options for our PBX, which sadly doesn’t offer installation from ISO. So, I’m following the step-by-step for CentOS7 (fantastically written, btw), and came across a snag.


This article walks through how to install the Zend Guard loader (among other things), but at the third step, it fails. I’ve even broken up the command into individual components and it’s the initial component that fails to install:

The failure shows:

yum -y install php-5.3-zend-guard-loader sysadmin fail2ban incron Image
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
One of the configured repositories failed (Unknown),
and yum doesn’t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work “fix” this…

Cannot find a valid baseurl for repo: schmooze-commercial/7/x86_64

Does anyone have any thoughts as to why this might be failing, and what can be done to correct?

Commercial modules are only officially supported on the FreePBX Distro. Any FreePBX system with FreePBX 2.10 or greater, CentOS/RH/SL/EL 6.x and php 5.3

Ah, ok. So I should spin up a build with CentOS 6.7 (DOH!!!) :slightly_smiling:


If only it were that easy. CentOS6 step-by-step, at the “install FPBX” step (commands below) failed:
cd /usr/src
wget http://mirror.freepbx.org/modules/packages/freepbx/freepbx-13.0-latest.tgz
tar xfz freepbx-13.0-latest.tgz
rm -f freepbx-13.0-latest.tgz
cd freepbx
./start_asterisk start
./install -n
[[email protected] freepbx]# ./install -n
PHP Fatal error: Call to undefined function FreePBX\Install\posix_getpwuid() in /usr/src/freepbx/installlib/instal
lcommand.class.php on line 169

Ran through it step-by-step twice to be sure.

yum install php-posix

Interestingly, the below step in the instructions was the culprit. I ended up having to pull out each item individually and do a “yum install xxxxxx” for each item. There were several items that didn’t say “already installed”, but instead downloaded.

yum install gcc gcc-c++ lynx bison mysql-devel mysql-server php php-mysql php-pear php-mbstring \
tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver sox newt-devel \
libxml2-devel libtiff-devel audiofile-devel gtk2-devel subversion kernel-devel git subversion kernel-devel \
php-process crontabs cronie cronie-anacron wget vim php-xml uuid-devel libtool sqlite-devel unixODBC mysql-connector-odbc