We report a comprehensive neutron-scattering study of the evolution of the magnetic excitations in La2-xSrxCuO4 for 0 less-than-or-equal-to x less-than-or-equal-to 0.04. We first present accurate measurements of the magnetic correlation length and the sublattice magnetization of a carrier-free La2CuO4 crystal and analyze these in the context of recent theoretical predictions. We then systematically investigate the influence of different dopants on the magnetism: Our measurements indicate that static vacancies in the La2Cu1-yZnyO4 system affect the magnetic correlations in a similar manner as electrons in Pr2-xCexCuO4. The magnetic correlation length is much more rapidly suppressed as a function of x in La2-xSrxCuO4, and for x less-than-or-equal-to 0.04 we find that it obeys the empirical relation xi-1(x,T)=xi-1(x,0)+xi-1(0,T), where xi(0,T) is the measured correlation length of the carrier-free sample. We also report an extensive set of measurements of the dynamical magnetic response function of a crystal of composition La1.96Sr0.04CuO4 for excitation energies 0.75 less-than-or-equal-to omega less-than-or-equal-to 45 meV and temperatures 1.5 less-than-or-equal-to T less-than-or-equal-to 500 K. The dc conductivity of this crystal exhibits three different regimes: metallic for T greater-than-or-equal-to 100 K, weakly localized for 100 greater-than-or-equal-to T greater-than-or-equal-to 10 K, and strongly localized below approximately 1 K. Our neutron measurements show that the generalized susceptibility of this sample follows a surprisingly simple scaling function in the variable omega/T. This observation allows us to relate our data to a variety of normal-state properties of the layered copper oxides, in particular the dc and ac conductivities. Finally, at temperatures below approximately 20 K a "central peak" with a characteristic energy scale of less than 0.1 meV becomes prominent. Its relation to the localization of the charge carriers at low temperatures remains speculative.