I thought I had permissions correctly set for the directories in question, but I went back and did chmod 777 and voila.
HOWEVER...
What I was REALLY trying to do was to rsync database files stored in /var/lib/mysql. This, of course is way above the apache directory level. And this fails.
I have tried making a UNIX script to do this, and then using exec to run the script. The script outputs a string that shows it has run, but the files have not been rsynced.
I went through and chmod 777'd all the way down the directory tree, and still have had no luck.
At this point, I don't get it.
As root I have tried to su apache (as the whoami response to myscript says 'apache'). However the response is:
su apache
This account is currently not available.
Huh??
Linux idiot: Moi.
Nemo