How to install Drupal – Drupal CMS installation

Installation and configuration of Drupal CMS

Installation

Upload the files to ftp and set the write rights for the ./sites/default/settings.php file. This can be done with the chmod 777 /sites/default/settings.php command if you have access to the shella or set it using TotalCommander. Once you have done this, you can start the installation process. Go to www.domena.com/install.php where the domain.com is our web address.

The installation of a Drupal is as follows:

Description of fields :

Select the type of database (mysql by default).
Enter the name of the database here.
Enter the username of the database here.
Enter the password for the database user here.

The Advanced options tab is used to set custom connection settings and configuration of database prefixes:

Enter the ip or host url of the database here.
Enter the port on which the database listens here.
Enter the table prefix here. This is very useful when you want to have several scripts installed in one database.

If you have completed all fields with * you can click Save settings.

The Drupal installation has been completed:

Now we were informed that the process of installing the cms system has been completed. However, it still asks us to change the permissions of settings.php file

All necessary changes to ./sites/default/settings.php have been made, so you should now remove write permissions to this file. Failure to remove write permissions to this file is a security risk.

We change its chmods to 755 ( chmod 755 /sites/default/settings.php ).

Creating an administrator account

When we finished changing the clouds. We can now click on the link to your new site to view our site.

Now it’s time to create an administrator account.

Click on the link to create the first account

Choose the login and email for your root account

Description of fields :

1.Select the username that you want to be the site administrator.
2.Here we enter the email to which the messages from the service are to be sent.

Once I have selected the Submit button, click on it.

3.Setting the code, signature and time zone

Description of fields :

1.Enter here the password you want to have for the administrator account.
2.Enter here the confirmation of the password The same as above.
3. set the status of the account to Active, when we set Blocked account will be blocked and you will not be able to use it!
4.Enter here what you want! It doesn’t matter what the website looks like and so on.
5. select a time zone

Once you have typed out the fields, click the Submit button.

Initial configuration of the Drupal-based website

It’s time to prepare a website for users. Click on the link in the menu (Administration) and we see such information:

Click on the link status report thanks to which we can see where we have an incorrect configuration of the system.

Here is an example of such a report:

Description of fields:

1.If we have not changed the access rights to the ./sites/default/settings.php file, the system will display us. If we do not change the access rights to this file everyone will be able to enter their own values, which may permanently damage the contact with the database.

2.Running the cron.php script updates the values on the page. Optionally, it should be enabled every 1-2 hours. It is recommended to add it to CronJobs on the server, but if you do not have access to this option you can do it manually by clicking on the link run cron manually.

3. it is not possible to see any page size if there are errors in this line. Only the installation script works.

4.The problem is red, to fix it just click on the link below it will create a folder and add permissions to it.

5.If this line is in red, the page will not be able to display and create graphics (the layout will be displayed normally, but the graphics that will be added by the script will not work.). The user cannot fix this problem himself. It is recommended to contact the administrator of the hosting service and ask for the installation of the php GD2 language component on the server.

6. Here, the displayed version of the database, if the background colour is not green, means that we are using a version of the database that is incompatible with the script. It is recommended that you contact your hosting administrator to update the MySQL component.

7.This is where the php version is displayed, if the background color is not green, it means that we are using an incompatible version of the php language. It is recommended to contact the hosting site administrator in order to update the PHP component.

8.The name of the Unicode library, which is part of the php language, is displayed here. There are very few errors in this library.

9.Information about the server. The only web server checked with Drupal is Apache httpd. If the background is displayed in red it means that the web server is very outdated. It is recommended to update it, but only the administrator of the hosting service can do it.

Configuration of a Drupal-based website

Now we will take care of choosing the title, description and other important things on our website. Click on the link Administration in the menu. Such a thing appears to our eyes:

Description of fields:

1.Here we can choose the skin that will be used on our website. It is possible to download skins from the official Drupal website.

2.This option cleans the url addresses. By default it looks like this www.cms12.com/?q=value when you turn on the option – www,cms12.com/value/

3.Here we have very interesting functions for time formatting. We can choose which day of the week is to be considered the first, shortened format, time zones and many others.

4.Here we can select our own error pages. We have error 403, i.e. rejected access and error 404, i.e. the page was not found.

5.Here we specify the path to which Drupal will save files uploaded by administrators/users/etc. We’ve probably configured it by doing paragraph 4 from step 4 (Initial page configuration).

6.Here we configure the appearance of the images. If we don’t have the GD2 component installed on the server, we will only see this information: “The built-in GD image toolkit requires that the GD module for PHP be installed and configured properly. For more information see PHP’s image documentation.

7. Here we configure the input formats, i.e. we specify what capabilities the user writing an article for the website will have. It is divided into three categories: Filtered HTML – access to several html tags. It is recommended to make this possibility of editing available to users, because it blocks all possibilities of entering malicious code, so called XSS attacks. Another option is PHP code – access to all php language options. This option should be available only to the administrator! It allows you to enter “SQL Injection” type code, which can erase all data from the database! The last option is Full HTML – access to all html tags. It is recommended to make this option available only to administrators due to the possibility of XSS attack.

8.Here we configure cache and css compression on the page. I do not recommend to use these options, because they significantly extend the time of loading the page. It is true that they reduce the pressure on the server and file transfer. Use only when we have very poor hosting. Personally, I do not use this option.

9.Here we configure the page settings. Detailed description I will present a few lines further.

10.Here we enter the message that is to be displayed to the user when the page is turned off.

Information about the Drupal-based website

Description of fields:

1. Enter here the name to be displayed in the header of your browser and next to the website logo, e.g. “cms12.com – Choose your cms!

2. Here you enter the email address of the website administrator. It is recommended to enter a valid email address in order to facilitate contact with the administration.

3. Enter the slogan of the website here. The slogan is only displayed if there are no skins, e.g. “Choose your cms!

4. Enter here the mission of our site, e.g. “The site will help you choose a script to launch the site (e.g. forum). We will try to help you choose a hosting offer under the cms script. We will describe exactly each script, so that the user knows the advantages and disadvantages of scripts, which he may use. We invite you to familiarize yourself with the content of the website.

5.Here we write a message in the footer of the website, e.g. “Copyright 2007 by cms12.com”.

6. Here we enter the name of an anonymous user.

7. Here we enter the url to the main page. I recommend that you leave it unchanged.

Once you have filled in all the fields you need, click Save Settings.

Finishing

We have just made the basic Drupal configuration.

Leave a Reply

Your email address will not be published. Required fields are marked *