Instructables user dbrad5683 has written a tutorial that shows you how to install PHP, Apache, MySQL and WordPress so that you can host your own website on the Pi. It’s pretty straightforward. I wouldn’t personally use Apache or MySQL as they’re a bit heavy for the Pi, but I guess on a Pi 2 it would be okay. For older Pis, something lighter like lighttpd and SQLlite might be better. Read the Instructable here.