moving var/www declaration to main class