server. If the two users belong to the same group, and the permissions
are set properly with group having full permissions on app, then you
should be able to create the app/tmp directory.
The other issue you may run into is that the umask for the user that
you are creating files with will probably not be set up to allow
creation of RWX, since the HTTP user is usually set with very low
permissions for security reasons.
My guess, based on what you're saying is that the app directory is
owned by FTP-user, and the HTTPD user doesn't have the right groups
and/or permissions to create the directory.
It would be helpful if you post the actual errors you are seeing.
On Jan 4, 5:18 am, "Daniel Zuidema" <danielzuid...@gmail.com> wrote:
> Hello all, just trying to get my head around cakePHP after doing some
> oldfashion PHP coding and one thing struck me as odd. Like so many new
> time users, I'm a bit of a novice in PHP, well more of a script-kiddy
> that fully modifies existing scripts and write around that. Hope I
> will do better with cakePHP.
>
> I've been reading about the tmp folder a lot and sorry for bringing
> this up again.
> My webserver is running on a different user than the ftp-login I use.
> Like most servers.
> So I do have to change the permissions of app/tmp to 777. Now I know,
> it's not a really big issue. As the core will handle any malicious
> attempt on this folder, thanks to the webroot folder.
>
> But why not use the $Folder->create function to create this tmp-folder
> and the structure below when you first start up CakePHP?
>
> I've tried to write a simple script to create the tmp-folder through
> PHP so the owner of the tmp-folder will be HTTPD. instead of the
> FTP-user. In theory this would prevent me changing the permissions as
> httpd will have full access to the folder.
> Problem is that my PHP 5 will not let me. Hsphere is throwing a tomcat
> error. Usually does that when the folder is created by the FTP-user
> instead of the httpd-user.
> Hsphere will also not allow me to change the httpd config file so
> that's no option as well. And I can't do a chown. As I don't have
> command line access.
>
> In the past I've run into this problem as well, and I think I solved
> it once by creating a script with an include that did the mkdir. But I
> can't figure it out again.
>
> As my linux knowledge is basic as well, I can't see the implications
> of having the tmp-folder owned by the httpd-user. If there's any? Can
> somebody enlighten me?
>
> Kind regards,
> Daniel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment