Download Wordpress from Wordpress.org and set up a mySQL database with a user and password. After you unzip the file, upload it and rename the folder on your localhost located on the Linux PC or a web hosting account. Next, open the folder where the installation is, such as localhost/wordpress or https://example.com. Click ‘Run the installation’ and add your database name, username and password. The default prefix is wp_, but you can make it anything you like.
On a home server you may need to edit wp-config-sample.php and add the database name, username and password, and then save it as
wp-config.php if the server has trouble writing the file. Towards the end of the installation, add a site title, username and password for the admin area. We don’t want to confuse this username and password with the database setup because it has nothing to do with that. These credentials are so that you can log in to the site and control the content, theme and other features using a browser. Once you enter these characters and select Install Wordpress, you’ll be taken to the admin login to enter the username and password to log in.