This could be a urinary tract infection, prostate infection, due to trauma or injury to the site or even kidney stones. He needs to get a urine examination done – to rule out a urinary tract infection. You would probably need an antibiotic course. Till then drink plenty of water, avoid tea, coffee, alcohol and smoking. Maintain good personal hygiene and wear loose comfortable clothes. Also, avoid sexual intercourse or any sexual activities till he sees a doctor. Wash the sites frequently. If his symptoms still persist, ask to see a urologist specifically. Regards.