SOLVED [was Re: Avantfax on Archlinux - Sent Faxes Don't Show in Archive?]

"David C. Rankin" <[email protected]> Fri, 16 Sep 2016 00:00:25 -0500
Newsgroups gmane.comp.telephony.fax.hylafax.user
Organization Rankin Law Firm, PLLC
Message-ID <[email protected]>
On 09/15/2016 04:21 AM, David C. Rankin wrote:
> On 09/15/2016 02:33 AM, David Mimms wrote:
>> > 
>>> >> -FaxrcvdCmd:     bin/faxrcvd.php
>>> >> -DynamicConfig:  bin/dynconf.php
>>> >> -UseJobTSI:      true
>> > 
>> > David,
>> > 
>> > What do you have in etc/config? Can you also show what you have in bin/?
>> > 
>> > cat /var/spool/hylafax/etc/config 
>> > 
>> > ls -l  /var/spool/hylafax/bin/*.php
>> > 
>> > DM
>> > 

  Grr.... It was php.ini open_basedir! Adding /var/spool/hylafax to the
open_basedir path solved the problem. I found the issue attempting a manual
import of the data, e.g.:

[23:49 valkyrie:/var/spool/hylafax] # (for i in `ls doneq/q*`; do bin/notify.php
$i done :30; done)
PHP Warning:  file_exists(): open_basedir restriction in effect. File(doneq/q54)
is not within the allowed path(s):
(/srv/http/:/srv/http/htdocs:/home/:/tmp/:/var/lib/egroupware:/usr/local/share:/usr/share/php56/pear/:/usr/share/fonts:/usr/bin)
in /srv/http/avantfax/includes/notify.php on line 30
doneq/q54 doesn't exist
...

  After editing php.ini and reloading httpd, all was fine:

[23:51 valkyrie:/var/spool/hylafax] # (for i in `ls doneq/q*`; do bin/notify.php
$i done :30; done)
notify> Executing: doneq/q54 done :30  (4)
totpages: 2
external: 715xxxx
mailaddr: [email protected]
jobid: 3
receiver:
company:
location:
voice:
regarding:
owner: david
groupid: 3
status:
Found file: docq/doc2.pdf
convert2pdf> starting
convert2pdf> processing tiffs
convert2pdf> copying docq/doc2.pdf to
/srv/http/avantfax/faxes/sent/2016/09/15/715xxxx/235149/3/fax.pdf
convert2pdf> cleaning up...done

  It's always those little things.... and with the new PHP error reporting
settings set to production, the error was masked, and not logged to error_log.
Oh well, this post can serve as help for the next dummy that makes the same mistake.

  Thanks again David M. 3.3.5 up and running with all data from 2009 imported.
Now we just await 3.3.6 which will be fully PHP7 compatible :)

-- 
David C. Rankin, J.D.,P.E.


____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe [email protected] < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail [email protected].*