Well, you do it through one click softaculous installer, if you are having cPanel control panel.
Or you can install it manually on your sub-folder. Kindly check and follow these steps mentioned in article: https://codex.wordpress.org/Installing_WordPress