murugan
I've recently set up our new server on CentOS using VirtualMin/WebMin, and this may not actually be a Doku issue, but a PHP config issue... I'm just starting out setting up DokiWiki and am in a testing phase before letting anyone else on. VirtualMin sets up new server with the virtual domain user as both the default owner and default group i.e. all files look like this;
docu.php rwxr-xr-x owner:mydomainuser group:mydomainuser
(Side note, I had to chmod everything to 755 to work right, there's no one else on this box so, security on the mode setting is not too much of an issue, I can go to 777 if I need to-- I think... I'm no expert on permissions)
but when we create a new page we get
/data/
pages/
/admin
home.txt rw-r--r-- owner:apache group:Apache
Now if I try to log int via FTP to change the name of that file from "home.txt" to "wiki.dev.txt" I cannot, because as FTP user "mydomainuser" I don't have permission to change the file name. I suppose in the configuration manager I could change the default file creation mode to 755, and that would probably work too.. but i would rather have consistency in the owner:group across all files under wiki/ other wise it gets really hard if you log in via terminal and sudo as mydomainuser... and some files you can touch and others you cannot. We write CGI against wiki pages also (parse content and do stuff with it and either re-write content or sent our emails with specific information on crons etc.. So that's another reason we need the owner:group consistent across the site
So
How can I get doku.php (presumably the script that is writing new pages) to act as "mydomainuser" and not create files as "apache:apache" ?
I'm just figuring out the best way to do "home" pages and how to set names spaces to our best advantage... kind of fumbling a bit, so I may want to reconfigure/refactor by reworking the nomenclature and folder structure from the "back end" This probably would break any ACL that was previously set up, and I guess I would need to figure out how to clean up that mess, but that's a different discussion.
murugan
Problem solved. In VirtualMin you can choose Server Configuration, Web Site Options, one of which is to set PHP to run as fcgi as the virtualmin owner/user I changed that setting now everything works fine.