drupal-7 - riptutorial.com · Drupal Drupal ConsoleDrupalCLI。 Drupal ConsoleDrupal 8。Drupal...

17
drupal-7 #drupal-7

Transcript of drupal-7 - riptutorial.com · Drupal Drupal ConsoleDrupalCLI。 Drupal ConsoleDrupal 8。Drupal...

  • 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 [email protected]

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

    http://riptutorial.com/ebook/drupal-7https://archive.org/details/documentation-dump.7zmailto:[email protected]

  • 1: drupal-7

    drupal-7。

    drupal-7。drupal-7。

    DrupalPHPJavaScriptJQueryMariaDB / MySQLPostgreSQL。

    DrupalDrupal。LinuxWindowsMac OS XWebApacheIISNginxMariaDB / MySQLPostgreSQLSQLiteDrupal。

    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-TW/home 2

    https://www.drupal.org/project/drupalhttps://www.drupal.org/documentation/version-infohttps://www.drupal.org/documentation/version-infohttps://www.drupal.org/documentation/version-infohttps://www.drupal.org/documentation/version-infohttps://www.drupal.org/documentation/version-infohttp://localize.drupal.org/translatehttps://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-TW/home 3

    https://www.drupal.org/project/consolehttps://www.drupal.org/project/consolehttp://docs.drupalconsole.com/en/commands/site-new.htmlhttp://docs.drupalconsole.com/en/commands/site-new.htmlhttps://www.drupal.org/project/drupalhttps://www.drupal.org/node/3060/releasehttps://www.drupal.org/node/3060/releasehttps://www.drupal.org/node/3060/releasehttps://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-TW/home 4

    https://www.drupal.org/project/drupalhttps://www.drupal.org/drupal-8.0/developershttps://www.drupal.org/drupal-8.0/developershttps://www.drupal.org/node/2357587https://www.drupal.org/node/2357587https://www.drupal.org/project/drupal/git-instructionshttps://www.drupal.org/project/drupal/git-instructionshttps://www.drupal.org/project/drupal/git-instructionshttps://www.drupal.org/project/drupal/git-instructionshttps://www.drupal.org/project/drupal/git-instructionshttps://www.drupal.org/project/drupal/git-instructionshttps://getcomposer.org/https://www.lullabot.com/articles/goodbye-drush-make-hello-composerhttps://www.lullabot.com/articles/goodbye-drush-make-hello-composerhttps://www.lullabot.com/articles/goodbye-drush-make-hello-composerhttps://www.lullabot.com/articles/goodbye-drush-make-hello-composerhttps://www.lullabot.com/articles/goodbye-drush-make-hello-composerhttps://www.lullabot.com/articles/goodbye-drush-make-hello-composerhttps://www.lullabot.com/articles/goodbye-drush-make-hello-composerhttps://www.lullabot.com/articles/goodbye-drush-make-hello-composerhttps://www.lullabot.com/articles/goodbye-drush-make-hello-composerhttps://www.lullabot.com/articles/goodbye-drush-make-hello-composerhttps://www.lullabot.com/articles/goodbye-drush-make-hello-composerhttps://getcomposer.org/doc/00-intro.mdhttps://getcomposer.org/doc/00-intro.mdhttps://getcomposer.org/doc/00-intro.mdhttps://getcomposer.org/doc/00-intro.mdhttps://getcomposer.org/doc/00-intro.mdhttps://getcomposer.org/doc/00-intro.md

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

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

    settings.php

    install.phpDrupal 78settings.php。sites / default / files。/PHPApache。settings.php。settings.phpinstall.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-TW/home 5

    https://www.drupal.org/documentation/install/run-scripthttps://www.drupal.org/documentation/install/run-scripthttps://www.drupal.org/documentation/install/run-scripthttps://www.drupal.org/documentation/install/run-scripthttps://www.drupal.org/documentation/install/run-scripthttps://www.drupal.org/documentation/install/run-scripthttps://www.drupal.org/documentation/install/run-scripthttps://www.drupal.org/documentation/install/run-scripthttps://www.drupal.org/documentation/install/run-scripthttps://www.drupal.org/documentation/install/run-scripthttps://www.drupal.org/documentation/install/run-scripthttps://www.drupal.org/documentation/install/run-scripthttps://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-TW/home 6

    http://filezilla-project.org/https://panic.com/transmit/http://fetchsoftworks.com/http://%5Byoursite%5D/install.phphttp://%5Byoursite%5D/install.phphttp://%5Byoursite%5D/install.phphttp://%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-TW/home 7

    https://i.stack.imgur.com/wjidu.pnghttps://www.drupal.org/handbook/modules/blockhttps://www.drupal.org/handbook/modules/dbloghttps://www.drupal.org/handbook/modules/dbloghttps://www.drupal.org/handbook/modules/dbloghttps://www.drupal.org/handbook/modules/dbloghttps://www.drupal.org/handbook/modules/dbloghttps://www.drupal.org/handbook/modules/dbloghttps://www.drupal.org/handbook/modules/dbloghttps://www.drupal.org/handbook/modules/updatehttps://www.drupal.org/handbook/modules/updatehttps://www.drupal.org/handbook/modules/updatehttps://www.drupal.org/handbook/modules/updatehttps://www.drupal.org/node/1127786https://www.drupal.org/node/1127786https://www.drupal.org/node/1127786https://www.drupal.org/node/1127786https://www.drupal.org/node/1127786https://www.drupal.org/node/1127786https://www.drupal.org/node/1127786https://www.drupal.org/node/1127786https://www.drupal.org/node/1127786

  • “Drupal”。

    2.

    https://riptutorial.com/zh-TW/home 8

    https://i.stack.imgur.com/NKayv.pnghttps://i.stack.imgur.com/EZstv.png

  • 。“”。

    / 。。 sites/default/files sites/default/private sites/default/private/files chmod o+w sites/default/files chmod 777 sites/default/files

    3.

    https://riptutorial.com/zh-TW/home 9

    https://i.stack.imgur.com/ZNBDJ.png

  • settings.php settings.php3settings.php 。 default.settings.phpsettings.php。

    2。Drupal。Drupal;。

    'localhost'wamp / bin / apache / Apache2.2.11 / bin / php.iniWAMPWindows。。。Drupal。 “”。

    4.

    。。

    5.

    。 “”。。 “”Drupal。

    6.

    https://riptutorial.com/zh-TW/home 10

    https://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/settings-filehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://www.drupal.org/documentation/install/create-databasehttps://i.stack.imgur.com/RgvpV.png

  • “”。Drupal 7“”“”“”。。“”。 Drupalhttp://www.example.com/user/1 。

    /。 “”Drupal。。Internet。

    https://riptutorial.com/zh-TW/home 11

    https://i.stack.imgur.com/kqG9o.png

  • “”。Drupal。。

    https://riptutorial.com/zh-TW/home 12

    https://i.stack.imgur.com/5mY8p.pnghttps://i.stack.imgur.com/4rfbE.png

  • settings.php

    chmod u=rw,o=r,a=r sites/default/settings.php

    chmod 644 sites/default/settings.php

    settings.php。

    settings.php。

    settings.phpsites/default/settings.php sites/default/settings.php 。

    drupal-7 https://riptutorial.com/zh-TW/drupal-7/topic/7945/drupal-7

    https://riptutorial.com/zh-TW/home 13

    https://riptutorial.com/zh-TW/drupal-7/topic/7945/drupal-7%E5%85%A5%E9%96%80https://riptutorial.com/zh-TW/drupal-7/topic/7945/drupal-7%E5%85%A5%E9%96%80https://riptutorial.com/zh-TW/drupal-7/topic/7945/drupal-7%E5%85%A5%E9%96%80

  • 2: Drupal

    Drupal 7。

    - Drupal 7。incDrupal 7 API。- batch.inccache.incajax.incInc。•

    -JavaScriptDrupal7JavaScript /。•

    -Drupal 7/。/。•

    profiles - Drupal 7。 - MinimalStandard。Drupal 7。。。•

    scripts - Drupal 7shell。 - Password Hash ResetDrupal shell。•

    sites - 。。all。

    all - Drupal///。○

    default - Drupal///。○

    For other sites multiple folder can be created in sites folder.

    -Drupal 7/。•

    Examples

    Drupal https://riptutorial.com/zh-TW/drupal-7/topic/9875/drupal

    https://riptutorial.com/zh-TW/home 14

    https://i.stack.imgur.com/mo177.pnghttps://riptutorial.com/zh-TW/drupal-7/topic/9875/drupal%E6%96%87%E4%BB%B6%E5%A4%BE%E7%B5%90%E6%A7%8Bhttps://riptutorial.com/zh-TW/drupal-7/topic/9875/drupal%E6%96%87%E4%BB%B6%E5%A4%BE%E7%B5%90%E6%A7%8Bhttps://riptutorial.com/zh-TW/drupal-7/topic/9875/drupal%E6%96%87%E4%BB%B6%E5%A4%BE%E7%B5%90%E6%A7%8Bhttps://riptutorial.com/zh-TW/drupal-7/topic/9875/drupal%E6%96%87%E4%BB%B6%E5%A4%BE%E7%B5%90%E6%A7%8Bhttps://riptutorial.com/zh-TW/drupal-7/topic/9875/drupal%E6%96%87%E4%BB%B6%E5%A4%BE%E7%B5%90%E6%A7%8Bhttps://riptutorial.com/zh-TW/drupal-7/topic/9875/drupal%E6%96%87%E4%BB%B6%E5%A4%BE%E7%B5%90%E6%A7%8B

  • S. No

    Contributors

    1 drupal-7 code.rider, Community, Kuhan

    2 Drupal Vivek Srivastava

    https://riptutorial.com/zh-TW/home 15

    https://riptutorial.com/zh-TW/contributor/2231213/code-riderhttps://riptutorial.com/zh-TW/contributor/-1/communityhttps://riptutorial.com/zh-TW/contributor/3214177/kuhanhttps://riptutorial.com/zh-TW/contributor/1386755/vivek-srivastava

    關於章節 1: drupal-7入門備註Examples安裝或設置安裝Drupal 7步驟

    第1步:下載並解壓縮Drupal第2步:創建數據庫第3步:創建settings.php和files目錄第4步:運行安裝腳本

    章節 2: Drupal文件夾結構介紹備註Examples截圖

    積分