drupal-7 - riptutorial.com · (drupal) (drupal console) (drupal ) (cli). (drupal console) , drupal...
TRANSCRIPT
-
drupal-7
#drupal-7
-
1
1: drupal-7 2
2
Examples 2
2
Drupal 7 2
1 : Drupal 2
2 : 4
3 : settings.php 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/ko/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 .
Drupal JavaScript ( JQuery ) PHP , MariaDB / MySQL PostgreSQL .
Drupal Drupal . (Linux, Windows, Mac OS X), (Apache, IIS, Nginx) (MariaDB / MySQL, PostgreSQL, SQLite) Drupal .
Examples
drupal-7 .
Drupal 7
1 : Drupal
Drupal . Drupal 8 (2015 11 ) Drupal 7. . Drupal .
Drupal http://localize.drupal.org/translate . .
: Drupal 8 .
6 Drupal .
Drush •(Drupal) •
•FTP •
••
. ...
...
Drupal URL . URL . Drupal URL http://localhost. http://localhost. Drupal URL http://example.com .
Drush
Drush Drupal . Drupal : pm-download ( dl ) :
drush dl drupal
. drush help dl .
https://riptutorial.com/ko/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/translatehttp://localize.drupal.org/translatehttp://localize.drupal.org/translatehttp://localize.drupal.org/translatehttp://localize.drupal.org/translatehttp://localize.drupal.org/translatehttps://www.drupal.org/project/drush
-
(Drupal)
(Drupal Console) (Drupal ) (CLI). (Drupal Console) , Drupal 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 .
ssh Drupal . * nix / var / www / html cd /var/www/html . ( cd ~/www cd ~/public_html ). .
Drupal ( : wget curl ). .
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" 0 .
http://ftp.drupal.org/files/projects/drupal-xxtar.gz .
Drupal Core . Drupal .
"xx" .
tar -xvzf drupal-x.x.tar.gz
.
rm drupal-x.x.tar.gz
drupal-xx HTML "".
mv drupal-x.x/* drupal-x.x/.htaccess ./
Drupal 7 .
mv drupal-x.x/.gitignore ./
(Drupal 8) .
tar .
https://riptutorial.com/ko/home 3
https://www.drupal.org/project/consolehttps://www.drupal.org/project/consolehttps://www.drupal.org/project/consolehttps://www.drupal.org/project/consolehttps://www.drupal.org/project/consolehttps://www.drupal.org/project/consolehttps://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.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
-
tar --strip-components=1 -xvzf drupal-x.x.tar.gz
( ) drupal-xx .
rmdir drupal-x.x
FTP
FTP Drupal .
https://www.drupal.org/project/drupal Drupal tar.gz zip .1. . "" . ( : 7-zip) . "drupal-7.32" / .2. FTP .htaccess HTML . FTP .3.
: Drupal 8 10 . FTP . ZIP Drupal 8 .
Drupal Drupal .
8.1.x . Runup Composer composer install Drupal Drupal . .
.
2 :
: 8.x Drupal . ( : MySQL / MariaDB 'CREATE' postgresql 'CREATEDB'), Drupal . . .
(Drupal ) .
(Drupal 7
. "-"() "@ 002d" . , abc @ 002db @ 002dc. a..z, 0..9 "_"() . [ref, ref]
(Drupal 8
. a..z, 0..9 "_"().
3 : settings.php
"settings.php" "services.yml"
Drupal , . settings.php .
sites/default
settings.php Drupal 6, 7 8
Drupal settings.php default.settings.php . Drupal 7 default.settings.php -> settings.php . . .
https://riptutorial.com/ko/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/drupal-8.0/developershttps://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/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://www.drupal.org/project/drupal/git-instructionshttps://getcomposer.org/https://getcomposer.org/https://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://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.md
-
sites / default Drupal 8 default.services.yml . default.settings.php default.services.yml . services.yml services.yml 99 % . . . services.yml . , default.services.yml / services.yml .
[config-file] .php Drupal . , ...
settings.php
Drupal 7 8 install.php settings.php . sites / default / files . / PHP Apache . settings.php . install.php settings.php . . settings.php .
. 4 : . .
Manual settings.php
Drupal 6, 7, 8 settings.php .
sites/default/default.settings.php
(install.php) default.settings.php settings.php . .
Manual settings.php
1 - (Drupal) sites/default . default.settings.php settings.php ( ). ( ) Drupal : cp sites/default/default.settings.php sites/default/settings.php : . Drupal . FTP . .
•
2 - sites / default settings.php . sites / default settings.php . ls -l sites/ / 755 . [drwxr-xr-x] : ls -l sites/default/settings.php settings.php 644 [-rw-r-r--] . . chmod 644 sites/default/settings.php
•
https://riptutorial.com/ko/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-scripthttps://www.drupal.org/documentation/install/run-scripthttps://www.drupal.org/documentation/install/run-script
-
: 664 . Filezilla , Transmit Fetch FTP ' ' ' ' . 644 . FTP "", "" "" ( ) . 664 . .
3 - . . http : // [yoursite] /install.php . -> ( / / ) . "Writeable" , 4 . . "Protected" 5 .
•
4 - / default / files . mkdir sites/default/files : 755 . . chmod 755 sites/default/files 755 [drwx-rw-rw] . : chmod 777 sites/default/files 777 [drwxrwxrwx] . 755 .
•
5 - Drupal . / 555 ( ) [dr-xr-xr-x]. 444 ( ) [-r - r - r--] settings.php . chmod 555 sites/default chmod 444 sites/default/settings.php
•
https://riptutorial.com/ko/home 6
http://filezilla-project.org/https://panic.com/transmit/http://fetchsoftworks.com/http://%5Byoursite%5D/install.php
-
.
4 :
Drupal 7
Drupal URL .
URL Drupal () ( ). Drupal http://www.example.com . Drupal ( : http://example.com/subfolder ) . Drupal URL http://localhost/drupal .
URL install.php URL ( : http://www.example.com/install.php ).
install.php .
( ). "" . . ( .) .
"" Drupal . , .
.
1 drupal ' ' .
1.
https://riptutorial.com/ko/home 7
https://i.stack.imgur.com/wjidu.pnghttps://www.drupal.org/handbook/modules/blockhttps://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/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/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/1127786https://www.drupal.org/node/1127786
-
Drupal .
2.
https://riptutorial.com/ko/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/ko/home 9
https://i.stack.imgur.com/ZNBDJ.png
-
settings.php settings.php 3 : settings.php . default.settings.php settings.php .
2 : , . Drupal . Drupal . .
( 'localhost' WAMP Windows wamp / bin / apache / Apache2.2.11 / bin / php.ini). . . Drupal . .
4.
. .
5.
( ) . . . Drupal .
6.
https://riptutorial.com/ko/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/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) , "" "" "" . . . (Drupal http://www.example.com/user/1 .)
. Drupal . . ( : ) .
https://riptutorial.com/ko/home 11
https://i.stack.imgur.com/kqG9o.png
-
' ' . Drupal . .
https://riptutorial.com/ko/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.php sites/default/settings.php .
drupal-7 : https://riptutorial.com/ko/drupal-7/topic/7945/drupal-7-
https://riptutorial.com/ko/home 13
https://riptutorial.com/ko/drupal-7/topic/7945/drupal-7-%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0https://riptutorial.com/ko/drupal-7/topic/7945/drupal-7-%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0https://riptutorial.com/ko/drupal-7/topic/7945/drupal-7-%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0https://riptutorial.com/ko/drupal-7/topic/7945/drupal-7-%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0https://riptutorial.com/ko/drupal-7/topic/7945/drupal-7-%EC%8B%9C%EC%9E%91%ED%95%98%EA%B8%B0
-
2: (Drupal )Drupal 7 .
includes - Drupal 7 . inc Drupal 7 API. - batch.inc, cache.inc, ajax.inc INC .•
- (7) / .•
- (7) / . / .•
profiles - Drupal 7 . Minimal, Standard . Drupal 7 . , . .•
scripts - Drupal 7 . - , Drupal •
- . . , .
all - Drupal / / / .○
default - Drupal / / / .○
For other sites multiple folder can be created in sites folder.
•
- (7) / .•
Examples
(Drupal ) : https://riptutorial.com/ko/drupal-7/topic/9875/--drupal---
https://riptutorial.com/ko/home 14
https://i.stack.imgur.com/mo177.pnghttps://riptutorial.com/ko/drupal-7/topic/9875/%EB%93%9C%EB%A3%A8%ED%8C%94--drupal-%ED%8F%B4%EB%8D%94-%EA%B5%AC%EC%A1%B0-https://riptutorial.com/ko/drupal-7/topic/9875/%EB%93%9C%EB%A3%A8%ED%8C%94--drupal-%ED%8F%B4%EB%8D%94-%EA%B5%AC%EC%A1%B0-https://riptutorial.com/ko/drupal-7/topic/9875/%EB%93%9C%EB%A3%A8%ED%8C%94--drupal-%ED%8F%B4%EB%8D%94-%EA%B5%AC%EC%A1%B0-https://riptutorial.com/ko/drupal-7/topic/9875/%EB%93%9C%EB%A3%A8%ED%8C%94--drupal-%ED%8F%B4%EB%8D%94-%EA%B5%AC%EC%A1%B0-https://riptutorial.com/ko/drupal-7/topic/9875/%EB%93%9C%EB%A3%A8%ED%8C%94--drupal-%ED%8F%B4%EB%8D%94-%EA%B5%AC%EC%A1%B0-https://riptutorial.com/ko/drupal-7/topic/9875/%EB%93%9C%EB%A3%A8%ED%8C%94--drupal-%ED%8F%B4%EB%8D%94-%EA%B5%AC%EC%A1%B0-https://riptutorial.com/ko/drupal-7/topic/9875/%EB%93%9C%EB%A3%A8%ED%8C%94--drupal-%ED%8F%B4%EB%8D%94-%EA%B5%AC%EC%A1%B0-https://riptutorial.com/ko/drupal-7/topic/9875/%EB%93%9C%EB%A3%A8%ED%8C%94--drupal-%ED%8F%B4%EB%8D%94-%EA%B5%AC%EC%A1%B0-https://riptutorial.com/ko/drupal-7/topic/9875/%EB%93%9C%EB%A3%A8%ED%8C%94--drupal-%ED%8F%B4%EB%8D%94-%EA%B5%AC%EC%A1%B0-https://riptutorial.com/ko/drupal-7/topic/9875/%EB%93%9C%EB%A3%A8%ED%8C%94--drupal-%ED%8F%B4%EB%8D%94-%EA%B5%AC%EC%A1%B0-https://riptutorial.com/ko/drupal-7/topic/9875/%EB%93%9C%EB%A3%A8%ED%8C%94--drupal-%ED%8F%B4%EB%8D%94-%EA%B5%AC%EC%A1%B0-
-
S. No
Contributors
1 drupal-7 code.rider, Community, Kuhan
2 (Drupal ) Vivek Srivastava
https://riptutorial.com/ko/home 15
https://riptutorial.com/ko/contributor/2231213/code-riderhttps://riptutorial.com/ko/contributor/-1/communityhttps://riptutorial.com/ko/contributor/3214177/kuhanhttps://riptutorial.com/ko/contributor/1386755/vivek-srivastava
약장 1: drupal-7 시작하기비고Examples설치 또는 설정설치 단계별 Drupal 7
1 단계 : Drupal 다운로드 및 추출2 단계 : 데이터베이스 만들기3 단계 : settings.php 및 파일 디렉토리 만들기4 단계 : 설치 스크립트 실행
장 2: 드루팔 (Drupal 폴더 구조)소개비고Examples스크린 샷
크레딧