How to manually restore a iTunes and iPhoto Library?
Your iPhoto library (by default) is located in ~/Pictures as a package (.photolibrary).
Your iTunes library (by default) is located in ~/Music as a folder.

Copying the entire library will copy all the data (unless you are using referenced media). Your app settings are located in ~/Library/Preferences.