A user seems to be usurping www-data....
I'm running Lucid Ubuntu with Apache2.
Mostly my site works well.
But: when PHP scripts execute mkdir() or moveuploadedfile commands, the newly created folders/files are owned by another unix user, not www-data. www-data owns the containing folder.
I did create this other user, but it shouldn't be owning these files.
When I log in with my public key, a different user – not the troublesome one -- is used.
The troublesome user also owns my PHP sessions when they get created, although nothing else.
When I delete the user (the bad one) I can't restart Apache -- I get "bad username." My PHP sessions also break.
So I add the user again and I'm back where I started.
Any ideas?
Thanks so much,
Elliot
3 Replies
Thanks for thinking about this. I had mpm directives that made apache run as the troublesome user. In /etc/apache2/sites-enabled/
Apologies, this seeems like a noob mistake. Thanks again for responding.
-Eliot