Linux server --- drupal

Drupal

        Drupal provides users with a variety of tools to manage the site, which can help users get started, create your own website    

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

 

2, drupal to create your own database, we named "drupal"

 

3, the installation package to extract the apache drupal web root directory "/ var / www / html /", in the finished package on drupal

[root@localhost html]# cp /wj/drupal-7.59.tar /var/www/html/      //拷贝压缩包

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

[root@localhost html]# mv drupal-7.59 drupal          //重命令,这样方便从浏览器打开

[root@localhost html]# cp /wj/drupal-7.59.zh-hans-po drupal/profiles/standard/translations/          //将汉化包拷贝到指定地方

 

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

       1) Select a normal installation

        

       2) Select the language, if there is no copy of the finished package, then you can not select Chinese

        

       3) This step is to find a few errors

        

            3-1) If the "php extension" error, then install php-xml package

            3-2) file system errors. We need to create the file specified in the drupal directory, set the permissions 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, the default.settings.php copy, then modify the rights 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. This database is that we created in the beginning, if you will not use mysql, you can try to create with phpMyAdmin

        

       5) being installed

        

       6) Set the site information, including the contents of mailboxes, administrator accounts, passwords, etc.

       

       7) the installation is successful, the browser and enter "127.0.0.1/drupal" can be visited

        

     

5, a status report. Log drupal, select the "Report" -> "Status Report", where you can see the upload progress can not be used, you need to install PECL. In addition, mysql does not support 4-byte utf-8, we need to turn on this feature.

        

 

6、安装PECL。首先要安装一些依赖软件php-devel、php-pear,然后才能安装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、修改php配置文件php.ini

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

extentsion=uploadprogress.so

 

8、修改mysql配置文件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、重启mysql和apache

[root@localhost ~]# service httpd restart

停止 httpd                                              [确定]

正在启动 httpdhttpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName

                                                          [确定]

[root@localhost ~]# service mysqld restart

停止 mysqld                                             [确定]

MySQL Daemon  start.

正在启动 mysqld                                          [确定]

[root@localhost ~]# 

 

 

10、修改settings权限,取消写入属性。

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

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

 

      做了一个Linux学习的平台,目前出来一个雏形,各位可以参考使用
      链接:https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ  密码:n7bk  
       

Guess you like

Origin www.cnblogs.com/wj78080458/p/10174416.html