My question involves an eviction in the state of: California

I am almost 2 months behind on my rent and do not see any way to catch up. I am thinking I should make an agreement with my landlord for a payment plan for the amount I owe and then get another place to live that I can afford. I am afraid though that I will not be able to move because of being behind on rent here. I don't want to end up homeless or get evicted. Anyone have any advice?