Uploading files?

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
webby57

Uploading files?

Post by webby57 »

Hi,

I have installed the last version 8.2 on cms made simple but when I want to upload a file or images and I get this error:

"file could not be uploaded. Permission Problem?"

I have checked permission on the uploads and images directory and it reads 777

Anyone can help pse!!!!. It's very urgent...

tks
Chris Buechler

Re: Uploading files?

Post by Chris Buechler »

This is an older post, but for the benefit of anyone that runs across it in the archives from a search, like I did... 

I had the same problem, and I figured it out from a couple other posts here and poking around a bit. 

First, make sure the permissions on the uploads directory allow the user the web server is running as to upload.  chmod'ing 777 will suffice, but that's not a great idea.  It's better to chown that directory so it's owned by the user running your web server. 

Second, make sure your php.ini allows uploads, and has a sufficiently large max filesize:
file_uploads = On
upload_max_filesize = 16M

Third, in your CMSMS config.php, make sure the max_upload_size is sufficiently large.  Use this for 10 MB.
$config['max_upload_size'] = 10000000;

That took care of it for me. 
jelle

Re: Uploading files?

Post by jelle »

True points. But not evry user using a hosting provider can change php.ini or chmown to a different user. In those cases only rwxrwxrwx works, as ugly as it is.
Locked

Return to “[locked] Installation, Setup and Upgrade”