BUG Install Avantfax on PIAF Green (no IncrediblePBX)

simplydrew

Member
Joined
Feb 19, 2012
Messages
92
Reaction score
4
I have a PIAF Green instance that I wanted to install faxing ability on (Hylafax + Avantfax) which I've successfully done on PIAF Green before, but it appears that "install-incredfax2" no longer works. I get the following error:

install-incredfax2 - 2.2.2 released on 012614
CentOS release 6.7 (Final) - 64 Bit
**********************************************************************
* I am sorry. Your system does not meet the requirements *
**********************************************************************
* REQUIRED DETECTED
*----------------------------- ------------------------
* Asterisk Version 1.8/10 | 11
* Freepbx Version 2.8/2.9/2.10 | 2.11.0.43
2.11
* PIAF Family Version 206X | 3651
* CentOS Version 6.2 or higher | 6.7
* CentOS Type 32 or 64 bit | 64 Bit
**********************************************************************
* Now exiting *
**********************************************************************

I found the following in another thread, but wasn't sure if having IncrediblePBX was a pre-req for this to work, so haven't tried it yet:

Code:
http://incrediblepbx.com/incrediblefax11.sh
chmod +x incrediblefax11.sh
./incrediblefax11.sh

How can I proceed? Seems like this process changes every once in a while.
 

simplydrew

Member
Joined
Feb 19, 2012
Messages
92
Reaction score
4
Update: Evidently the incrediblefax11.sh script is a no go. It installs to completion, sets up the IAX modems (verified in iax2 show peers from the CLI), but Avantfax doesn't load in a browser.

Someone has to have this working at this point. 52 views and no response?
 

simplydrew

Member
Joined
Feb 19, 2012
Messages
92
Reaction score
4
Since I'm just talking to myself here...

It appears that the "incrediblefax11.sh" script is broken. Avantfax released a new version in September (3.3.4), and the script appears to be setup to pull from the Sourceforge link for the project, grabbing an incorrect copy (or something nothing at all). I had to modify the wget entry to reflect a direct link to 3.3.3, and then everything fired off without a hitch.

There's something else that's broken here around .htaccess, for whatever reason. "maint" appears to still be the default login and drops you into the "AvantFax Admin" account, but upon clicking logout at the top in an attempt to login another user, it just results in nothing happening. Removing htaccess from this directory appears to fix it on my test system.

@wardmundy - tagging you to see if you guys want to fix the script, or if you're driving people to install IncrediblePBX + IncrediblePBX for this functionality. Some of my use cases don't need IncrediblePBX.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
@simplydrew: That script wasn't written for PIAF builds. I've attached the latest Incredible Fax 11 installer from the Incredible PBX builds for CentOS/SL. See if it works with your setup and let me know. I'll also let @darmock know that the included install-incredfax2 script is broken. I assume you tried that first.
 

Attachments

  • incrediblefax11.tar.gz
    4.8 KB · Views: 8

simplydrew

Member
Joined
Feb 19, 2012
Messages
92
Reaction score
4
@simplydrew: That script wasn't written for PIAF builds. I've attached the latest Incredible Fax 11 installer from the Incredible PBX builds for CentOS/SL. See if it works with your setup and let me know. I'll also let @darmock know that the included install-incredfax2 script is broken. I assume you tried that first.
Thanks, @wardmundy. Yes - I did try install-incredfax2 which produced the output in the first post, unfortunately.
 

simplydrew

Member
Joined
Feb 19, 2012
Messages
92
Reaction score
4
@wardmundy - Unfortunately, just confirmed that this version is a little "off" as well. The install does pull the correct version of Avantfax. Navigating to the avantfax directory in a browser immediately gives a "Login failed for maint. Ask your admin to verify the account exists in AvantFAX".

Tried to run the /root/avantfax-pw-change script, but get a "command not found" error.
 

simplydrew

Member
Joined
Feb 19, 2012
Messages
92
Reaction score
4
No worries, @wardmundy. At least it's confirmed an issue now to be addressed. The version of the script I modified seems to work fine, with the exception of the fact that when I click "logout" in Avantfax, it won't actually logout, which is a pain point. Trying to enable a small business to use this and have a few users configured, but if they can't get back to the login screen to log another person in, I'm in trouble! :eek:

Tried modifying /etc/pbx/httpdconf/avantfax.conf (which I did on another install about a year ago to alleviate similar issues) to comment out everything within:

