I have a trial WHM/cPanel setup on a CentOS server. Everything is working well except for one file permission error that I can't nail down.
I had edited my hosts file to redirect my domain to point at the new server and set up my php scripts and such. Everything was working great.
Then I wanted to share the link to the new server with others so I switched to using the generic cpanel url with the ip address like this:
The site still runs somewhat on this url, in the sense that it runs the right scripts. However, when accessed this way, the files are run as the main apache user (
nobody) instead of running under the user for the account (in the example,
username). This naturally breaks caching that tries to write files, since the folders are not writable by
Is there a good way to adjust the virtual hosts to run under the correct account when accessing the site through the ip address?