We present a detailed investigation of the electronic properties of CeFeAsO under chemical (As by P substitution) and hydrostatic pressure by means of in-house and synchrotron Mossbauer 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 change the crystallographic and electronic properties differently than hydrostatic pressure.