Web Based Faxing – avantfax

[1.] wget http://nchc.dl.sourceforge.net/sourceforge/avantfax/avantfax-2.1.1.tgz

tar zxvf avantfax-2.1.1.tar.gz
mv avantfax-2.1.1/avantfax /var/www
chmod -R 777 /var/www/avantfax/tmp /var/www/avantfax/faxes

[2.] vi /var/www/avantfax/include/config.php

$db_user        = ‘avantfax’; // username
$db_pass        = ‘avantfax123456’; // password
$db_name        = ‘avantfax’; // database name
$INSTALLDIR     = “/var/www/avantfax”;  // The path where avantfax is installed

[3.]
cd /var/spool/hylafax/bin
mv faxrcvd faxrcvd.old
mv notify notify.old
ln -s /var/www/avantfax/includes/faxrcvd.php /var/spool/hylafax/bin/faxrcvd
ln -s /var/www/avantfax/includes/notify.php /var/spool/hylafax/bin/notify
mv /usr/bin/faxcover /usr/bin/faxcover.old
ln -s /var/www/avantfax/includes/faxcover.php /usr/bin/faxcover

[4.] MySQL,先修改 create_user.sql的密碼
mysql -uroot -p < create_user.sql
mysql -uavantfax -pavantfax avantfax < create_tables.sql

[5.] vi /etc/crontab

# runs once an hour to update the phone book
0 * * * * /var/www/avantfax/includes/phb.php
# runs once a day to remove old files
0 0 * * * /var/www/avantfax/includes/remold.php

[6.] visudo

apache ALL = NOPASSWD: /sbin/reboot, /sbin/halt,
/usr/sbin/faxdeluser, /usr/sbin/faxadduser -u * -p * *

[Q:] pear install  fileinfo

downloading Fileinfo-1.0.4.tar …
Starting to download Fileinfo-1.0.4.tar (-1 bytes)
……..done: 24,064 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version:         20031224
Zend Module Api No:      20041030
Zend Extension Api No:   220040412
/usr/local/bin/phpize: line 105: aclocal: command not found
`phpize’ failed

[A:] yum install autoconf automake libtool

 

2008/09/21 http://www.howtoforge.com/build-a-hylafax-server-with-avantfax-on-debian-etch

Related posts 相關文章
fax + hylafax + smbfax
More...
fax + hylafax + samba
More...
fax + hylafax + web-hylafax-gw-1.0.tar.gz
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。