Hey guys, I'm currently running PHP as a DSO, which is working well performance-wise, but I've run into some permission issues... for example, the CMS on my site needs to create/update/unpack files during upgrades, and later I need to update them via FTP. Obviously this causes an issue because the files are owned by the default Apache user and not the Cpanel/FTP user.
I've been considering installing FastCGI, but it seems like overkill in my situation - this is a dedicated box which only hosts my site, and I don't host other people's websites. I do have multiple subdomains, but they're all under the same Cpanel account.
I was reading up on some Apache directives and immediately the "User" and "Group" directives stand out and seem like they might do the trick. Can I simply set these directives in each vhost in httpd.conf (or use an include file) to use the Cpanel account owner's username to simplify the permission/ownership issues?
Thanks!



LinkBack URL
About LinkBacks
Reply With Quote





