The Image Uploader is not working properly in Magento 126.96.36.199, seems to upload images with chmod 640 permissions.
Any ideas anyone? I dont really want to change the uploader.php file.
This is my first reply here so excuse for any mistake.
Well that's true and i had the same problem but if you check the last changelog you ll see that is not a bug...
Check here: http://devdocs.magento.com/guides/m1x/install/installer-privileges_after.html#privs-after
Well you have to ways to fix that issue:
• WAY 1: Edit the file Uploader.php (NOT SAFE)
Location: magento dir --> lib/Varien/File/Uploader.php
Change line 219:
Change it to:
• WAY 2: FOR PLESK - CENTOS USERS
At Plesk the Apache is member of psaserv group.
The new files that magento creates are in group psacln and the owner is your FTP user. No access for Apache there.
First via SSH check your groups:
# grep '' /etc/group
Add Apache to the psacln
# usermod -a -G psacln apache
Restart Apache Service and voilà!!!
Im on a CentOS 6 VPS, are these SSH commands ok for CentOS.
Yes, are safe and you can google about those commands.
You can remove the Apache user from the second group (as it was before).
The command is:
gpasswd -d username group
Btw imo first try the WAY1 by editing the uploader.php and test it. If it works change again the uploader.php to 0640 and add the Apache User to the Group.
Hello, I tried WAY I on 188.8.131.52 after SUPEE 8788 and 7405 update but the images still aren't uploading. I also tried 0777 permission code. No luck. Any help?