Code:
#Password protect /var/www/html/avantfax
#<Directory /var/www/html/avantfax>
#AuthType Basic
#AuthName "Restricted Area"
#AuthUserFile /usr/local/apache/passwd/wwwpasswd
#Require user wwwadmin maint
#</Directory>

...which unfortunately didn't result in the desired behavior either.
 

bullet2392

New Member
Joined
Dec 3, 2013
Messages
6
Reaction score
2
hi simplydrew, try this
Code:
nano /etc/pbx/httpdconf/avantfax.conf

<Directory /var/www/html/avantfax>
   AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

service httpd restart

How u managed the avantfax 3.3.4 installer problem? For now I addressed it with this command before launching the fax setup
Code:
sed -i 's|http://sourceforge.net/projects/avantfax/files/latest/download?source=typ_redirect#|http://sourceforge.net/projects/avantfax/files/avantfax-3.3.3.tgz/download|' incrediblefax11.sh
 

simplydrew

Member
Joined
Feb 19, 2012
Messages
92
Reaction score
4
hi simplydrew, try this
Code:
nano /etc/pbx/httpdconf/avantfax.conf

<Directory /var/www/html/avantfax>
   AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

service httpd restart

How u managed the avantfax 3.3.4 installer problem? For now I addressed it with this command before launching the fax setup
Code:
sed -i 's|http://sourceforge.net/projects/avantfax/files/latest/download?source=typ_redirect#|http://sourceforge.net/projects/avantfax/files/avantfax-3.3.3.tgz/download|' incrediblefax11.sh
@bullet2392 - Thanks for the avantfax.conf change - that did help and prevented some of the oddities from reproducing themselves. I understand why the devs have htaccess put in, but in some environments undoing some of this becomes a pain. Glad that ended up working.

I ended up resolving the 3.3.4 problem with opening the script and finding the "Install Avantfax" section, removed the link that goes to the mirrors to download the ~/latest link, and substituted in a direct link to 3.3.3 from Sourceforge.
 

himala76

Member
Joined
Sep 7, 2008
Messages
70
Reaction score
2
@wardmundy - Unfortunately, just confirmed that this version is a little "off" as well. The install does pull the correct version of Avantfax. Navigating to the avantfax directory in a browser immediately gives a "Login failed for maint. Ask your admin to verify the account exists in AvantFAX".

Tried to run the /root/avantfax-pw-change script, but get a "command not found" error.
Hello simplydrew

how did you reset the password for the avantfax. i have the same issue. . got install but cant log in
 

tbrummell

Guru
Joined
Jan 8, 2011
Messages
1,275
Reaction score
339
To complete the install, perform the following from the Linux CLI while logged in as root:

  • Change your root password if it’s insecure: passwd
  • Set your Incredible GUI admin password: /root/admin-pw-change
  • Set your web apps admin password: htpasswd /etc/pbx/wwwpasswd admin
  • Set your correct time zone: /root/timezone-setup
  • Add WhiteList entries to firewall if needed: /root/add-ip or /root/add-fqdn
  • Store PortKnocker credentials in a safe place: cat /root/knock.FAQ
  • *** THE REMAINING FEATURES ARE OPTIONAL ADDITIONS ***
  • Login to your NeoRouter VPN server: /root/nrclientcmd
  • To enable free faxing: /root/incrediblefax11.sh
  • Set admin password for AvantFax: /root/avantfax-pw-change
  • To enable PPTP VPN: /root/pptp-install
  • To enable Google Voice OAUTH authentication: http://nerd.bz/1JaO4ij (1b.)
  • To install FCC RoboCall BlackList: http://nerdvittles.com/?p=15412
 

himala76

Member
Joined
Sep 7, 2008
Messages
70
Reaction score
2
To complete the install, perform the following from the Linux CLI while logged in as root:

  • Change your root password if it’s insecure: passwd
  • Set your Incredible GUI admin password: /root/admin-pw-change
  • Set your web apps admin password: htpasswd /etc/pbx/wwwpasswd admin
  • Set your correct time zone: /root/timezone-setup
  • Add WhiteList entries to firewall if needed: /root/add-ip or /root/add-fqdn
  • Store PortKnocker credentials in a safe place: cat /root/knock.FAQ
  • *** THE REMAINING FEATURES ARE OPTIONAL ADDITIONS ***
  • Login to your NeoRouter VPN server: /root/nrclientcmd
  • To enable free faxing: /root/incrediblefax11.sh
  • Set admin password for AvantFax: /root/avantfax-pw-change
  • To enable PPTP VPN: /root/pptp-install
  • To enable Google Voice OAUTH authentication: http://nerd.bz/1JaO4ij (1b.)
  • To install FCC RoboCall BlackList: http://nerdvittles.com/?p=15412

