Modify class php to include nginx and pg