I am newbie on PHP. Here is my situation. I write my code in vim and put it under /var/www/ then I can use
localhost/*.php
You can check the log file output by PHP. A good way to see your configuration is to use phpinfo().
Also you can set error_reporting() so you can see the error message instead of a white page.