tbrummell thanks for the reply
after i ran the root/avantfax-pw-change
i get no such file or directory

Code:
root@ippbx:~ $ /root/avantfax-pw-change
-bash: /root/avantfax-pw-change: No such file or directory
 

himala76

Member
Joined
Sep 7, 2008
Messages
70
Reaction score
2
anybody know how to rest the password on avantfax ?
avantfax-pw-change not working ..
 

rjaiswal

Active Member
Joined
May 24, 2013
Messages
438
Reaction score
58
Code:
#!/bin/bash
clear
echo "This script changes your AvantFAX admin password"
echo " "

echo -n "Enter new admin password (MAKE IT SECURE!!): "
read adminpw
echo " "
echo "admin password will be changed to: $adminpw"
read -p "Press ENTER key to continue or Ctrl-C to abort..."

mysql -u root -ppassw0rd -e "update avantfax.UserAccount set password = '`echo -n "$adminpw" | md5sum | awk '{ print $1 }'`' where username = 'admin' limit 1;"
mysql -u root -ppassw0rd -e "insert into avantfax.UserPasswords set uid = 1, pwdhash = '`echo -n "$adminpw" | md5sum | awk '{ print $1 }'`';"
echo " "
echo "Done. Use browser to access AvantFAX via link in FreePBX at http://`ifconfig | awk -F "[: ]+" '/inet addr:/ { if ($4 != "127.0.0.1") print $4 }'`"
echo " "

Found this on the interwebs... I make no guarantees that it'll work...

I seem to remember using webmin at one point to change the password by editing the mysql database...
 

himala76

Member
Joined
Sep 7, 2008
Messages
70
Reaction score
2
Code:
#!/bin/bash
clear
echo "This script changes your AvantFAX admin password"
echo " "

echo -n "Enter new admin password (MAKE IT SECURE!!): "
read adminpw
echo " "
echo "admin password will be changed to: $adminpw"
read -p "Press ENTER key to continue or Ctrl-C to abort..."

mysql -u root -ppassw0rd -e "update avantfax.UserAccount set password = '`echo -n "$adminpw" | md5sum | awk '{ print $1 }'`' where username = 'admin' limit 1;"
mysql -u root -ppassw0rd -e "insert into avantfax.UserPasswords set uid = 1, pwdhash = '`echo -n "$adminpw" | md5sum | awk '{ print $1 }'`';"
echo " "
echo "Done. Use browser to access AvantFAX via link in FreePBX at http://`ifconfig | awk -F "[: ]+" '/inet addr:/ { if ($4 != "127.0.0.1") print $4 }'`"
echo " "

Found this on the interwebs... I make no guarantees that it'll work...

I seem to remember using webmin at one point to change the password by editing the mysql database...

hi rjaiswal thanks for reply . this script didnt fix the issue.

with using email i can get the new password but cant log in...

looks like im the only one with this issue. fist time i had this issue was on 4/2015 still no solution.

i actuality move my pbx to raspberry and using fax with out issue but like to move back to PIAF .
 

rjaiswal

Active Member
Joined
May 24, 2013
Messages
438
Reaction score
58
Try logging into Freepbx first... I have one install, where I need to log into freepbx first, then go back to main kennesoft menu, and log into avantfax. I don't know why I need to do that, and it's only for this one install...
 

Joe Lones

Member
Joined
Feb 10, 2016
Messages
50
Reaction score
4
I'm just wondering what the state of the incrediblefax install script is for SL? I take it it's still a no go? I tried one (forget where now ...) and I was not able to see an AvantFax icon and had mysql user errors when attempting to script the change admin script. The one from @wardmundy does not work, correct?
 
Last edited:

AndyInNYC

Active Member
Joined
May 23, 2013
Messages
772
Reaction score
124
I'm also having troubles with Avantfax (Database down error) on a new install on RentPBX. I'd love to get it fixed and put to bed also.

Andrew
 

Members online

No members online now.

Forum statistics

Threads
25,779
Messages
167,505
Members
19,199
Latest member
leocipriano
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top