Hi,
On my site (actually my wife site, but ...), I create an XML file using "inscription.php". Afterwards, this file should be used by other php files. Since a few days, this does not work anymore (it worked fine, and it still does on other directories).
While looking for the reason of the problem, I've discovered the following: when "inscription.php" creates a file, the file owner is "1332218" (provided by fileowner()), while if I create a file with another php file, the owner is "136xxxx", ie another userid. Does anybody have an idea on the reason of this ?
Thanks in advance
fibag
Files and directory owner problem
Moderator: General Moderators
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
If your script generates it (it's probably apache that is executing the php script) thus the file will be owned by apache.
If you launch a script and generate something, the file will be owned by you.
If you are seeing userids instead of "nice names" there is probably something b0rken on your server that replaces those uids by name... (Usually a nss(-ldap) issue)
If you launch a script and generate something, the file will be owned by you.
If you are seeing userids instead of "nice names" there is probably something b0rken on your server that replaces those uids by name... (Usually a nss(-ldap) issue)
Hi,
Thanks for these hints. Actually, in parallel with this post, I also sent a message to my host. But you know, it's cheap, so, up to know (for sure in a WE) I do not have any feedback.
Currently trying to install my own linux svr on a VMWare so that I, at least, can try reproduce the problem. In the future, I more and more think of also asking my host to give me a VM and "basta".
fibag
Thanks for these hints. Actually, in parallel with this post, I also sent a message to my host. But you know, it's cheap, so, up to know (for sure in a WE) I do not have any feedback.
Currently trying to install my own linux svr on a VMWare so that I, at least, can try reproduce the problem. In the future, I more and more think of also asking my host to give me a VM and "basta".
fibag