You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/websites/cms/managing-web-content-with-drupal-8-beta.md
+32-23Lines changed: 32 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,36 +13,45 @@ published: 'Friday, October 24th, 2014'
13
13
title: Managing Web Content with Drupal 8 Beta
14
14
---
15
15
16
-
[Drupal 8](https://www.drupal.org/drupal-8.0) is the lastest version of the extremely popular [Drupal](https://www.drupal.org/) content management system. The Drupal 8 beta-2 was released on October 15th, and since it's so new, there isn't much documentation on the web. This how-to explains the entire installation process. It demonstrates all of the necessary commands to install Drupal 8 on a Linux server, hosted by a Linode cloud computing system.
16
+
[Drupal 8](https://www.drupal.org/drupal-8.0) is the lastest version of the extremely popular [Drupal](https://www.drupal.org/) content management system. The Drupal 8 beta-2 version was released on October 15th, and since it's so new, there isn't much documentation on the web. This how-to demonstrates all of the necessary steps to install Drupal 8 on your Linode.
17
+
18
+
{: .note }
19
+
>
20
+
>This guide assumes that you are familiar with the __sudo__ prefix or that you are logged into the server as the root user. Top level permissions may be necessary to create the recommended directories or other commands.
21
+
17
22
18
23
##Prerequisites
19
24
20
-
Before installing Drupal, you will need a running Linode, which can be created by following the [Getting Started](/docs/getting-started/) guide. Also, address security concerns with the [Securing Your Server](/docs/securing-your-server) guide. Finally, build a server with a LAMP stack using the [Hosting a Website](/docs/websites/hosting-a-website) guide. Linode also has other CMS guides, including [Content Management System: an Overview](/docs/websites/cms/cms-overview), [Managing Web Content with Drupal 7](/docs/websites/cms/managing-web-content-with-drupal-7), [Managing Web Content with WordPress](/docs/websites/cms/manage-web-content-with-wordpress), and [Managing Web Content with Joomla](/docs/websites/cms/manage-web-content-with-joomla). Since Drupal 8 is so new, if you are not a developer, then you might find more online support for Drupal 7.
25
+
Before installing Drupal, you will need to ensure that the following prerequisites have been met.
26
+
27
+
1. Create a new Linode by following our [Getting Started](/docs/getting-started/) guide.
28
+
2. Address security concerns with the [Securing Your Server](/docs/securing-your-server) guide.
29
+
3. Configure a LAMP stack using the [Hosting a Website](/docs/websites/hosting-a-website) guide.
21
30
22
31
{: .note }
23
-
>
24
-
>This guide assumes that you are familiar with the __sudo__ prefix or that you are logged into the server as the root user. Top level permissions may be necessary to create the recommended directories or other commands.
32
+
>Linode also has other CMS guides, including [Content Management System: an Overview](/docs/websites/cms/cms-overview), [Managing Web Content with Drupal 7](/docs/websites/cms/managing-web-content-with-drupal-7), [Managing Web Content with WordPress](/docs/websites/cms/manage-web-content-with-wordpress), and [Managing Web Content with Joomla](/docs/websites/cms/manage-web-content-with-joomla). Since Drupal 8 is fairly new, if you are not a developer, you may find more online support for Drupal 7.
33
+
25
34
26
35
##Download and Install Drupal 8
27
36
28
-
The Drupal developers actively update their application for security vulnerabilities and other upgrades. Visit the [Drupal download page](http://drupal.org/project/drupal) for the latest Drupal release, a sample release chart is pictured below. Download the latest Drupal 8 version using the listed version numbers. To download the correct version, replace the version numbers in all the following commands and file calls.
37
+
The Drupal developers actively update their application for security vulnerabilities and other upgrades. Visit the [Drupal download page](http://drupal.org/project/drupal) for the latest Drupal release, a sample release chart is pictured below. Download the latest Drupal 8 version using the listed version numbers. To download the correct version, replace the version numbers in all the following commands.
1. If you installed and configured your Apache server as described in our other guides, the publicly accessible DocumentRoot will be in a directory similar to`/var/www/example.com/public_html/`. Change directories to the *non-publically accessible*`/var/www/example.com/` directory, using the following command:
41
+
1. If you installed and configured your Apache server as described in our other guides, the publicly accessible DocumentRoot should be located in`/var/www/example.com/public_html/`. Change directories to the *non-publically accessible*`/var/www/example.com/` directory, using the following command:
33
42
34
-
cd /var/www/example.com
43
+
cd /var/www/example.com
35
44
36
-
2. Enter the following command to download Drupal with 'wget':
45
+
2. Enter the following command to download Drupal with 'wget'. Ensure that the version number matches the version you wish to download:
3.Remember to change the commands above and below to reflect the latest version or the version that you want download and extract. Extract the download with the following command:
49
+
3.Extract the downloaded files with the following command. Replace the version number if necessary:
41
50
42
51
tar -zxvf drupal-8.0.0-beta2.tar.gz
43
-
44
-
4. Now copy this instance of Drupal to a new web accessible directory named `drupal`. And then move the `.htaccess` file to the same directory:
45
-
52
+
53
+
4. Now copy this instance of Drupal to a new web accessible directory named `drupal`. Move the `.htaccess` file to the same directory:
@@ -57,48 +66,48 @@ The Drupal developers actively update their application for security vulnerabili
57
66
58
67
apt-get install php5-gd
59
68
60
-
6. Drupal 8 requires that the Apache2 rewrite module is turned on for naming URLs. This is optional for Drupal 7 and may have already been turned on. Enter the following command to check:
69
+
6. Drupal 8 requires that the Apache2 rewrite module is turned on for naming URLs. This is optional for Drupal 7 and may have already been turned on. Enter the following command to ensure that it has been enabled:
61
70
62
-
a2enmod rewrite
71
+
a2enmod rewrite
63
72
64
-
7.Apache2 prompts you to restart:
73
+
7.Restart Apache to apply your changes:
65
74
66
75
service apache2 restart
67
76
68
77
69
78
##Configure Drupal Settings
70
79
71
-
1. Change the working directory to the `drupal` default folder. Then copy the `default.settings.php` file provided in the Drupal distribution to a `settings.php` file. Finally, change the permission settings so that Drupal can access the settings. Do this by issuing the following commands:
72
-
80
+
1. Change the working directory to the `drupal` default folder. Then copy the `default.settings.php` file provided in the Drupal distribution to a `settings.php` file. Finally, change the permissions on the file so that Drupal can access the settings:
81
+
73
82
cd /var/www/example.com/public_html/drupal/sites/default/
74
83
75
84
cp default.settings.php settings.php
76
85
77
86
chmod 757 settings.php
78
87
79
88
2. The same steps are necessary for the services.yml configuration file. Enter the following commands:
80
-
89
+
81
90
cp default.services.yml services.yml
82
91
83
92
chmod 757 services.yml
84
93
85
-
3. We'll need to create a `drupal/sites/default/files/` directory that's writable by the web server, by changing the group ownership and permissions of the directory to `www-data` or whichever user group your Apache instance runs under:
94
+
3. We'll need to create a `drupal/sites/default/files/` directory that's writable by the web server, and change the group ownership and permissions to match the user group your Apache instance runs under. The default group is `www-data`:
4. Visit `www.example.com/drupal/core/install.php`. Alter the previous URL to reflect your domain, and the actual path to your Drupal files. You will arrive at an iconic Drupal page and if you select "Install Drupal in English," you will enter the installation process.
102
+
4. Visit `www.example.com/drupal/core/install.php`. Alter the previous URL to reflect your domain, and the actual path to your Drupal files. You will arrive at the Drupal install page. Selecting "Install Drupal in English," will start the installation process.
94
103
95
104
{: .note }
96
105
>
97
-
> During the creation of the LAMP stack, you should have created a MySQL database. If you have forgotten the name of that database, log back into MySQL with the `mysql -u root -p` command, and then enter the `show databases;` command.
106
+
> During the creation of the LAMP stack, you should have created a MySQL database. If you have forgotten the name of that database, log back into MySQL with the `mysql -u root -p` command, and then enter the `show databases;` command.
98
107
99
108
5. The installation process is fairly straightforward and asks you to provide information regarding your database, your site, and your administrative users. Follow each step as instructed. When you've completed the installation process you can remove the write access to the `settings.php` file with the following command:
0 commit comments