Bug 97647 - Files uploaded with php double in size (approx) and end up corrupt.
Files uploaded with php double in size (approx) and end up corrupt.
Status: CLOSED DUPLICATE of bug 82967
Product: Red Hat Linux
Classification: Retired
Component: php (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Joe Orton
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2003-06-18 15:49 EDT by Derek Kenny
Modified: 2007-04-18 12:54 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-02-21 13:56:46 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
My apache config. (24.81 KB, text/plain)
2003-06-19 00:21 EDT, Derek Kenny
no flags Details
My php config. (460 bytes, text/plain)
2003-06-19 00:24 EDT, Derek Kenny
no flags Details

  None (edit)
Description Derek Kenny 2003-06-18 15:49:05 EDT
Description of problem: I moved my old php application to redhat v9 and my 
uploaded files were getting corrupted. The file size of the uploaded document 
was approximately 2X that of the original. To work around this problem I built 
php from source and now uploaded files are once again ok.

Version-Release number of selected component (if applicable):

How reproducible:
Should be easy.

Steps to Reproduce:
1. Install Redhat9 with php, mysql and apache.
2. Install a php script that handles file uploads into Apache's doc root.
3. Upload a file and try opening it. Also, compare the size to the original.
Actual results:
File cannot be opened and the uploaded file is 2X as large as the original.

Expected results:

Additional info:
Comment 1 Joe Orton 2003-06-18 16:10:43 EDT
Can you attach your /etc/httpd/conf/httpd.conf  and /etc/httpd/conf.d/php.conf
files? This can happen because of a configuration error.
Comment 2 Derek Kenny 2003-06-19 00:21:24 EDT
Created attachment 92476 [details]
My apache config.
Comment 3 Derek Kenny 2003-06-19 00:24:29 EDT
Created attachment 92477 [details]
My php config.
Comment 4 Joe Orton 2003-06-19 04:00:16 EDT
Thanks.  You've added the line:

  AddType application/x-httpd-php .php

to httpd.conf - this is known to cause problems with the symptoms you describe.
 Can you remove this and try your scripts again?
Comment 5 Derek Kenny 2003-06-19 10:53:38 EDT
Without that line in the httpd.conf, the script does not seem to run properly 
and I end up with most of the code echoed to the screen. The install notes for 
php indicate that the line needs to be there. Also, the version I built from 
source works fine with that line in the httpd.conf.
Please let me know if I missed something or misunderstood the request.
Comment 6 Joe Orton 2003-06-21 05:36:59 EDT
That shouldn't happen.  You've also added the line:

LoadModule php4_module modules/libphp4.so

to your httpd.conf - if PHP does not work without that line, then your


file is not getting loaded.
Comment 7 Joe Orton 2003-07-03 07:51:37 EDT
This is likely a duplicate of bug 82967, for which an erratum was just issued.

*** This bug has been marked as a duplicate of 82967 ***
Comment 8 Red Hat Bugzilla 2006-02-21 13:56:46 EST
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.

Note You need to log in before you can comment on or make changes to this bug.