Command to run after making changes to a domain?

I’ve tried different forms of commands but nothing seems to happen;
chown apache:apache /home/NEWDOMAIN/public_html/tmp

tmp is still owned by the domains user.

I tried /usr/bin/sh /var/bin/
no error, no change.

Are you saying that the files inside tmp are still owned by the domain user? you could try chown -R /home/domain/public_html/tmp to change ownership recursively.

Why are you trying to change such ownership from within the domain’s public_html?

I’m just trying to get the chown command to run, if it runs then ll /home/DOMAINNAME/public_html/tmp would show the /tmp subdirectory with user apache as owner but it doesn’t so I’d have to guess that the command is not running…