drupal-7 - 1: drupal-7 drupal-7…€â€...

Download drupal-7 - 1: drupal-7 drupal-7…۠drupal-7…€â€drupal-7…۠DrupalPHPJavaScriptJQueryMariaDB / MySQLPostgreSQL…€â€

Post on 01-Feb-2021

3 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • drupal-7

    #drupal-7

  • 1

    1: drupal-7 2

    2

    Examples 2

    2

    Drupal 7 2

    1Drupal 2

    2 4

    3settings.phpfiles 4

    4 7

    2: Drupal 14

    14

    14

    Examples 14

    14

    15

  • You can share this PDF with anyone you feel could benefit from it, downloaded the latest version from: drupal-7

    It is an unofficial and free drupal-7 ebook created for educational purposes. All the content is extracted from Stack Overflow Documentation, which is written by many hardworking individuals at Stack Overflow. It is neither affiliated with Stack Overflow nor official drupal-7.

    The content is released under Creative Commons BY-SA, and the list of contributors to each chapter are provided in the credits section at the end of this book. Images may be copyright of their respective owners unless otherwise specified. All trademarks and registered trademarks are the property of their respective company owners.

    Use the content presented in this book at your own risk; it is not guaranteed to be correct nor accurate, please send your feedback and corrections to info@zzzprojects.com

    https://riptutorial.com/zh-CN/home 1

    http://riptutorial.com/ebook/drupal-7 https://archive.org/details/documentation-dump.7z mailto:info@zzzprojects.com

  • 1: drupal-7

    drupal-7。

    drupal-7。drupal-7。

    DrupalPHPJavaScriptJQueryMariaDB / MySQLPostgreSQL。

    DrupalDrupal。LinuxWindowsMac OS XWebApacheIISNginxMariaDB / MySQLPostgreSQL SQLiteDrupal。

    Examples

    drupal-7。

    Drupal 7

    1Drupal

    Drupal。Drupal 8201511Drupal 7.。Drupal。

    Drupalhttp://localize.drupal.org/translate 。。

    Drupal 8。

    Drupal

    Drush• Drupal•

    • FTP• Git•

    ......

    ......

    DrupalURLWeb。URL。DrupalURLhttp://localhost.DrupalWebURLhttp://example.com 。

    Drush

    DrushDrupal。Drupal pm-download dl

    drush dl drupal

    。drush help dl。

    https://riptutorial.com/zh-CN/home 2

    https://www.drupal.org/project/drupal https://www.drupal.org/documentation/version-info https://www.drupal.org/documentation/version-info https://www.drupal.org/documentation/version-info https://www.drupal.org/documentation/version-info https://www.drupal.org/documentation/version-info http://localize.drupal.org/translate https://www.drupal.org/project/drush

  • Drupal

    Drupal ConsoleDrupalCLI。 Drupal ConsoleDrupal 8。Drupal

    site:new

    # specifying to download version 8.0.2 into folder "mydrupalsite" drupal site:new mydrupalsite 8.0.2 # select version from interactive mode drupal site:new mydrupalsite

    。drupal site:new --help 。

    sshDrupal。* nix/ var / www / htmlcd /var/www/html 。cd ~/wwwcd ~/public_html 。。

    Drupalwgetcurl。

    wget http://ftp.drupal.org/files/projects/drupal-x.x.tar.gz

    curl -O http://ftp.drupal.org/files/projects/drupal-x.x.tar.gz

    curl“O”。

    http://ftp.drupal.org/files/projects/drupal-xxtar.gz。

    Drupal Core。DrupalReleases。

    “xx”

    tar -xvzf drupal-x.x.tar.gz

    rm drupal-x.x.tar.gz

    drupal-xx“up”WebHTML

    mv drupal-x.x/* drupal-x.x/.htaccess ./

    Drupal 7

    mv drupal-x.x/.gitignore ./

    Drupal 8。

    tar

    tar --strip-components=1 -xvzf drupal-x.x.tar.gz

    https://riptutorial.com/zh-CN/home 3

    https://www.drupal.org/project/console https://www.drupal.org/project/console http://docs.drupalconsole.com/en/commands/site-new.html http://docs.drupalconsole.com/en/commands/site-new.html https://www.drupal.org/project/drupal https://www.drupal.org/node/3060/release https://www.drupal.org/node/3060/release https://www.drupal.org/node/3060/release https://www.drupal.org/node/3060/release

  • Webdrupal-xx

    rmdir drupal-x.x

    FTP

    FTPDrupal。

    https://www.drupal.org/project/drupalDrupal tar.gzzip。1. 。“”。7-zip。“drupal-7.32”/。2. FTP.htaccessHTML。FTP。3.

    Drupal 810 FTP。Drupal8ZIP 。

    Git

    Drupal Drupal。

    Drupal 8.1.xcomposer。Drupalcomposer install Drupal。composer 。

    composer 。

    2

    8.xDrupal。MySQL / MariaDB'CREATE'postgresql'CREATEDB'Drupal。。。

    Drupal。

    Drupal 7

    。“ - ”“@ 002d”。abc@ 002db @ 002dc。a..z0..9“_”。 [refref]

    Drupal 8

    。a..z0..9“_”。

    3settings.phpfiles

    Drupal“settings.php”“services.yml”

    Drupal。settings.php

    sites/default

    settings.phpDrupal 6,78

    Drupalsettings.phpdefault.settings.php。Drupal 7default.settings.php - > settings.php。。

    https://riptutorial.com/zh-CN/home 4

    https://www.drupal.org/project/drupal https://www.drupal.org/drupal-8.0/developers https://www.drupal.org/drupal-8.0/developers https://www.drupal.org/node/2357587 https://www.drupal.org/node/2357587 https://www.drupal.org/project/drupal/git-instructions https://www.drupal.org/project/drupal/git-instructions https://www.drupal.org/project/drupal/git-instructions https://www.drupal.org/project/drupal/git-instructions https://www.drupal.org/project/drupal/git-instructions https://www.drupal.org/project/drupal/git-instructions https://getcomposer.org/ https://www.lullabot.com/articles/goodbye-drush-make-hello-composer https://www.lullabot.com/articles/goodbye-drush-make-hello-composer https://www.lullabot.com/articles/goodbye-drush-make-hello-composer https://www.lullabot.com/articles/goodbye-drush-make-hello-composer https://www.lullabot.com/articles/goodbye-drush-make-hello-composer https://www.lullabot.com/articles/goodbye-drush-make-hello-composer https://www.lullabot.com/articles/goodbye-drush-make-hello-composer https://www.lullabot.com/articles/goodbye-drush-make-hello-composer https://www.lullabot.com/articles/goodbye-drush-make-hello-composer https://www.lullabot.com/articles/goodbye-drush-make-hello-composer https://www.lullabot.com/articles/goodbye-drush-make-hello-composer https://getcomposer.org/doc/00-intro.md https://getcomposer.org/doc/00-intro.md https://getcomposer.org/doc/00-intro.md https://getcomposer.org/doc/00-intro.md https://getcomposer.org/doc/00-intro.md https://getcomposer.org/doc/00-intro.md

  • /Drupal 8default.services.yml。default.settings.phpdefault.services.yml。services.yml99 services.yml。。services.yml。default.services.yml / services.yml。

    。[config-file] .phpDrupal。......

    settings.php

    install.phpDrupal 78settings.php。sites / default / files。/PHPApache。settings.php。settings.php install.php。。settings.php。

    4 。。

    .php

    Drupal 6,78settings.php

    sites/default/default.settings.php

    install.phpdefault.settings.phpsettings.php。。

    .php

    1 - Drupalsites/default 。 default.settings.phpsettings.php。shellDrupal cp sites/default/default.settings.php sites/default/settings.php 。 Drupal。 FTP。。

    2 - sites / defaultsettings.php。sites / defaultsettings.php ls -l sites/ /755 [drwxr-xr-x] ls -l sites/default/settings.php settings.php644 [-rw-r - r--] chmod 644 sites/default/settings.php

    https://riptutorial.com/zh-CN/home 5

    https://www.drupal.org/documentation/install/run-script https://www.drupal.org/documentation/install/run-script https://www.drupal.org/documentation/install/run-script https://www.drupal.org/documentation/install/run-script https://www.drupal.org/documentation/install/run-script https://www.drupal.org/documentation/install/run-script https://www.drupal.org/documentation/install/run-script https://www.drupal.org/documentation/install/run-script https://www.drupal.org/documentation/install/run-script https://www.drupal.org/documentation/install/run-script https://www.drupal.org/documentation/install/run-script https://www.drupal.org/documentation/install/run-script https://www.drupal.org/documentation/install/run-script

  • Web664。 Filezilla TransmitFetchFTP“”“”。644.FTP“”“”“”“”“”“” 。664。。

    3 - 。http// [yoursite] /install.php。 - > // 。“”4。 。“”5。

    4 - sites / default / files。 mkdir sites/default/files Linux755。 chmod 755 sites/default/files files755 [drwx-rw-rw]。 apache chmod 777 sites/default/files files777 [drwxrwxrwx]。755。

    5 - Drupal 555 - [dr-xr-xr-x]sites / default。 .php444[ - r - r - r--] chmod 555 sites/default chmod 444 sites/default/settings.php

    https://riptutorial.com/zh-CN/home 6

    http://filezilla-project.org/ https://panic.com/transmit/ http://fetchsoftworks.com/ http://%5Byoursite%5D/install.php http://%5Byoursite%5D/install.php http://%5Byoursite%5D/install.php http://%5Byoursite%5D/install.php

  • 4

    Drupal 7

    DrupalURL。

    URLDrupalWeb。WebDrupalhttp://www.example.com 。Drupal http://example.com/subfolder 。 DrupalURLhttp://localhost/drupal 。

    URLinstall.phpURL http://www.example.com/install.php 。

    install.php

    。“”。。 。。

    “”Drupal。 。

    drupal“”。

    1.

    https://riptutorial.com/zh-CN/home 7

    https://i.stack.imgur.com/wjidu.png https://www.drupal.org/handbook/modules/block https://www.drupal.org/handbook/modules/dblog https://www.drupal.org/handboo