Open iWeb, and open the website project you wish to upload.
Click the name of the website in the left-hand project panel. The publishing information appears in the main iWeb window.
Select "FTP Server" from the drop-down menu next to "Publish to:".
Enter the FTP address associated with your cPanel account in the "Server Address" text box. This varies from installation to installation, but typically appears in the "Files" section of your main cPanel administration screen, in the "FTP Accounts" section.
Add your cPanel username and password in the corresponding text boxes.
Enter the directory to upload the files in the "Directory/Path" text box, if you need the files to be in a particular directory. For your primary domain, using your cPanel logins for FTP, the correct path is ‘/public_html’ without quotes. For an Addon Domain, it will probably be ‘/public_html/addondomain.com’
Enter your website's URL in the "URL" text box.
Select Protocol: FTP
FTP Port: 21
Step 9Click on "File" in the main menu, then "Publish Entire Site." This uploads your iWeb files to your cPanel website.