Install Drupal 7 on your server
Web agency » Digital news » Install Drupal 7 on your server

Install Drupal 7 on your server

Installing Drupal

As you can imagine, the first thing to do is to download the source files. To do this, nothing could be simpler, just go to the Drupal website, in the section Download & Extend (http://drupal.org/project/drupal) and download the latest version (currently 7.12).

dl-2633476
Then unzip the downloaded file inside your FTP. If everything went well, you should see the Drupal installation page.

If you do not have FTP pointing to a domain name, it is quite possible for you to work locally on your machine. To do this, you need to use a web development platform, allowing you to run different scripts locally (without connecting to an external server). One of the best-known Windows platforms is WampServer. Download it and install.

On Wamp Server, the source files are to be pasted in the directory www from the wam folder. Also remember to make several folders if you have different projects.
You can then access your local server at http://localhost.

Keep Standard which will install the most important modules by default then click on Save and Continue.
Keep English And click Save and Continue, we will see later how to add a new language.

When checking the prerequisites, several error messages may appear:

The following error must be resolved before you can continue the installation process:
The Drupal installer requires that you create a settings file as part of the installation process.
Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php.

To correct the problem, copy the file default.settings.php located in the /sites/default/ folder in the same folder and rename it to settings.php. For both files, allow write access.

Also allow write access to the /sites/default/ folder to allow Drupal to create its files folder. In the future, they should be well protected for security reasons.

The next page allows you to configure your database, so indicate your database name as well as your username and password and click on Save and Continue.

WampServer integrates a Web application allowing to manage its databases called PhpMyAdmin. You can find it at http://localhost/phpmyadmin. If your domain name is installed with Apache, it is most certainly PhpMyAdmin which is also used. Create your Drupal database with PhpMyAdmin, it is the name of this database that you must indicate.

If everything went well, the Drupal installation should begin.

install-1706518

The profile installation page allows you to indicate the various information concerning your website such as the name of the site or the e-mail address of this one. Consider indicating a valid email address in order to properly receive the various information sent by Drupal (recovery of the password for example). Then click on Save and Continue.

The installation is complete, to access your site, click on Visit your new site.

Installation and configuration of the Localization update module

Remember above, we did not change the Drupal installation language. Here we are going to kill two birds with one stone since we are going to change the language of the site, but also learn how to install and configure a module.

The module Location Update makes it possible to automatically download the translation updates of the various modules that you could install. Mixed with the Drupal core module (understand here basic installed module) called Local, everything will allow you to change the language of your site, but also to keep an automatic translation, practical, isn't it?

To install a module, first access the admin panel containing the different modules at the address http://votreadresse.fr/admin/modules.

Then click Install new module (this requires that the update module is active). Go to the Drupal site to retrieve the module (http://drupal.org/project/l10n_update). Here, do not download the module directly, simply remember to copy the address of the link corresponding to the download of the module.

dlloca-3322160
modinstallurl-5545776

Then copy this link to the place indicated by Install from a URL then click install. If you are asked for a username and password, simply provide your FTP login information. Then click on Enable newly added modules.

When the installation is complete, you should see in your module panel a new category, named Multilingual and containing our newly uploaded module. The modules are indeed sorted by categories, which facilitates research. To activate the module, click on the box Enabled then Save Configuration.

The module has downloaded the French translations, you should see a box like this appear:

enableloca-2112621

In the language administration (/admin/config/regional/language), click on Add language then select French and click on Add language.
The French language has been added, in the French column, click on DEFAULT then on save configuration. Your website is now in French.

Drupal allows you to define scheduled tasks (also called cron) that run automatically and by default every 3 hours. The Localized Drupal distribution automatically includes this scheduled task, so your site and the modules you install will be updated automatically every 3 hours.

★ ★ ★ ★ ★