We present a detailed investigation of the electronic properties of CeFeAsO under in-plane chemical (As by P substitution) and hydrostatic pressure by means of in-house and synchrotron Mössbauer spectroscopy. The Fe magnetism is suppressed due to both pressures and no magnetic order was observed above a P-substitution level of 40% or 5.2 GPa hydrostatic pressure. We compared both pressures and found that the isovalent As by P substitution changes the crystallographic and electronic properties differently than hydrostatic pressure.