Share

AvantFAX

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Cannot preview faxes...Fileinfo issue

  1. 2007-08-12 17:34:44 UTC
    I have Slackware 12 running as my HYlafax server and I can send and receive faxes with no problems. The problem lies with Avantfax. My problem seems to be a common one which I have searched in these forms. It seems that Avantfax changed their php scripts somewhat in the latest version as of now (V 2.25)

    I have installed all of the dependencies required for Avantafx and all works great except that I cannot view any faxes or view any pdf faxes as well. I have traced the problem down to the PECL FileInfo module.
    Since I could not compile this from pear or PECL it would always give a configure error even though I have all the dependencies met I had no choice to compile from source. It installed with no problems using standard make and make install, version 1.04 so I thought that all was good. It seems that with fileinfo installed and the module extension enabled in php.ini as (extension=fileinfo.so) the apache server would be very slow to respond to any of the avantfax pages. If I would comment out extension=fileinfo.so in php.ini and restart the apache server all would be well as in responsive speed in apache but I could not preview any faxes. Now the funny thing is if I would enable the module in php.ini and restart the server I sill could not see any preview faxes and the pdf function would just hang and the server would be unresponsive. So I thought it was an issue with Fileinfo and tried to downgrade to 1.0.3 but that version would give me a make error.

    So now I'm stuck and have no way to fix this. I have tried all suggestions from reading the forum but all the suggestions apply to older versions of Avantfax to use FILE_INFO=true setting which was redone in version V 2.25 that automatically checks to see if it's installed which it is installed.


    Any suggestions cause I have run out of ideas how to resolve this issue.

    Thanks.
  2. 2007-08-27 14:27:50 UTC
    Try this:
    ln -s /etc/file/magic.mime /etc/magic.mime
  3. 2007-09-02 05:04:10 UTC
    I already had the symbolic link setup

    root@LTSP-12:/etc# ln -s /etc/file/magic.mime /etc/magic.mime
    ln: creating symbolic link `/etc/magic.mime': File exists
    root@LTSP-12:/etc#

    Both magic and magic.mime have their symbolic links pointed to /etc/file

    lrwxrwxrwx 1 root root 10 2007-08-11 21:48 magic -> file/magic
    lrwxrwxrwx 1 root root 15 2007-08-11 21:50 magic.mime -> file/magic.mime


    Any other suggestions
  4. 2007-09-06 18:39:37 UTC
    Has anybody gotten Avantfax to work with Slackware 12 ?

    I'm still having same issues and nothing seems to fix it.
  5. 2007-10-29 04:39:53 UTC
    i found the bug in slackware
    http://pecl.php.net/bugs/bug.php?id=8703&edit=2

    this should help
  6. 2008-03-18 09:15:55 UTC
    As I did
    1) Prepare the system and upgrade to "current" with all necessary for Avantfax (slackpkg is good stuff). Be assured, that following packages are installed: lcms, libXext, libXt, libXtst, libSM, libICE.
    2) Install hylafax-4.4.4 from source.
    3) Install Avantfax-3.0.9
    4) #pear install Mail Net_SMTP Mail_mime MDB2_driver_mysql
    5) Download and install fileinfo-1.0.4 from source.
    # mkdir /tmp/fileinfo && cd /tmp/fileinfo && wget http://pecl.php.net/get/Fileinfo-1.0.4.tgz
    # tar zxvf Fileinfo-1.0.4.tgz && cd Fileinfo-1.0.4
    # phpiz && make && cp modules/fileinfo.so /usr/lib/php/extensions/
    6) Add extension=fileinfo.so in /etc/httpd/php.ini and restart apache.
    7) #chmod -R 755 /var/www/htdocs/avantfax/faxes /var/www/htdocs/avantfax/tmp
    8) #cd var/www/htdocs/avantfax/faxes && find . -type f -exec chmod 664 {} \;

    All work is fine. No slow respond from any pages of avantfax.

    Packages on my Slackware box: php-5.2.5-i486-1, mysql-5.0.51a-i486-1, httpd-2.2.4-i486-6, imagemagick-6.3.7_10-i486-1, ghostscript-8.62-i486-2, libtiff-3.8.2-i486-3, netpbm-10.35.22-i486-1, libungif-4.1.4-i486-4, expect-5.43.0-i486-2, lcms-1.16-i486-1, libXext-1.0.4-i486-1, libXt-1.0.5-i486-1, libXtst-1.0.3-i486-1, libSM-1.0.3-i486-1, libICE-1.0.4-i486-1
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.