The influence of hydrostatic pressure, temperature, and impurity on the electronic and optical properties of spherical core/shell/well/shell (CSWS) nanostructure with parabolic confinement potential is investigated theoretically. The energy levels and wave functions of the structure are calculated by using shooting method within the effective-mass approximation. The numerical results show that the ground state donor binding energy as a function layer thickness very sensitively depends on the magnitude of pressure and temperature. Also, we investigate the probability distributions to understand clearly electronic properties. The obtained results show that the existence of the pressure and temperature has great influence on the electronic and optical properties.