TUTORIAL AvantFAX Install Fix

DoctorJ

Member
Joined
Jul 14, 2015
Messages
41
Reaction score
13
Well, I am posting this as much for me in the future as to possibly help someone on the forum. I have had a persistent problem with the 13.2 ISO / cloud install and IncredibleFax. I have various posts in the forums regarding my difficulties.

With the help of others, I have a working fresh install of IncredibleFax. It has a few minor glitches, but these are tolerable, and may be related to 3rd party apps as much as IncredibleFax. From the web GUI, everything seems to be working.

Below are my steps to get IncredibleFax working. This solves the login / logout / multiple user issue, the absent cover page issue, and the incorrect archive year issue.

I don't take credit for the solutions, but I thought that assembling them in one place may be useful. Note that this applies only to the CentOS platform. I have not had the same problems with my Raspberry Pi install - it always worked from the get-go.

1) Fresh install of IncrediblePBX 13.2 on CentOS 6.7 platform
2) Followed Ward's initial steps from the Digital Ocean tutorial (http://nerdvittles.com/?p=17205)
Make your root password very secure: passwd
Create admin password for GUI access:/root/admin-pw-change
Create admin password for web apps: htpasswd /etc/pbx/wwwpasswd admin
Set your correct time zone:/root/timezone-setup
Make a copy of your Knock codes: cat /root/knock.FAQ
Review current info about your server: status OR pbxstatus (depends on release)​
3) Install IncredibleFAX
cd /root
./incrediblefax11.sh​
4) At this point, I rebooted the server. After reboot, I did not change the avantfax admin password. I did not login to the Incredible PBX web GUI. I did not login to the Avantfax web GUI. I do not know if these steps help, but I am trying to be thorough.
5) Immediately after reboot, I SSH'd back into the system. I then did the following steps:

TO FIX THE LOGIN / LOGOUT / MULTIPLE USER ISSUE
http://pbxinaflash.com/community/threads/incrediblepbx-13-iso-problems-with-avantfax-rss-feed.18821/#post-120632 (thanks krzykat)

remove /etc/pbx/httpdconf/avantfax.conf

rm -f /etc/pbx/httpdconf/avantfax.conf

TO FIX THE COVERPAGE NOT GETTING SENT
http://pbxinaflash.com/community/threads/avantfax-not-sending-cover-pages.18985/#post-120017 (thanks krzykat)


modify /etc/php.ini and look for error_log = syslog (IT'S LINE 636 OF THE FILE)
#error_log = syslog
error_log = syslog


nano /etc/php.ini

Find line 636, then uncomment the line (remove the #)
In my case, I removed the semicolon --> ;
Then save file

TO FIX THE ARCHIVE YEAR ONLY GOING UNTIL 2015
http://pbxinaflash.com/community/threads/avantfax-no-2016-year-on-archive.18620/#post-117907 (thanks markrmcs)


nano /var/www/html/avantfax/archive.php
Find the code:

Code:

$year_list["*"] = "";

for ($i = 2004; $i < 2016; $i++) {

$year_list["$i"] = $i;

}

and change 2016 to a more suitable year.
Then save the file.

6) OK, after doing all those steps, I then rebooted the server again. After logging in, I then updated the admin password for avantfax (/root/avantfax-pw-change)
7) I then added my Google Voice trunk using the OAUTH protocol. Restarted asterisk (amportal restart) - not sure if still was necessary.
8) Created my inbound route using my google voice DID to custom destination --> Fax (Hylafax).
9) I finally logged in to avantfax for the first time. Tested faxing inbound and outbound. With and without coverpage. All works from the GUI. Created multiple users. Each can login and logout and receive confirmation emails at their address.
10) I still have a few issues with MacHylafax and with HylaFaxLite on iOS. MacHylafax may just be an issue with my computer, as works fine from my girlfriend's computer. HylafaxLite has only worked with my Raspberry Pi install. These are obviously third party apps, so I don't know where the real issue lies.

I hope that these steps help out a few others with similar problems. Thanks to everyone that helped me!

Joe
 

kdaffef02

