luke
luke

Reputation: 415

coldfusion permissions on linux for file operations ( cffile, cfdirectory )

I have a simple little admin system that works fine on IIS, but I'm having problems moving it over to Linux.

The system can create, rename and delete directories, create and upload/save files, and edit, rename or delete those files. On Linux I keep running into permission problems. The hosting company is solving the problem on a folder by folder basis, which isn't really a solution, because as soon as the system tries to create a new directory, it falls down.

I don't really understand Linux, but from reading it seems ColdFusion runs as a user, and that user has certain permissions given to it. What's the ideal setup for the ColdFusion user or solution on Linux, so I can do what I need to do to any folder/file under the root? For example, everything under /home/mysite/public_html/

Thanks for any help!

Upvotes: 3

Views: 1099

Answers (1)

andrewdixon
andrewdixon

Reputation: 1069

You need to add the user CF is running as to the group that owns the folder /home/mysite/public_html/ and then set the permissions on the directory /home/mysite/public_html/ to 775.

Upvotes: 5

Related Questions