Fresh install getting hung

I’m following the steps layed out at http://www.voipsupport.it/pmwiki/pmwiki.php?n=Freepbx.HowtoCentos7. I’m actually installing on Oracle Linux Server release 6.7, but I’ve followed the tutorial before to install on another machine configured exactly like this one. (Exactly. Ha!).

I get to step 8 under FreePBX, “./install_amp”, where I get lots of output and this:

Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Using username: root
Using password: ********
Checking user…OK
Checking if Asterisk is running…running with PID: 1384…OK
Checking for /etc/amportal.conf…OK
Reading /etc/amportal.conf…parsed amp_conf variables from /etc/amportal.conf:
amp_conf [AMPDBHOST] => [localhost]
amp_conf [AMPDBENGINE] => [mysql]
amp_conf [AMPENGINE] => [asterisk]
amp_conf [AMPMGRUSER] => [admin]
amp_conf [AMPMGRPASS] => []
amp_conf [AMPBIN] => [/var/lib/asterisk/bin]
amp_conf [AMPSBIN] => [/usr/local/sbin]
amp_conf [AMPWEBROOT] => [/var/www/html]
amp_conf [AMPCGIBIN] => [/var/www/cgi-bin ]
amp_conf [FOPWEBROOT] => [/var/www/html/panel]
amp_conf [FOPPASSWORD] => [passw0rd]
amp_conf [AUTHTYPE] => [database]
amp_conf [AMPEXTENSIONS] => [extensions]
amp_conf [AMPDBUSER] => [root]
amp_conf [AMPDBPASS] => []
amp_conf [AMPWEBADDRESS] => []
amp_conf [AMPDBNAME] => [asterisk]
amp_conf [ASTETCDIR] => [/etc/asterisk]
amp_conf [ASTMODDIR] => [/usr/lib64/asterisk/modules]
amp_conf [ASTVARLIBDIR] => [/var/lib/asterisk]
amp_conf [ASTAGIDIR] => [/var/lib/asterisk/agi-bin]
amp_conf [ASTSPOOLDIR] => [/var/spool/asterisk]
amp_conf [ASTRUNDIR] => [/var/run/asterisk]
amp_conf [ASTLOGDIR] => [/var/log/asterisk]
OK
Checking for /etc/asterisk/asterisk.conf…OK
Reading /etc/asterisk/asterisk.conf…OK
Using asterisk as PBX Engine
Checking for Asterisk version…12.8.2
Checking for selinux…OK
Connecting to database…OK
Checking current version of FreePBX…PHP Fatal error: Call to undefined function install_getversion() in /usr/local/src/freepbx/install_amp on line 1428

Can anyone get me past this?

In continuing to get to the root of this problem, I viewed the source of the “install_amp” file.
Line 13 is require_once (“libfreepbx.install.php”);

When I view the source for libfreepbx.install.php I see:
102//get the version number
103 function install_getversion() {
104 global $db;
105 $sql = “SELECT value FROM admin WHERE variable = ‘version’”;
106 $results = $db->getAll($sql);
107 if(DB::IsError($results)) {
108 return false;
109 }
110 return $results[0][0];
111 }

Has anybody seen this before?

Please don’t follow random instructions you find on the net. We have getting started guides for all major distros.

Here’s what you should be using for Oracle 6 (which is more like RHEL 7, IIRC)

http://wiki.freepbx.org/display/FOP/Installing+FreePBX+13+on+CentOS+7

Oracle Linux doesn’t have any MariaDB in their repository, and adding CentOS’s repository for that particular package doesn’t yield a working box. I’ve followed the directions I linked earlier to install a working FreePBX box, but I’ve run into issues on the last 2 boxes I’ve tried to install it on. I get the error I posted above. Any ideas what I’m running into?

That said, I’ll parse the link you’ve given and see what I can take from it.

An older one is here:

http://wiki.freepbx.org/display/FOP/Installing+FreePBX+12+on+CentOS+6.5

If Oracle is more V6 than V7, you’ll probably want that. But of course Oracle isn’t going to add Maria, Oracle owns MySQL. So they’re doing their best to block people from using Maria.

I’m not a big fan of Oracle, BTW. I can’t even download the ISO (really. They want me to register, which I did years ago, and they’d then verify that I can download the ISO, which they never did. Even though I asked them repeatedly).

I’d recommend NOT using Oracle, and use CentOS 6 or 7, because it’s a lot less likely to go crazy.

If I were choosing, I’d use CentOS for all the reasons you’ve cited and more, but I don’t get to choose. Hence, Oracle Linux.

Well, your other option is to use FreePBX Distro, which is the recommended way to install FreePBX, as it’s 100% supported, and supportable.

If there’s a business case going ‘We need Oracle because BUSINESS REASONS’, then you should be saying ‘Actually, no, if you want support, then you need to use FreePBX Distro, not Oracle’

It’s RHEL Based, too, so there’s no learning curve for admins.

Edit: Not saying we won’t TRY to help if you have problems with Oracle, but, everyone who does commercial FreePBX support will be able to fix your problem if you’re on Distro. No promises if you’re not.

I’m working within the constraints as is. Have any ideas about the problem I described above?

Ok, I followed the instructions at the link provided to me in this thread and I now get:
[root@ivr01 freepbx]# ./install -n
Assuming you are Database Root
Checking if SELinux is enabled…Its not (good)!
Reading /etc/asterisk/asterisk.conf…Done
Checking if Asterisk is running and we can talk to it as the ‘asterisk’ user…Done!
Preliminary checks done. Starting FreePBX Installation
Checking if this is a new install…Yes (No /etc/amportal.conf file detected)
Database Root installation checking credentials and permissions…Error!
Invalid Database Permissions. The error was: SQLSTATE[28000] [1045] Access denied for user ‘root’@‘localhost’ (using password: NO)

I’m going to try to find where the database is set up and w/ what credentials.

I found this thread: Freepbx install error

Let me digest it and see how useful it is for me.

so, “./install” w/ manual input of filenames, users, and passwords yields:

“You have successfully installed FreePBX”

Thanks for the link. I’m not sure what I was doing differently following what I was using (previous versions of asterisk & freepbx for one), but I’m thankful I’ve finally got it installed.