Member
Joined
Apr 29, 2011
Messages
107
Reaction score
6
Well, I am posting this as much for me in the future as to possibly help someone on the forum. I have had a persistent problem with the 13.2 ISO / cloud install and IncredibleFax. I have various posts in the forums regarding my difficulties.

With the help of others, I have a working fresh install of IncredibleFax. It has a few minor glitches, but these are tolerable, and may be related to 3rd party apps as much as IncredibleFax. From the web GUI, everything seems to be working.

Below are my steps to get IncredibleFax working. This solves the login / logout / multiple user issue, the absent cover page issue, and the incorrect archive year issue.

I don't take credit for the solutions, but I thought that assembling them in one place may be useful. Note that this applies only to the CentOS platform. I have not had the same problems with my Raspberry Pi install - it always worked from the get-go.

1) Fresh install of IncrediblePBX 13.2 on CentOS 6.7 platform
2) Followed Ward's initial steps from the Digital Ocean tutorial (http://nerdvittles.com/?p=17205)
Make your root password very secure: passwd
Create admin password for GUI access:/root/admin-pw-change
Create admin password for web apps: htpasswd /etc/pbx/wwwpasswd admin
Set your correct time zone:/root/timezone-setup
Make a copy of your Knock codes: cat /root/knock.FAQ
Review current info about your server: status OR pbxstatus (depends on release)​
3) Install IncredibleFAX
cd /root
./incrediblefax11.sh​
4) At this point, I rebooted the server. After reboot, I did not change the avantfax admin password. I did not login to the Incredible PBX web GUI. I did not login to the Avantfax web GUI. I do not know if these steps help, but I am trying to be thorough.
5) Immediately after reboot, I SSH'd back into the system. I then did the following steps:

TO FIX THE LOGIN / LOGOUT / MULTIPLE USER ISSUE
http://pbxinaflash.com/community/threads/incrediblepbx-13-iso-problems-with-avantfax-rss-feed.18821/#post-120632 (thanks krzykat)

remove /etc/pbx/httpdconf/avantfax.conf

rm -f /etc/pbx/httpdconf/avantfax.conf

TO FIX THE COVERPAGE NOT GETTING SENT
http://pbxinaflash.com/community/threads/avantfax-not-sending-cover-pages.18985/#post-120017 (thanks krzykat)


modify /etc/php.ini and look for error_log = syslog (IT'S LINE 636 OF THE FILE)
#error_log = syslog
error_log = syslog


nano /etc/php.ini

Find line 636, then uncomment the line (remove the #)
In my case, I removed the semicolon --> ;
Then save file

TO FIX THE ARCHIVE YEAR ONLY GOING UNTIL 2015
http://pbxinaflash.com/community/threads/avantfax-no-2016-year-on-archive.18620/#post-117907 (thanks markrmcs)


nano /var/www/html/avantfax/archive.php
Find the code:

Code:

$year_list["*"] = "";

for ($i = 2004; $i < 2016; $i++) {

$year_list["$i"] = $i;

}

and change 2016 to a more suitable year.
Then save the file.

6) OK, after doing all those steps, I then rebooted the server again. After logging in, I then updated the admin password for avantfax (/root/avantfax-pw-change)
7) I then added my Google Voice trunk using the OAUTH protocol. Restarted asterisk (amportal restart) - not sure if still was necessary.
8) Created my inbound route using my google voice DID to custom destination --> Fax (Hylafax).
9) I finally logged in to avantfax for the first time. Tested faxing inbound and outbound. With and without coverpage. All works from the GUI. Created multiple users. Each can login and logout and receive confirmation emails at their address.
10) I still have a few issues with MacHylafax and with HylaFaxLite on iOS. MacHylafax may just be an issue with my computer, as works fine from my girlfriend's computer. HylafaxLite has only worked with my Raspberry Pi install. These are obviously third party apps, so I don't know where the real issue lies.

I hope that these steps help out a few others with similar problems. Thanks to everyone that helped me!

Joe

1000 Thanks, this has really helped me !!
 
  • Like
Reactions: wardmundy

Members online

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,461
Messages
138,092
Members
14,621
Latest member
Mac-Gayver