In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to install and configure Drupal8". In daily operation, I believe many people have doubts about how to install and configure Drupal8. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "how to install and configure Drupal8". Next, please follow the editor to study!
Preparatory work
1. Familiarize yourself with our getting started guide and complete the steps to set your Linode hostname and time zone.
2. This guide will use sudo as much as possible. Complete the section of our guide to protecting your server to create a standard user account, enhance SSH access, remove unnecessary network services, and create firewall rules for your web server; you may need to create additional firewall exceptions for your specific application.
3. Update your system:
Sudo apt-get update & & sudo apt-get upgrade
4. Install and configure a LAMP stack You can do this in two ways:
* refer to our hosted website guide to manually configure each component.
* deploy using our LAMP stack script.
Download and prepare Drupal 8
1. Refer to the download page of Drupal for the exact URL of the Drupal 8 core tarball.
If you install and configure the Apache server using one of the above methods, the public DocumentRoot should be located at / var/www/html/example.com/public_html/. Change to this directory and use wget to download Drupal 8:
one
two
Cd / var/www/html/ laodouzi.com/
Sudo wget http://ftp.drupal.org/files/projects/drupal-8.0.5.tar.gz
Make sure that the version number matches the Drupal 8 version you want to download.
2. Extract the contents of the downloaded tarball into the document root of Apache:
one
Sudo tar-zxvf drupal-8.*.tar.gz-- strip-components=1-C public_html
3. Drupal relies on a PHP graphics library called GD. Install GD:
one
Sudo apt-get install php5-gd
4. When running the first startup configuration, the settings.php and services.yml files for Drupal 8 are configured. You must create these files from the default template and modify their permissions so that Drupal can write to them.
one
two
three
Cd / var/www/html/example.com/public_html/sites/default
Sudo cp default.settings.php settings.php & & sudo cp default.services.yml services.yml
Sudo chmod 666 {services.yml,settings.php}
5. Execute the trusted host name, and the user will visit your site.
/ var/www/html/example.com/public_html/sites/default/settings.php
one
two
three
four
$settings ['trusted_host_patterns'] = array (
'^ www\ .example\ .com $'
'^ example\ .com $'
);
Configure Apache 2.4
1. Drupal 8 enables clean url by default, so the rewriting module of Apache must also be enabled:
one
Sudo a2enmod rewrite
2. Then specify the rewrite condition for DocumentRoot in the configuration file of Apache.
/ etc/apache2/apache2.conf
one
two
three
four
five
six
seven
eight
nine
ten
eleven
OptionsIndexesFollowSymLinks
AllowOverrideAll
Requireallgranted
RewriteEngineon
RewriteBase /
RewriteCond% {REQUEST_FILENAME}!-f
RewriteCond% {REQUEST_FILENAME}!-d
RewriteCond% {REQUEST_URI}! = / favicon.ico
RewriteRule ^ index.php [L]
3. Change the ownership of the document root of Apache from the root user of the system to Apache. This allows you to install modules and themes and update Drupal, all of which do not require prompting for FTP credentials.
one
Sudo chown-R www-data / var/www/html/example.com
Restart Apache so that all changes can be applied. If you are using a Linux distribution that uses systemd (CentOS 7, Debian 8, Fedora, Ubuntu 15.10 +):
one
Sudo systemctl restart apache2
If your init system is SystemV or Upstart (CentOS 6, Debian 7, Ubuntu 14.04):
one
Sudo service apache2 restart
Drupal start
1. Access your Linode domain name or IP address in a web browser. This will show you the first step in configuring web for Drupal 8. Choose your language and move on to the next page.
2. Choose whether you need a standard or minimum installation configuration file.
3. Use the database name, user name and password to complete the database configuration, and set up the LAMP stack using MySQL or MariaDB database.
If you forget the name of the database, log in to MySQL with MySQL-u-root-p and enter: show databases
4. After Drupal 8 installs the site, you will see a site configuration page where you must create administrative users for your site. Do not use the same password as the database.
Next, you will be taken to the administrative dashboard, which will show that Drupal 8 has been successfully installed.
Now that Drupal 8 has finished writing to settings.php and services.yaml, you can restore their default permissions:
one
Sudo chmod 644 / var/ https://laodouzi.com/public_html/sites/default/{settings.php,services.yml}
At this point, the study on "how to install and configure Drupal8" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.