Change linux user in script instead of webserver

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dimxasnewfrozen
Forum Commoner
Posts: 84
Joined: Fri Oct 30, 2009 1:21 pm

Change linux user in script instead of webserver

Post by dimxasnewfrozen »

I'm writing a scripts that dynamically generates files on the server (internally). I noticed that the the files that are being created are created as the webserver user and group, in my case this is Apache. I understand why it does this but is there anyway to change the user in the script instead of chown/chgrp/chmod after every file?
Post Reply