FYI Avantfax on raspbx

KUMARULLAL

Guru
Joined
Feb 20, 2008
Messages
243
Reaction score
28
Hi All,
I have installed avantfax on raspbx (Raspberry pi)
Please do not attempt to try this on a production raspbx. I claim no responsibility if this breaks your install.
After running the script install-fax, you need to do the following.
Install avantfax.
in the root folder download avantfax

wget http://sourceforge.net/projects/avantfax/files/avantfax-3.3.3.tgz
tar -xvzf avantfax-3.3.3.tgz
cd avantfax-3.3.3
nano debian-prefs.txt

make sure you have these lines in there
# The domain name for configuring email to fax
FAXDOMAIN=fax.mydomain.com (you can insert you FQDN here, but not important)

# The installation directory for AvantFAX
INSTDIR=/var/www/html/avantfax

# The root directory where HylaFAX bin files are stored (typically, /usr or /usr/local)
HYLADIR=/usr/lib

# HylaFAX $SPOOL directory (typically, /var/spool/hylafax or /var/spool/fax)
SPOOL=/var/spool/hylafax

# These are the database settings AvantFAX will create and use
USER=avantfax
PASS=d58fe49
DB=avantfax

# if the MySQL password for root is set, specify it here
ROOTMYSQLPWD=raspberry

# The user and group which Apache runs as (typically, apache, wwwrun, nobody, etc...)
HTTPDUSER=asterisk
HTTPDGROUP=asterisk

The run the avantfax debian install script
./debian-install.sh
After installation is complete, Your apache wont start. You will get an error in apache log.
To fix it,
mkdir /etc/apach2/logs
then creat a file called avantfax-error_log
touch /etc/apache2/logs/avantfax-error_log
Then
/etc/init.d/apache2 restart
You apache will start
cd /var/www/html
check the ownership with group and user on avantfax folder is asterisk recursively. If not, make sure you do that first.
Now log in to http://yourip/avantfax
The default username and password is admin and password.
The firast time you log in, it will ask you to change the admin password
Make sure it more than 8 characters.
Once you log in you are good to go. You can send a test fax by clicking send fax.
You can add more users to be able to connect to avantfax and send faxes directly form their desktop using the winfax client.
However, the quality of faxes is not too good, but acceptable.
This is where I had problems.
Ward if you can throw some light on this.
This is what I did.
I install the deb package form webmin site
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.670_all.deb
dpkg --install webmin_1.670_all.deb
It will complain about dependencies.
To fix this do the following/
apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
Finally do this
apt-get -f install
To be on the safer side just reboot.
Once you reboot.
go to https://yourip:10000 (https, not http)
Log in click on webmin->webmin configuration->webmin module.
upload the hylafax webmin module ( download the attachment that I have in this post to your local pc and select that file)
CLick install.
This will install the hylafax webmin module.
Then in webmin select servers->Hylafax server->configuration->General Options
Select the vertical resolution to high (This breaks my fax deliveries. I need help here)
Please suggest what is needed?
Regards
 

Attachments

  • hylafax_mod-1.8.2.wbm.gz
    50.8 KB · Views: 14

Terrylbs

New Member
Joined
Jan 27, 2014
Messages
5
Reaction score
0
Hi there,

I have followed these instructions and I actually got faxes to send and receive, however when I reboot faxing will not work anymore unless I reset everything back up. Another issue I am having is that I am unable to access my incrediblePBX GUI it only renders a complete white screen. Avantfax panels are accessible. I have tons of time into to this trying to make this work and I really hope you can shed some light on this. Please help :smash:

Thank you.
 

Terrylbs

