Installing CarPlay is quite simple. Make sure you have the latest CarPlay update on your phone by installing the latest IOS update.
Then to set up CarPlay, connect your iPhone to your car's USB port using an Apple-certified Lightning cable. Or via wireless CarPlay. Once connected, the CarPlay interface should appear on your car's infotainment screen.