How to allow apache user handle work with directories/files with permissions 755 and 644 on Ubuntu Server 12.04 LTS?

view story

http://serverfault.com – Recently I installed Ubuntu Server 12.04.1 LTS on WMVare Workstation, that runs on Windows. First of all I installed LAMP, but then the problem was encountered. I've did everything as I usually did on Ubuntu Server 10.10. I created a virtual host for my project setup directory with simple mkdir command without sudo. It was located under /home/user_name/public_html/project_name uploaded my project with default permissions(haven't touched them neither on Ubuntu Server 10.10 nor on Ubuntu Server 12.04.1 LTS) Now, when script executed it had to create directories and store files inside, BUT i (HowTos)