Php scripts and how?

hello to everyone i want to run some scripts via my synology and access to them via the internet,they need php and my sql how easy is that to be and how?thanks in advanve