A person will often cough up phlegm when viruses, bacteria, or unwanted — possibly cancerous — cells are present in the lungs. Clear or light-colored mucus often does not indicate a serious ...