PHP / Apache Issue

Justin Bennett Justin.Bennett at dynabrade.com
Wed Sep 1 15:26:02 EDT 2004


yes it's custom compiled (needed oci8 support) It was doing it on a 
bunch of scripts. I think it was a httpd.conf issue, I took an 
httpd.conf from a sister server altered it to fit this box, restarted 
apache and all is well. I an apache update went in not to long before 
from redhat network, it may have altered the conf file or something.



Justin Bennett
Network Administrator
Dynabrade, Inc.
8989 Sheridan Dr.
Clarence, NY 14031
 



John Seth wrote:

>I seen something similar happen on RH 7.3 and RH 9.0 boxes that were web
>servers.  I had tried installing a new version of PHP and at random times,
>pages would just display raw html/php code instead of actually displaying
>the pages.  99 times out of a 100 it wouldn't... but that 1 out of a 100
>always seemed to happen when my boss was viewing the website, and not just
>at their own computer.
>
>Do you have a custom compiled version of PHP perhaps and is it doing it
>for other PHP scripts, or just that one pdf script?
>
>
>--
><? print(pack("c*", 74,117,115,116,32,/* Tony Evans                  */
> 65,110,111,116,104,101,114,32,80,72, /* Linux/Web Implementation    */
> 80,32,72,97,99,107,101,114,46,10));  /* http://www.phoenixwing.com/ */ ?>
>
>
>On Wed, 1 Sep 2004, Justin Bennett wrote:
>
>  
>
>>Its mozilla 1.7.1 and reader 6.0. I have two copies of this program one
>>on a application server here (buffalo), and one in europe (pretty much
>>same config on both machines). It's a sales report the runs against an
>>oracle database. The same program works fine on one application server,
>>but on the european server was giving me this greif, it was doing if for
>>more than a PDF too, It was doing it for regular pages. That's why I
>>pretty much ruled out anything on the client end, I eventually
>>regenerated  httpd.conf and restarted apache and it seems to work fine
>>now.
>>
>>Thanks for the reply!
>>
>>Justin
>>
>>
>>
>>Justin Bennett
>>Network Administrator
>>Dynabrade, Inc.
>>8989 Sheridan Dr.
>>Clarence, NY 14031
>>
>>
>>
>>
>>Cliff Meyers wrote:
>>
>>    
>>
>>>Justin,
>>>
>>>
>>>This likely has more to do with the browser you're running than anything
>>>server-side.  What operating system / web browser / version of Adobe
>>>Reader are you using?  You could also try changing the content-disposition
>>>to "attachment" instead of "inline"; the former should cause the PDF
>>>to be opened by Acrobat Reader itself, whereas the latter will open in
>>>the browser via the plugin.  I know Acrobat Reader 5.0 for Windows had
>>>some strange bugs in it.
>>>
>>>
>>>-Cliff
>>>
>>>
>>>
>>>On Tue, 31 Aug 2004 06:58:24 -0700 Justin Bennett <Justin.Bennett at dynabrade.com>
>>>wrote:
>>>
>>>
>>>      
>>>
>>>>I have redhat 2.1ES machine running Apache and PHP. I have a PHP
>>>>script
>>>>that generates a PDF. Every third or fourth time I run the script
>>>>I
>>>>don't get the PDF instead I get the headers and asci equiv of the
>>>>PDF in
>>>>my browser. I hit reload and the PDF comes up fine. Any idea why
>>>>this
>>>>might happen, possibly config error?
>>>>
>>>>
>>>>HTTP/1.1 200 OK
>>>>Date: Tue, 31 Aug 2004 14:19:30 GMT
>>>>Server: Apache/1.3.27 (Unix)  (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b
>>>>DAV/1.0.3 PHP/4.3.4 mod_perl/1.26
>>>>X-Powered-By: PHP/4.3.4
>>>>Content-Length: 10053
>>>>Content-disposition: inline; filename=doc.pdf
>>>>Keep-Alive: timeout=15, max=99
>>>>Connection: Keep-Alive
>>>>Content-Type: application/pdf
>>>>
>>>>%PDF-1.3
>>>>3 0 obj
>>>><</Type /Page
>>>><SNIP>
>>>>
>>>>--
>>>>Justin Bennett
>>>>Network Administrator
>>>>Dynabrade, Inc.
>>>>8989 Sheridan Dr.
>>>>Clarence, NY 14031
>>>>
>>>>
>>>>        
>>>>
>>    
>>



More information about the nflug mailing list