Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the meaning of drupal in Linux server

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces what is the meaning of drupal in Linux server, the content is very detailed, interested friends can refer to it, hope to be helpful to you.

Drupal

Drupal provides users with a variety of tools to manage websites. It can help users get started and set up their own websites.

1. Download drupal software (https://www.drupal.org/project/drupal/releases/7.15) and XOOPS Chinese package (http://drupalchina.cn/download/)

2. Create your own database for drupal, which we call "drupal".

3. Extract the drupal installation package to the root directory of the apache web page "/ var/www/html/", and put the Chinese package in drupal.

[root@localhost html] # cp / wj/drupal-7.59.tar / var/www/html/ copy the zip file

[root@localhost html] # tar-xvf drupal-7.59.tar / / decompress

[root@localhost html] # mv drupal-7.59 drupal / / repeat command, which makes it easy to open from the browser

[root@localhost html] # cp / wj/drupal-7.59.zh-hans-po drupal/profiles/standard/translations/ copy the Chinese package to the designated place

4. Installation. Enter "127.0.0.1/drupal" in the browser to enter the installation interface

1) choose a normal installation

2) choose the language. If you do not copy the Sinicization package, you cannot choose Chinese.

3) there are several mistakes in this step.

3-1) if a "php extension" error occurs, install the php-xml package

3-2) File system error. We need to create the specified file in the drupal directory and set the permission to 777

[root@localhost html] # cd drupal

[root@localhost drupal] # mkdir sites/default/files

[root@localhost drupal] # chmod 777 sites/default/files/

3-3) configuration file error. Users can install the above error reminder, make a copy of default.settings.php, and then modify permission 777

[root@localhost drupal] # cp sites/default/default.settings.php sites/default/settings.php

[root@localhost drupal] # chmod 777 sites/default/settings.php

4) set the database. We created this database at the beginning. If you don't know how to use mysql yet, you can try to create it with phpMyAdmin.

5) installing

6) set site information, including mailbox, administrator account, password, etc.

7) if the installation is successful, you can access it by typing "127.0.0.1/drupal" in the browser

5. Status report. Log in to drupal and select "report"-> "status report". Here you can see that the upload progress is not available yet, and you need to install PECL. In addition, mysql does not support 4-byte utf-8, we need to enable this feature.

6. Install PECL. You need to install some dependent software php-devel and php-pear before you can install PECL

[root@localhost ~] # yum install-y php-devel php-pecl php-pear

[root@localhost ~] # pecl install uploadprogress

Build process completed successfully

Installing'/ usr/lib/php/modules/uploadprogress.so'

Install ok: channel://pecl.php.net/uploadprogress-1.0.3.1

Configuration option "php_ini" is not set to php.ini location

You should add "extension=uploadprogress.so" to php.ini

7. Modify php configuration file php.ini

[root@localhost ~] # gedit / etc/php.ini

Extentsion=uploadprogress.so

8. Modify mysql configuration file my.cnf

[root@localhost ~] # gedit / etc/my.cnf

[mysqld]

Datadir=/var/lib/mysql

Socket=/var/lib/mysql/mysql.sock

User=mysql

# Disabling symbolic-links is recommended to prevent assorted security risks

Symbolic-links=0

Innodb_large_prefix=true

Innodb_file_format=barracu

Innodb_file_per_table=true

9. Restart mysql and apache

[root@localhost ~] # service httpd restart

Stop httpd: [OK]

Starting httpd:httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName

[OK]

[root@localhost ~] # service mysqld restart

Stop mysqld: [OK]

MySQL Daemon start.

Starting mysqld: [OK]

[root@localhost ~] #

10. Modify the settings permission to cancel the write attribute.

[root@localhost drupal] # chmod 444 sites/default/settings.php

[root@localhost drupal] # chmod 555 sites/default

So much for sharing the meaning of drupal in the Linux server. I hope the above content can be of some help to you and learn more knowledge. If you think the article is good, you can share it for more people to see.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report