Installation of demo content fails: copy(), chmod() on files and folders fails! Everything else works...

Permalink
Hey everybody

This is my 3rd installation of Concrete5 in a few days, so I guess I do everything correctly. But it is a different hoster, so I guess it's some sort of problem with my hoster.

The installation pre-checks are all green (except the python diff stuff, but I don't need that at the moment), so I enter all the needed config stuff and begin with the installation. The DB stuff seems to work (the tables exist in the db), but there seem to be problems with file modification etc. while (I guess) installing the demo content:

Warning: copy() [function.copy]: Unable to access /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/files/7012/8536/9026/inneroptics_dot_net_starfish.jpg in /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/helpers/file.php on line 79

Warning: copy(/home/kadu01/domains/studio-reaktor.si/public_html/concrete5/files/7012/8536/9026/inneroptics_dot_net_starfish.jpg) [function.copy]: failed to open stream: No such file or directory in /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/helpers/file.php on line 79

Warning: chmod() [function.chmod]: Unable to access /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/files/7012/8536/9026/inneroptics_dot_net_starfish.jpg in /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/helpers/file.php on line 80

Warning: chmod() [function.chmod]: Unable to access /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/files/7012/8536/9026/inneroptics_dot_net_starfish.jpg in /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/helpers/file.php on line 80

Warning: chmod() [function.chmod]: stat failed for /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/files/7012/8536/9026/inneroptics_dot_net_starfish.jpg in /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/helpers/file.php on line 80

Warning: copy() [function.copy]: Unable to access /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/files/3712/8536/9023/inneroptics_dot_net_aspens.jpg in /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/helpers/file.php on line 79

Warning: copy(/home/kadu01/domains/studio-reaktor.si/public_html/concrete5/files/3712/8536/9023/inneroptics_dot_net_aspens.jpg) [function.copy]: failed to open stream: No such file or directory in /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/helpers/file.php on line 79

Warning: chmod() [function.chmod]: Unable to access /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/files/3712/8536/9023/inneroptics_dot_net_aspens.jpg in /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/helpers/file.php on line 80

Warning: chmod() [function.chmod]: Unable to access /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/files/3712/8536/9023/inneroptics_dot_net_aspens.jpg in /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/helpers/file.php on line 80

...etc...

Warning: chmod() [function.chmod]: Unable to access /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/files/9112/8536/9025/inneroptics_dot_net_canyonlands.jpg in /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/helpers/file.php on line 80

Warning: chmod() [function.chmod]: stat failed for /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/files/9112/8536/9025/inneroptics_dot_net_canyonlands.jpg in /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/helpers/file.php on line 80

Warning: Cannot modify header information - headers already sent by (output started at /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/helpers/file.php:79) in /home/kadu01/domains/studio-reaktor.si/public_html/concrete5/concrete/libraries/view.php on line 764

I have CHMODed the files directory to 0777, so this shouldn't be a problem... FileZilla gives me the following folder hierarchy for files:

3712
7012
7112
8512
9112
avatars
cache
incoming
thumbnails
trash
index.html

So the first level of the hierarchy exists, but nothing inside it...

Funny thing is, that after all these warnings Concrete tells me that installation was successful. I can also successfully connect to it, log in, create/edit content, but all the files (images etc.) are missing, and I also can not upload new files - this results in:

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.

What can I do? Maybe this hoster prevents PHP scripts from modifying files and folders or something like that?

Thanks a lot for help
Josh

 
TheRealSean replied on at Permalink Reply
TheRealSean
Sounds like a permission on the files folder can you recursivley set the permissions to 0777?

0775 should do but it sounds like the lower level folder do not allow access to (I think the install script runs as apache)
madesimplemedia replied on at Permalink Reply
madesimplemedia
You need to set permissions for config, files, packages and updates folders.
Josh83 replied on at Permalink Reply
Well I dıdnt chmod the updates folder to 0777 because the ınstall scrıpt dıdnt enforce ıt. So you thınk thıs really caused the problem? I am not at my computer rıght now so I am not really able to check ıt at the moment...
TheRealSean replied on at Permalink Reply
TheRealSean
The updates folder would only cause a problem when you update the site, but again 0775 should be enough for that.

This instance does appear to be a file folder permissions, just set the permissions on the files folder but make sure you tick the recursive box.

If filezilla doesn't allow that try winscp