Skip to main content
June 30, 2009
Question

CF8 - pdf files do not display in a browser

  • June 30, 2009
  • 1 reply
  • 840 views

We are setting up the multiple instance capability using jrn4 with cf8,

with apache 2.x on Redhat linux 5.X.

For the when browsing to the main cfusion instance I can see pdf files

but if I go to the document root of an instance, pdf files are not displayed.

Infact it hoses whichever browser you are using.

I can see cfm, txt, html files.

Anyone have an idea what is happening?

paulw

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    July 1, 2009

    If you're using Apache as the web server then PDF files are served by

    Apache and not by CF. In fact you can stop CF and still be able to

    retrieve plain PDF files (not PDF files served via cfcontent though).

    How are you CF instances setup ?

    Mack

    July 1, 2009

    I tried your recommendation of turning off coldfusion and it

    appears the problem of not being able to display

    a pdf file has nothing to do with coldfusion or with apache.

    The problem appears to be how we are mounting the documentroot on a linux server

    from a windows file server using a cifs mount.

    It seems to handle text files properly but not pdf files (it may have problems

    with other types of files), perhaps it is an issue with end of line or end of

    file which is confusing things.

    This is the mount command we are using

    //win_file_server/xyz /data/xyz cifs user,ro,credentials=credentials,uid=48,gid=48,file_mode=0755,dir_mode=0755

    The credentials file contains

    username=some_name

    password=xxxxxxxx

    uid=apache

    gid=apache

    filemode=0660

    dirmode=0770

    nosuid

    nosetuids

    It works file if the documentroot is on a mounted unix file system, but not windows.

    Does anyone know if mounting a windows file system can work properly?

    (Perhaps we are missing some additional settings).

    paulw

    ---

    Participating Frequently
    July 2, 2009

    I think your question is better asked on a Linux forum, but one thing

    that you should check is that you're able to read the PDF's properly

    from the linux server console. If not my guess would be some funky

    permissions on the PDF files.

    Mack