Sometimes you are unable to view your localhost/projectName, it happens when you make a fresh install PHP, Apache2 on Ubuntu (14.04). Even you can not visit further like controllers etc. I have an experience on it.

And also its say if you visit furthers controllers that The request URL /projectName/ControllerNames was not found on this server. Apache/2.x.x (Ubuntu) Server at localhost Port 80.... {details}