In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Drupal is an advanced and powerful content management framework built on the PHP scripting language and supports database engines like MySQL. Drupal provides a flexible system that can be used to manage websites of various types and profiles. Drupal provides the necessary tools to create rich, interactive "community" sites, including forums, user blogs, and private messages. Drupal can also provide support for a wide variety of personal publishing projects, as well as podcasts, blogs, and knowledge-based systems, all within a unified platform.
Because the functionality of the system is highly modular, people may even tend to think of Drupal as a content management system rather than a strict content management framework. In addition to the core infrastructure, there are many Drupal modules that allow Drupal site administrators to provide specific functionality to users of their sites without spending resources on custom development. In addition, Drupal has an advanced theme engine that allows a great deal of flexibility to display content in a visual and efficient manner.
precondition
Before starting the Drupal installation, there are few other guides that provide instructions on the necessary prerequisites for installation.
If you are new to Linux system administration, please consider our basic guide to Linux system administration.
Before installing Drupal, please complete our getting started guide to get a complete update and running system.
You will then want to use one of the LAMP guides, or provide a Web site guide for beginners to install a running linux/apach/mysql/PHP stack on your Linode.
If you want to know more about installing Apache or MySQL databases, our guide provides some additional information about these dependencies.
After installing and running these dependencies, we can begin to install the Drupal content management system. Let's assume that you have a working SSH connection to your server and database credentials to access your database server.
The steps required in this article require root permissions. Be sure to run the following steps with the root or sudo prefix. For more information about permissions, please refer to our user and group guides.
Download and install Drupal 7
Drupal software is often updated because bug is patched and security vulnerabilities are discovered and removed. Visit the Drupal download page, find the latest version of Drupal 7, and download the file instead of the file mentioned in the example below. The following is an example release diagram.
1. If you install and configure other guides described in the Apache server, publicly accessible ones similar to / var/www/example.com/public_html/DocumentRoot will be in a directory. You will change the directory to the privately accessible / var/www/ sample .com / directory, using the following command:
one
Cd / var/www/example.com
2. Download Drupal wget
Wget http://ftp.drupal.org/files/projects/drupal-7.32.tar.gz
3. Extract files:
one
Tar-zxvf drupal-7.32.tar.gz
4. Now we can copy the instance of Drupal to a new web accessible directory:
one
Cp-R drupal-7.32/* / var/www/example.com/public_html/drupal/
Move the following files to a new directory:
one
two
three
Mv drupal-7.32/.htaccess / var/ www.vultrkvm.com/public_html/drupal/
Mv drupal-7.32/.gitignore / var/www/example.com/public_html/drupal/
If you want Drupal installed at the root level of your domain, copy the files to the publichtml/ directory, not in the public_html/drupal/ directory.
6. Drupal depends on the graphics library of PHP5, called GD. Install GD using the following command:
one
Apt-get install php5-gd
7. Optional: to name url,Drupal 8, you need to open the Apache2 rewriting module. This is optional for Drupal7. To enable re writing, enter the following command:
one
A2enmod rewrite
8. Apache2 prompts you to restart:
one
Service apache2 restart
Remember to modify the above command to reflect the latest version or version you want to download.
Configure Drupal settin
1. Change the directory to the default folder of Drupal:
one
Cd / var/www/example.com/public_html/drupal/sites/default/
2. Copy the settings.php php file to default.settings
one
Cp default.settings.php settings.php
3. Create a writable web server in the drupal/sites/default/files/ directory by changing the group ownership and the directory of www-data or any user group permissions. Your Apache instance is running:
one
two
three
four
five
Mkdir / var/www/example.com/public_html/drupal/sites/default/files/
Chgrp www-data / var/www/example.com/public_html/drupal/sites/default/files/
Chmod 775 / var/www/example.com/public_html/drupal/sites/default/files/
4. Grant Drupal-- and web servers the ability to read and write settings. Use the settings.php file during installation. Note that after the setup is complete, we will revoke these permissions. Issue the following command in the drupa/sites/default/ directory:
one
Chmod 757 settings.php
5. Now, follow the Drupal installation process by visiting http://www.vultrkvm.com/, and then changing URL to reflect your domain name or IP address and the actual path of the Drupal file. You will arrive at an iconic Drupal page, and if you choose "install Drupal in English", you will go through the installation process.
6. The installation process is quite simple and requires you to provide information about the database, site, and administrative users. Follow the instructions to perform each step. When you complete the installation process, you can remove write access to the settings. Use the php file of the following command:
Chmod 755 / var/www.vultrkvm.com/public_html/drupal/sites/default/settings.php
During the creation of the LAMP stack, you should have created a MySQL database. If you forget the name of the database, use the MySQL-u-root-p command to return to MySQL and enter the show databases; command.
Now you can start using Drupal.
Use Drupal
Because Drupal is a flexible and general-purpose system, it is difficult to recommend any specific set of practices to effective Drupal management. The following guidelines and suggestions may be helpful to your journey:
Drupal sites tend to consume a lot of system resources because of the way the system interacts with the database server. If you encounter this problem, consider tuning your Linode to get more RAM, or running your database on a dedicated database server.
While it may be tempting to use many modules, it is usually prudent to limit your use of contribution modules to those that provide the functionality you need. Close modules that you are not using to reduce the risk of running out of system resources or to expose possible security vulnerabilities.
The Linode and Drupal communities recommend that you avoid development work on production machines. If possible, keep a clone of the production environment on the standby server or on the local machine. This will allow you to test new modules and changes without affecting your site.
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.