if you have cpanel the best way is:
to go to whm --> then on your home click software --> click easyapache --> were it says "Begin by selecting a profile to load:" click basic --> then click start customizing based on profile --> select apache 2.0 and click next step --> Check which php version you want to use (pref php 5) and click next step --> click 5.2.8 and then next step --> now you should be on the Short Options List. While you are here i would advise turning zend and ioncube on and click EXHAUSTIVE OPTIONS LIST --> now that your on the Exhaustive Options List scroll down to php 5.2.8 and check mark curl. --> now scroll all the way down to the bottom and click save and build. now let whm build php and apache!. Grab a coffee you deserve it!