In this part we will install wordpress on a local environment (after installing an Apache server on the computer), same steps if you want to install it on a dedicated server at a hosting company, which would allow you to put your site online by managing your single server. If you choose to create your #blog on the official website of WordPress, all you have to do is sign up, and everything will be installed automatically.
Before we continue, we have to create the database to ensure that WordPress can store specific information to our site. For this, we need to access the phpMyAdmin interface at http: // localhost / phpmyadmin or http: // localhost / MAMP / phpmyadmin if you use MAMP. Log in with root login and password blank (if that does not work, the password is probably “root”) in order to reach on the database management interface, Click on the top of the page in the “Database” tab, then select a database name (eg “WordPress”) :
Sources of WordPress can be recovered on wordpress.org directly from the home page. You retrieve a .zip file (or .tar.gz) containing a folder named “wordpress”, decompress it in the root directory of your web server.
- C: / wamp / www under windows with WAMP
- / var / www on Ubuntu / Debian (but / var / www / html from Ubuntu 14.04)
- / Users / [name] / Sites with MAMP
Once the folder is in place, we can go to http: // localhost / wordpress to move to the next step.
Setting up the Installation
If you go directly to the URL of your site, you get an error page stating that WordPress needs a wp-config.##php file to run :
Here, you can either click on the button to automatically create a configuration file by completing the information of your database, or create this file manually. In the first case it’s required that your web server has write access to the root of your site to generate the file.
If you follow the installation steps proposed by WordPress, simply inform the login information to your database. If you have not made any particular modification, the login will be root again with no password (leave blank).
Once the data is entered correctly, WordPress will create for you the configuration file and the necessary tables in the database.
If the connection information is correct (as in the figure below), you should be able to proceed to finalize the installation.
Create wp-config.php manually
It is also possible to create the configuration file manually based on the wp-config-sample.php located in the root of your installation. Simply copy the file by renaming the wp-config.php and edit the connection information within the file.
Whatever the method you chose to install WordPress, any subsequent modification of the connection information to the database should be edited in the wp-config.php file.
Now, you can choose a title for your site, set your username, password and email. Confirm. Your site is ready to receive its first content (see figure below)!
The administration interface
You can access the admin interface by the URL http: // localhost / wordpress / wp-admin, identifying with the name and password provided during the installation phase (see the following figure) .
Before discovering all the features offered by your CMS, it is good to first understand its interface.
The menu is divided into three section:
- the dashboard;
- Site settings.
The dashboard is a page with general information on the entire site, We can find statistics, news feed on WordPress, the recent comments list, Etc :
The next section concerns editing of content such as pages, sections, media and comments. Here you can add, delete or edit your site content and moderate comments. It is the most used part to produce content on the site.
Finally, the bottom of the menu gives access to the settings, such as choice of your theme and plugins or user management. It is also possible to manage the operation of some features of the website in the “Settings” section.
If you later decide to install plugins (the modules providing additional functionality to the site), you will be able to add information on the dashboard, such as:
- statistical data on your visitors;
- subscribers number to your newsletter;
- creating new menus in the administration to provide access to new pages;