Can't upload files in file manager

Permalink 1 user found helpful
Hi

I built a new site and have challenges making it work as I cannot upload files via file manager:

http://bigfootcrest.com/newsite...

It says I don't have the right permissions set on the folders and indeed all folders inside the files folder are on 755 vs 777 and I can not change this.

I only have cpanel access through Plesk and have no idea what to do.

Can you help me?

shotrox
 
shotrox replied on at Permalink Reply
shotrox
this is the error message I get in file manager:

Unable to copy file to storage directory. Please check permissions on your upload directory and ensure they can be written to by your web server.
eugen replied on at Permalink Reply
eugen
Hi,
same problem here.

I had a look at he link/solution you pointed to; could you please clarify what I need to do (sorry, I am rather new with this.

Thanks,
shotrox replied on at Permalink Reply
shotrox
Hi

you just have to find the file importer.php on your installation of concrete 5 and add the code:

private function generatePrefix() {
return null;
/*
$prefix = rand(10, 99) . time();
return $prefix;
*/
}

the file is here: /concrete/libraries/file/importer.php

I think that did it :-)
eugen replied on at Permalink Reply
eugen
Hi shotrox,
many thanks for that (I had so many frustrating hours trying to sort the problem of uploading images and I was to the point of giving up C5 on Plesk) -- it does indeed work... :)

I upload images and packages via FTP and now I can use File Manager to import from the incoming/ folder (while Add-ons can be installed via 'Add functionality').

It is still a shame that the direct upload and installation via File Manager does not work under Plesk.
Some people talk about modifying php.ini, what are your thoughts on this?
shotrox replied on at Permalink Reply
shotrox
it seems that new files try to be created with user "apache" on the server... I feel that has to do with the issue?
shotrox replied on at Permalink Reply
shotrox
I just found a solution - sorry for posting a new thread!

This works great:

http://www.concrete5.org/community/forums/installation/plesk_safe_m...