After a lot of problems I tried building my own LAMP server, I have NGINX on it, PHP 5.4, MySQL (as I could not get mariadb to work no matter the guide) and it's running Raspbian Wheezy.
Anyway, I followed the instructions here: How can I install PHP 5.6 (instead of 5.4)?
but replaced everything with the latest 7 stable version. After the xm12lib
error was corrected I had no other issues. It said it installed successfully, but on my phpinfo page I'm still seeing the original 5.4 release. Any idea how to correct?