[solved] Image uload, file permissions problem

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.
Post Reply
palan
Forum Members
Forum Members
Posts: 12
Joined: Wed Oct 03, 2007 1:43 pm

[solved] Image uload, file permissions problem

Post by palan »

Hi all,

New to CMSMS and any CMS for that matter..

When I try to upload images, all I get is a "File could not be uploaded. This could be a permissions or Safe mode problem?" message.

The permissions to upload/images and temp are set to 777.

I've tried altering the File Creation Mask from 022 to 002 and even 000 but with no joy. The test initially failed until I set the the temp  to 777, but works fine now.

GD is installed for images on my server, which is also not running in safe mode.

Any ideas would be much appreciated.

Thanks,
Alan
Last edited by palan on Tue Oct 09, 2007 2:40 pm, edited 1 time in total.
palan
Forum Members
Forum Members
Posts: 12
Joined: Wed Oct 03, 2007 1:43 pm

Re: Image uload, file permissions problem

Post by palan »

Some extra info if it helps:

CMSMS 1.1.31

Apache/2.0.52 (CentOS) running on Linux
PHP/4.4.7
MSQL 4.1.20
GD version: bundled (2.0.28 compatible), with all image formats supported.

Permissions were set/chmoded to 777 on install, apart from config which was set to 666.

As I mentioned in the above post, I've tried changing the File Creation Mask to 002 and 000 to see if this would help with no joy. I did notice after the Test ran ok it said "Owner: Apache". Not sure if this would make a difference?

I've read through similar topics/suggestions posted in the forums but nothing helps, and apart from playing about with some pages/templates options, I haven't really configured much as I wanted to upload some images to get started!

Cheers,
Alan
rocket
Forum Members
Forum Members
Posts: 25
Joined: Tue May 29, 2007 8:37 pm

Re: Image uload, file permissions problem

Post by rocket »

Can you tel us more.

What type of file are you trying to upload

Are you using the Uploads module, or how do you upload your file

Anything might help
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Image uload, file permissions problem

Post by calguy1000 »

I'll bet safe mode is on.
CMS Made simple does not support safe mode.  Hence the warning in the admin main, and in the module manager.
Last edited by calguy1000 on Sat Oct 06, 2007 1:12 am, edited 1 time in total.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
palan
Forum Members
Forum Members
Posts: 12
Joined: Wed Oct 03, 2007 1:43 pm

Re: Image uload, file permissions problem

Post by palan »

Many thanks for the replies.

I'm trying to upload through content/image manager. That's where I get the error message. I've tried to upload jpg's and giffs.

After running php.info on the server, the following is displayed regarding safe mode:

safe mode: off
safe_mode_exec_dir: no value
safe_mode_gid: off
safe_mode_include_dir: no value

Regarding uploads, it also listed:

upload_max_filesize: 2mb
upload_tmp_dir: no value

I just looked in the module manager and a message appears that wasn't there before:

"Error!

SOAP Problem (http://modules.cmsmadesimple.org/soap.p ... Repository): HTTP Error: Couldn't open socket connection to server http://modules.cmsmadesimple.org/soap.p ... Repository, Error (110): Connection timed out"

Is this related to the upload_tmp_dir mentioned above? Or just a temporary connection problem? All other admin features seem to load ok.

Cheers,
Alan
palan
Forum Members
Forum Members
Posts: 12
Joined: Wed Oct 03, 2007 1:43 pm

Re: Image uload, file permissions problem

Post by palan »

Just to say..

Seems it was the upload_tmp_dir as it wasn't loaded by default in the php setting on my hosting account.

I activated it (had to wait 24hrs for it to take effect - due to server backup or similar) I then made sure it was pointing towards the default directory ".../tmp"

At least the image upload trouble/error messages seems to be sorted! Fingers crossed the rest goes ok!

Cheers,
Alan
lucid
Forum Members
Forum Members
Posts: 29
Joined: Mon Nov 12, 2007 2:48 pm

Re: [solved] Image uload, file permissions problem

Post by lucid »

thanks for the post. I had the same problem with melbourneIT. will get them to set the upload_tmp_dir and see if all goes well.
Post Reply

Return to “CMSMS Core”