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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
