Today we are going to explain how to install WordPress on your Local machine and on Server. This might look quite simple for the ones who had already done but this information will be precious to the ones who are just the beginners and want to get started with WP.
Here, are the list of steps you need to do to Install WordPress:
- First and foremost you need to ensure your web host have the minimum requirements to run WordPress. For those who don’t have idea what are the requirements, please click here, to check out more details on the WP server requirements.
- Download the latest version of WordPress. WordPress is free and can be downloaded from this URL: http://WordPress.org/download/
- When you download, you will get a zip file, just extract/unzip the zip file into any folder inside wamp/www/foldername, if you are using wamp or inside htdocs/foldername, if you are using xampp. This foldername is the name which you gonna access it on browser for the local system/localhost. On server you just need to extract those files inside public_html directory or www directory on some hosts.
- Create a database on your web server.
- Now, check the folder where you have extracted the zipped file. You will find a filename wp-config-sample.php. Rename it to wp-config.php.
- Open wp-config.php in a text editor and fill in your database details.
For Database information you just need to provide following informations:
The name of the database you created
Database Username. User must have permission to modify and access database
usually localhost, but not always.
- Generate security keys. You don’t have to remember the keys, just make them long, random and complicated — or better yet, use the the online generator. You can change these at any point in time to invalidate all existing cookies. This does mean that all users will have to login again.
A secret key makes your site harder to hack and access harder to crack by adding random elements to the password.
- Another most important thing you might want to change is table prefix. You will find this line.
$table_prefix = ‘wp_’;
Just change ‘wp_’ to something else. This will make our table prefix different from WP default and will add some security as well.
- Now, Run the WordPress installation script by accessing the http://localhost/foldername/wp-admin/install.php for local computer. For Server you can just access the http://domainname.com/wp-admin/install.php or write subfolder name if you have uploaded the file on subfolder name.
That’s it fill in the mentioned credentials and we are done. WordPress is installed and ready to use :).