File Manager troubleshooting with safe mode off

Permalink
Hi guys,

I'm working on my website which is hosted with NearlyFreeSpeech.net, and I'm having trouble uploading files using the file manager. I've also tried FTPing files to /files/incoming and importing via file manager, and this doesn't work either.

NFS doesn't allow safe mode to be turned off, which has left me with a heap of trouble re permissions.

Can this be bypassed in any way? ie can I upload files in a way that bypasses the file manager entirely?

Thanks for the help in advance

Cheers
Chris

cpendlebury
 
cpendlebury replied on at Permalink Reply
cpendlebury
PS. Title of this thread should read: "File manager troubleshooting with safe mode on".

My only excuse is it was really really late when I wrote it. :P
cpendlebury replied on at Permalink Best Answer Reply
cpendlebury
This problem is solved. If you're having the same trouble:

set /files/ /config/ and /packages/ to group Web with 775 permissions,

set /config/site.php to group Web with 644 permissions

set php.ini, php5.ini and index.php to group Web with 644 permissions.
rustbucket replied on at Permalink Reply
Just to add to this topic, I'm hosting a C5 install on nearlyfreespeech as well and I had to go in via terminal and assign the "web" group to the concrete install as well to make it work. For some reason that got messed up (probably by me). To change a group name recursively from the public folder:

chgrp -R web public
DtotheOR replied on at Permalink Reply
DtotheOR
OOookay, after a lot of forum reading I figured out how to change group to web. I appreciate the above advice for what to change, but was too much of a noob to know how :)
I downloaded Putty, opened it, and put in my host's name. For nearlyfreespeech.net it's, "ssh.phx.nearlyfreespeech.net".

Next, a black terminal window pops up asking you for your username and then password. These are the same as when you are using SFTP.

If you want to view your current file settings type in, "ls -al".

I only changed the ownership of the folders and files listed by cpendlebury (file, config, packages, config/site.php)

chgrp -R web files
chgrp -R web packages
chgrp -R web config
chgrp -R web config/site.php

After you're done you can try, "ls -al" and see that now, "web" is listed where "me" or some random number was listed before. Now you should be able to upload images through concrete5 file manager with safemode turned on! Yay!
nerdess replied on at Permalink Reply 1 Attachment
nerdess
hmmm i am also with nearlyfreespeech but i get a the message

"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."

when i try to upload e.g. an image via the file manager.

i did the group changing via putty as DtotheOR suggested....the group for files is now "web" but i still get the same error as above :-/

is there anything else i need to do?

PS: if i do

chmod -R 775 files

i get "operation not permitted"...?!

PPS: I just attached a screenie of my directories
cpendlebury replied on at Permalink Reply
cpendlebury
nerdess:

Make sure php.ini, php5.ini and index.php are set to group Web with 644 permissions too. index.php is set to group 195201 in your picture.

Cheers
Chris
nerdess replied on at Permalink Reply
nerdess
yay this helped, thanks chris
MimiMust replied on at Permalink Reply
Yes, this note to change perms on the index.php was also very helpful. Thanks!