Apache + PHP-FPM - problem with images (with solution)

vancanneyt

Verified User
Joined
Dec 13, 2012
Messages
92
Hi,

just got started with php-fpm and during testing i noticed that some sites started to serve half loaded images (half rendered images). When downloading the image, it shows like it should show up on the page. Apache error log didn't show any notices or warnings.
Under mod_php there where no problems.
After some research on the web the solution was to edit the httpd.conf file and uncomment the following lines:
#EnableMMAP off
#EnableSendfile off
save it and restart apache.

dunno if this was the best solution but it worked ;-).
 
We found it to be releated to mod_ruid2 + PHP-FPM enabled. Try disabling mod_ruid2 if you experience issues after changing the settings. Thank you!
 
I got the same issue, tried to set:
EnableMMAP off
EnableSendfile off

in httpd.conf but didn't worked, seems that only deactivation of mod_ruid2 solved the problem.
I'm currently use CB 2.0 (upgraded from 1.x) - recompiled apache, php and also modified custom virtualhost files in order to rely exclusively on "ProxyPassMatch" (btw: excellent work with fcgi://socket patch inside apache) - it seems to me the best and most clean way to compile PHP using FPM.
 
I got the same issue, tried to set:
EnableMMAP off
EnableSendfile off

in httpd.conf but didn't worked, seems that only deactivation of mod_ruid2 solved the problem.
I'm currently use CB 2.0 (upgraded from 1.x) - recompiled apache, php and also modified custom virtualhost files in order to rely exclusively on "ProxyPassMatch" (btw: excellent work with fcgi://socket patch inside apache) - it seems to me the best and most clean way to compile PHP using FPM.

Sorry ... (edit doesn't work).

Anyway, I would like to know if there is a solution to fix this.
To be noted: I only have this problems when using https:// - there are NO issues on http:// ... it seems that there could be a problem regarding SSL ? I tried to regenerate certificates, re-issue them ... didn't helped me to fix the problem.
 
Back
Top