Entanglement purification is an important method to guarantee the fidelity of long‐distance quantum communication. Here, a general entanglement purification protocol (EPP) for mixed state with bit‐flip error and phase‐flip error is proposed, resorting to unilateral operations and a controlled‐phase‐flip (CPF) gate. The CPF gate is working with a high fidelity under balance condition of quantum dot embedded in a double‐sided optical cavity. This general EPP scheme can purify the mixed state with both bit‐flip error and phase‐flip error to a high fidelity entangled state relatively fast in some regimes, owing to the unilateral operations and high‐fidelity CPF gate, which can largely decrease the resource consumption. This general EPP provides a convenient way for increasing the entanglement of different quantum systems, which has great potential for guaranteeing the fidelity of long‐distance quantum communication in the future.