Installing Drupal on Linux

preview_player
Показать описание
#Drupal #Linux #InstallGuide

   01. Log into the Debian device
   02. Run the following commands in a terminal:
         # update repositories and install any available software updates
         sudo apt update
         sudo apt upgrade -y
         # install Apache HTTPD and MySQL
         sudo apt-get install apache2 mariadb-server mariadb-client curl
         # install PHP components
         sudo apt install php php-mysql php-cli php-json php-opcache php-gd php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip
         # configure the MySQL database
         sudo su
         mysql_secure_installation
   03. Press Enter to login as root
   04. Type Y and press Enter to set a root password, type the password twice to confirm
   05. Type Y and press Enter to remove anonymous users
   06. Type Y and press Enter to disallow root login remotely
   07. Type Y and press Enter to remove the test database
   08. Type Y and press Enter to reload privilege tables
   09. Run the following command to login into MySQL:
         mysql -u root -p
   10. Authenticate with the root password set earlier
   11. Run the following commands to create the Drupal database and database user
         CREATE DATABASE drupal DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
         FLUSH PRIVILEGES;
         EXIT;
         exit
   12. Continue with the following commands to download and extract Drupal in the Apache webroot
         # download latest drupal version
         # rename drupal folder
         sudo mv /var/www/drupal* /var/www/drupal
         Alias /drupal "/var/www/drupal/"
         ≪Directory /var/www/drupal/≫
             AllowOverride All
         ≪/Directory≫
   15. Continue with the following commands to enable the site and restart Apache:
         # enable the Drupal site and required PHP modules
         sudo a2ensite drupal
         sudo a2enmod rewrite
         # set the owner of the new drupal directory to www-data
         sudo chown -R www-data:www-data /var/www/drupal
         # restart apache2 service
         sudo systemctl restart apache2
   17. The Drupal setup screen should be displayed
   18. Select a language ≫ Click Save and continue
   19. Select the Standard profile ≫ Click Save and continue
   20. Enter the database name, username and password ≫ Click Save and continue
   21. Create a site title and Drupal login ≫ Click Install Drupal
   22. When the installation completes, enter a site name, email address, username and password ≫ Click Save and continue
   23. Welcome to your very own, self-hosted Drupal installation
 

### Connect with me and others ###
Рекомендации по теме
Комментарии
Автор

OMG A tutorial that actually shows how to do something with-out annoying music and in clear English. Thank you very much!

barackuse
Автор

Can Drupal 10 be installed in RHEL 8 or 9

sujeshabose
Автор

I get an error message when entering the database credentials on the localhost page. Is the Database password the same password that you use for the root or is it something different? I've tried both but it doesn't grant me access. Great video otherwise!

charliewickham