Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

S

spirejoey

@spirejoey
Unfollow Follow
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Upgraded to FreePBX 15 all user, phone books and configuration is gone
    S spirejoey
    Support

    I forgot to add that you should also run mysql_secure_installation (don't set root password). Otherwise the logic in config.php will get a connection for the blank user, but wont have any access to dbs.


  • Upgraded to FreePBX 15 all user, phone books and configuration is gone
    S spirejoey
    Support

    Here is a quick hack that seems to fix things:
    In config.php:

       if (is_readable("/etc/freepbx.conf")) {
           $amp_conf = parse_amportal_conf("/etc/freepbx.conf");
           $DBHOST = $amp_conf['AMPDBHOST'];
           $DBNAME = $amp_conf['AMPDBNAME'];
           $DBUSER = $amp_conf['AMPDBUSER'];
           $DBPASS = $amp_conf['AMPDBPASS'];
       } else if (is_readable("/etc/freepbx/freepbx.conf")) {
    

    and:

           if (preg_match("/\\\$amp_conf\[\"([^\"]+)\"]\s*=\s*\"?([\w\/\:\.\*\?\%!=\+\#@&\\$-]*)\"?\s*([;].*)?/",$line,$matches)) {
               $conf[ $matches[1] ] = trim($matches[2]);
           } else if (preg_match("/^\s*([\w]+)\s*=\s*\"?([\w\/\:\.\*\?\%!=\+\#@&\\$-]*)\"?\s*([;].*)?/",$line,$matches)) {
               $conf[ $matches[1] ] = trim($matches[2]);
           }
    

  • Upgraded to FreePBX 15 all user, phone books and configuration is gone
    S spirejoey
    Support

    It looks like the DB data is no longer in amportal.conf. Some of the config scripts for fop2 seem to know how to look in /etc/freepbx.conf but the config.php file doesn't have logic to do that. I'll take a stab at that and try to submit a quick snippet here.

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups