I have a subdomain of my primary domain with a php script (with permissions of 666) which can successfully call fopen($filename, "w") to create or overwrite an existing file.
I've just created a new subdomain of an addon domain, and a similar script (also with permissions of 666 cannot call fopen($filename, "w") because it gets the following error:
Warning: fopen(/home/daliblum/public_html/task/test5.xml): failed to open stream: Permission denied in /home/daliblum/public_html/task/tasks.php on line 283
regardless of whether the file already exists or not.
What might I be missing? (I don't know to do anything beyond give the php file write permission.)
Details: primary domain is "daliblume", with subdomain of "rps.daliblume". And the addon domain is "dlma" with subdomain of "task.dlma"