I found that if the site config has no virtual site, the squirrelmail will only display code instead of run the page. And, if there're various virtual site and the lowest one with php disabled, all other sites will also only display code.
Thats normal with the way linux distributions are installing their packages. It is recommended that you install squirrelmail into a separate vhost that you created in ispconfig.