last code for the 3 scripts for a nginx+wordpress+php stage and production site