Strange problem with images in CMSMS 1.1.1

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
reidjazz

Strange problem with images in CMSMS 1.1.1

Post by reidjazz »

I haven't run into this before until recently.

Did a fresh install of CMSMS 1.1.1 to an Apache 2.0 server running PHP 4.4.7 and MySQL 4. All went smoothly. I uploaded some files and went I tried to view them in the File Manager, I got the following:

Forbidden
You don't have permission to access //uploads/images/mid.jpg on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I checked the permissions of the uploads/images/ directory, and I have sufficient permissions, but I have no joy. Also when these are called via CSS or in a img tag, nothing displays in the browser.

Help!!!

reidjazz
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Strange problem with images in CMSMS 1.1.1

Post by RonnyK »

reidjazz,

did you check the "Image Uploads Path" and "Image Uploads Url" in your config.php?

Ronny
reidjazz

Re: Strange problem with images in CMSMS 1.1.1

Post by reidjazz »

Ronnie,
Yes, checked that and all was OK. I remembered that the CMSMS "palm tree" logo WAS displaying OK and I could view it in my browser.

Sure enough, all the images I uploaded using the File Manager (not the one in the default install, but the other one that allows for multiple file uploads) had permissions set to 600. I have never seen that before! I changed them to 644 and all is good.

Not sure what to do about this in the future, though. It really is a drag to have to manually set these permissions.

Any ideas?
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Strange problem with images in CMSMS 1.1.1

Post by RonnyK »

umask - set to 002?
reidjazz

Re: Strange problem with images in CMSMS 1.1.1

Post by reidjazz »

RonnyK wrote: umask - set to 002?
Setting it to 002 made no difference. This is very strange, as I have never had a problem like this before.

reidjazz
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Strange problem with images in CMSMS 1.1.1

Post by RonnyK »

I have my umask set to 002 and my images are uploaded to 664. You did upload new pictures after changing the umask?

Ronny
reidjazz

Re: Strange problem with images in CMSMS 1.1.1

Post by reidjazz »

RonnyK wrote: I have my umask set to 002 and my images are uploaded to 664. You did upload new pictures after changing the umask?

Ronny
Yes, I uploaded new files, and they were all set to 600 after I uploaded them...hmm...
Locked

Return to “CMSMS Core”