apace doesnt run as nobody it runs as 'apache' thats the problem
Ok, it's not run by user 'nobody' but 'apache'. Allow the user apache to be able to write to those directories. In fact, just make the directories writeable by group 'apache'. The concept is the same. If a process is ran by a different user, you just have to set permissions accordingly for that user.
btw can chmod and chown be executed by apache as system commands when running scripts