Change the Apache user in httpd.conf on MAMP?
AFAIK MAMP is not intended to run Apache/MySQL as www/mysql. However MAMP Pro allows you to run Apache and MySQL either as your user or as www/mysql. This can be done by selecting the respective users in Preferences -> General.

MAMP Pro contains the free MAMP and a free 14-day trial of MAMP Pro.