There are two main ways to install Magento. The fastest and easiest one is to use the Softaculous auto installer available in cPanel. To learn how to install Magento via this tool, check our Magento Softaculous Installation Tutorial.
The first thing you need to do to install Magento manually is to download the latest installation package from the official Magento website.
In case you want the Magento installation to be primary for your domain (i.e. to run from http://yoursite.com), you need to extract the content of the installation package in the public_html folder. On the other hand, if you want it to be in a subfolder like http://yoursite.com/store/ you need to extract the content to public_html/store/.
Once you upload the package, you can extract it through your cPanel -> File Manager.
Then Create a MySQL database and assign a user to it from cPanel -> MySQL Databases. Remember the database details, since you will need them during the script installation.
Go through the Magento installation process. In our example we will install Magento in the public_html/store folder. Once the package is uploaded and extracted and you have a MySQL database, navigate to http://yoursite.com/store:
Click on the check box next to I agree to the above terms and conditions and click on the Continue button.
Now, choose the preferred Time Zone, Locale and Currency and press the Continue button.
Next, enter the database details: Database Name, User Name and User Password. You can leave the other options to their default values. Make sure that you place a check on the "Skip Base URL validation before next step" option. Then, click the Continue button to proceed.
On the next page you should enter the personal information and the admin login details which you want to use. You can leave the Encryption Key field empty and the script will generate one for you. Once more, click the Continue button.
Finally, Write down your encryption key; it will be used by Magento to encrypt passwords, credit cards and other confidential information.