In this paper, model-based closed-loop algorithms are derived for distributed control of the inverse of the safety factor profile and the plasma pressure parameter β of the TCV tokamak. The simultaneous control of the two plasma quantities is performed by combining two different control methods. The control design of the plasma safety factor is based on an infinite-dimensional setting using Lyapunov analysis for partial differential equations, while the control of the plasma pressure parameter is designed using control techniques for single-input and single-output systems. The performance and robustness of the proposed controller is analyzed in simulations using the fast plasma transport simulator RAPTOR. The control is then implemented and tested in experiments in TCV L-mode discharges using the RAPTOR model predicted estimates for the q-profile. The distributed control in TCV is performed using one co-current and one counter-current electron cyclotron heating actuation.