New Member
Joined
Jan 27, 2014
Messages
5
Reaction score
0
This is notes of different things I have tried to get it just to the point where it would sent and receive faxes. These are not necessarily in order of what did them in. As i said these are just notes.
/root/update-my-pi
/etc/wpa.conf
/root/fax-enable
raspi-config
1NXXNXXXXXX
ln -s /usr/bin/faxcover /var/www/avantfax/includes/faxcover.php
ln -s /var/spool/hylafax/bin/faxrcvd.php /var/www/html/avantfax/includes/faxrcvd.php
ln -s /var/spool/hylafax/bin/dynconf.php /var/www/html/avantfax/includes/dynconf.php
chmod -R 777 /var/www/html/avantfax
chown -R asterisk:asterisk /var/www/html/avantfax
chown -R asterisk:uucp /var/www/html/avantfax /var/www/html/avantfax/faxes
chown -R asterisk:asterisk /var/www/html/avantfax/faxes
/usr/lib/hylafax/bin
raspberry
mkdir /etc/apache2/logs
cd /etc/apache2/logs
nano avantfax-error_log
touch /etc/apache2/logs/avantfax-error_log
/etc/init.d/apache2 restart
cd /var/www/html/avantfax
chmod +wx debian-install.sh
**************************************
nano /var/spool/hylafax/etc/hosts.hfaxd
add 127.0.0.1
**************************************
*****************************************************************************************************************************************
That’s right, I said Apache would fail to restart. And a moment ago I said it will give you some false information. Apache fails to restart because the entry it added to your /etc/apache2/sites-enabled/000-default has a bit of broken-ness to it. Is broken-ness a word? Yes, you could have edited the script to fix it, but I like doing things the hard way. Anyhow, open the /etc/apache2/sites-enabled/000-default file and scroll to the bottom. You’ll be looking for these two entries:
nano /etc/apache2/sites-enabled/000-default
paste at the bottom:
<VirtualHost *:80>
DocumentRoot /var/www/html/avantfax
ServerName avantfax
ErrorLog /var/log/apache2/avantfax-error_log
CustomLog /var/log/apache2/avantfax-access_log common
</VirtualHost>
"ErrorLog logs/avantfax-error_log"
"CustomLog logs/avantfax-access_log common"
Change them to:
nano /var/log/apache2/avantfax-error_log
nano /var/log/apache2/avantfax-access_log common
Save them empty > /etc/init.d/apache2 restart > Done!
"ErrorLog /var/log/apache2/avantfax-error_log"
"CustomLog /var/log/apache2/avantfax-access_log common"
Or change them to reflect where you want to keep your logs files for Avantfax in the case that you don’t like the way I did it. But the important thing is to make sure that the directory exists and www-data can write to it. That’s what caused this mess.
*********************************************************************************************************************************************
wget http://sourceforge.net/projects/avantfax/files/avantfax-3.3.3.tgz
tar -xvzf avantfax-3.3.3.tgz
cd avantfax-3.3.3
nano debian-prefs.txt
make sure you have these lines in there
# The domain name for configuring email to fax
FAXDOMAIN=fax.mydomain.com (you can insert you FQDN here, but not important)
# The installation directory for AvantFAX
INSTDIR=/var/www/html/avantfax
# The root directory where HylaFAX bin files are stored (typically, /usr or /usr/local)
HYLADIR=/usr/lib
# HylaFAX $SPOOL directory (typically, /var/spool/hylafax or /var/spool/fax)
SPOOL=/var/spool/hylafax
# These are the database settings AvantFAX will create and use
USER=avantfax
PASS=d58fe49
DB=avantfax
# if the MySQL password for root is set, specify it here
ROOTMYSQLPWD=raspberry
# The user and group which Apache runs as (typically, apache, wwwrun, nobody, etc...)
HTTPDUSER=asterisk
HTTPDGROUP=asterisk
The run the avantfax debian install script
./debian-install.sh
!!!!!!!!!!!!!!!Terry also create these files with nano!!!!!
This will restart apache /etc/init.d/apache2 restart
*********************************************************************************************************************
nano /etc/apache2/apache2.conf !!!!Here add "ServerName localhost" without quotes!!!!!!
 

Members online

Forum statistics

Threads
25,810
Messages
167,754
Members
19,240
Latest member
nikko
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