You often need to know the username of Apache to assign proper permissions to certain files it will be accessing. To find out:
ps aux | egrep '(apache|httpd)'
You will probably see multiple users. Ignore the root. Go with the other name. It is usually www-data in Ubuntu.