Problems with files uploaded in php5

bas1968

Verified User
Joined
May 31, 2006
Messages
70
We have on our server php 4 and php 5. PHP 4 is running normal, php 5 in CGI mode.
When we upload files using php 4 the are owned by apache with the permissions 600 and the images are displayed normal on the site. When we upload the same files using a script in php 5 the files are owned by the user and have also the permissions 600 but the images won´t be displayed on the site.
We can chown the files to apache or change the permissions 755 but we need to do that after every upload. I think this is happening because php 5 is running as CGI. Is there an option possible to upload the files with owner apache or is there an other way to solve this problem?
 
Back
Top