Due to the discrete and non-homogeneous of similar materials and the inability to realize large-size and original scale modeling, it is difficult to restore the structure and stress state of underground coal and rock mass in similar simulation tests. To solve this problem, a lightweight and suitable for large-scale modeling similar material, rock-like porous material has been developed. The quasi-static uniaxial compression experiment was carried out by using the large tonnage multi-module electronic control test system. And the influencing factors of controllable mechanical behavior of rock-like porous materials were studied. The results showed that, under uniaxial compression conditions, the material stress-strain curve exhibits three phases: elastic stage, failure stage, and platform stage. The uniaxial compressive strength, elasticity modulus, stress drop, and softening modulus of rock-like porous materials basically increase with the increase of density. The stress after peak strength changes from a slow decrease to a "stepped" or even "cliff like" downward trend. Polypropylene fibers have the effect of enhancing the uniaxial compressive strength, elasticity modulus, stress drop, softening modulus, shear deformation, and residual strength stability of rock-like porous materials. The rock-like porous material has a critical loading velocity, and it increases with density. At the critical loading velocity, the material shows obvious shear failure, and the shear inclination angle is the largest, and so is the uniaxial compressive strength. Through the experimental research, the influence laws of density, polypropylene fiber, and loading velocity on the failure mode, mechanical parameters, and mechanical behavior of the material are clarified, and the quantitative relationship between density and each mechanical parameter is obtained. The research is helpful to realize the accurate control of mechanical behavior of rock-like porous materials and further inverts the deformation and failure mechanism of underground coal and rock structures through indoor similar simulation tests.