Is there a way to automate bitcoin payments for a website?

Figures: Minsc

I run a website hosted on freebsd and well right now nobody visits it ever and so I can totally change it. I am wanting to change it to allow people to pay for services from the website exclusively through bitcoins. Now I see bitcoin has some linux program but I’m not sure that’s compatible with FreeBSD or not. I also don’t know how I can integrate bitcoin into a website to automatically take the bitcoin payments so they show up immediately. I’d really like them to work so my website immediately recognizes the payment coming in.