If you are new to aperture photometry then you should read the section on techniques of aperture photometry in appendix B. You should also read the Starlink Cookbook “CCD Photometric Calibration” (SC/6). If you have any questions beyond what these offer (which are elementary texts) then you should get friendly with a local expert or be prepared to delve into the literature.