Catalysis of the reaction: 4-hydroxybenzoate + H+ + NADPH + O2 = 3,4-dihydroxybenzoate + H2O + NADP+.