68 Debian Debian 2013 1 27
68 Debian 2013 1 1 Introduction Debian JP Debian Debian GNU/Linux ( Debian Debian ML 1
Debian 1 Introduction 1 2 Debian 3 3 4 4 Using Drupal on Debian CMS Debian 8 5 Debian Policy 1 16 6 20 7 21 2
68 Debian 2013 1 2 Debian Debian JP 2.1 67 Debian 67 Debian 12 23 Android Asus Transformer TF201 Debian Debian Policy 2012 2013 Android Debian unstable Debian Policy Policy 2013 2.2 96 Debian 96 Debian 1 16 Debian gdb python 1) Debhelper Debian 2.3 Debian 2 2 Debian 1 26 Debian d-i usb or wheezy Debian Debian. 3
68 Debian 2013 1 3 Debian JP. 1. 2015 Debian 2. Debian CMS Web 3. Debian Debian 4. Drupal /var/www http://drupalcode.org/project/drupal.git/tree/2c99f0b21755c34cffd4fc5b38161d64bd69ca8a Debian 5. VM Drupal Drupal 7 - Content Management Framework 3.1 1. -devel init.d Jessie DebConf15 2. Trac, WordPress Symfony, CakePHP 3. Symfony, CakePHP Web Debian root 4. debian 4
debian/dirs sites debian/docs MAINTAINERS.txt UPGRADE.txt INSTALL.mysql.txt INSTALL.pgsql.txt INSTALL.sqlite.txt README.txt scripts debian/drupal7.install *.php includes misc modules themes robots.txt profiles etc/drupal/7/sites/default usr/share/doc/drupal7/ usr/share/doc/drupal7/ usr/share/doc/drupal7/ usr/share/doc/drupal7/ usr/share/doc/drupal7/ usr/share/doc/drupal7/ usr/share/doc/drupal7/ usr/share/drupal7/ usr/share/drupal7/ usr/share/drupal7/ usr/share/drupal7/ usr/share/drupal7/ usr/share/drupal7/ usr/share/drupal7/ debian/examples sites/default/default.settings.php usr/share/doc/drupal7/examples/ debian/rules.htaccess debhelper CHANGELOG.txt etc/drupal/7/htaccess usr/share/doc/drupal7/ 5. 3.2 1. Debian ( ) 2. Wordpress, DokuWiki, tdiary CMS/ Redmine 3.? 4. apt-file search packages.debian.org * 1 /usr/share/drupal7 apache alias README.Debian Wordpress drush /usr/share/drupal7 ( )? dh-make-drupal 5. ( ) 3.3 yyatsuo 1. popcon arm hf amd64 debconf15 devel Hurd 2. WordPress Tornado 3. 4. *1 http://packages.debian.org/wheezy/all/drupal7/filelist 5
dpkg -L 5. 3.4 kino ( ) 3.5 1. GNU/kBSD, Universal OS Jessie miniconf in Japan 2,, Debconf in Japan 2. Trac, Drupal, Xoops. Rails Redmine, Radiant CMS. CMS Octpress 3. Rails gem, unstable.,,. chroot reverse proxy. 4. /usr/share/drupal7. /usr/share/doc/drupal7/readme.debian.gz. $ apt-get source drupal7 $ cd drupal7-7.14/debian $ lv README.Debian 5.. Drupal6... 3.6 1. Windows XP Debian 2. Pukiwiki, Trac, Redmine,... CMS 3. /usr/local 4. drupal7 /usr/share/drupal7 % apt-file list drupal7 /usr/share/doc/drupal7/readme.debian.gz 5. 3.7 lurdan 1. Debian ( ) 2. tdiary/rails /Zope / PHP ( ) 3. CMS 4. /usr/share/drupal (apt-file search) 5. VM Drupal 6
3.8 joe 1. ORACLE NetBSD 2. PukiWiki Drupal 3. PostgreSQL Drush 4. site-enable 5. 7
68 Debian 2013 1 4 Using Drupal on Debian CMS Debian 4.1 Drupal Linux Web Debian CMS Web VPS AMAZON EC2 VPS OS PHP,MySQL Drupal Wordpress CMS Debian 4.1.1 ( ) Twitter: @qchan kino Facebook: satoshi.kino ANNAI LLC http://an-nai.jp http://geodosu.com http://groups.drupal.org/japan/ OSC KOF OSS KOF2012 Drupal 8
4.2 Drupal CMS Web 4.2.1 License: GPL 2 Web Server: Apache, Nginx, or Microsoft IIS PHP: 5.3 PDO DB: MySQL, PostgreSQL, SQLite (MS SQL Server, Oracle ) [1] Sqlite ( ) 4.2.2 Open Source Awards 3 1 Wordpress,2 Joomla! 4.2.3 Whitehouse Harvard University Econmist jp Computer World Ubuntu Linux Foundation SONY MUSIC ENTERTAINMENT 4.2.4 OSS API Hock CMS Drupal 4.2.5 Web Drupal8 9
Restful Symfony2 4.2.6 DB Memcache Varnish, nginx,apc 4.2.7 http://localize.drupal.org + 4.2.8 4.2.9 Drupalcon Munich 2012 8 20 24 1800 Total Revenue e892,221( 9100 Total Expenses e858,366( 8700 4.2.10 5,000 Git drupal.org Issue Patch Drupal 4.2.11 E Open Data CRM PostGIS GeoServer OpenLayers GeoMedia [2] 10
4.3 Linux Debian Drupal Ubuntu = (debian ubuntu) drupal 4.4 Debian Drupal CMS Web 4.4.1 Debian PHP Dotdeb [3] Debian OS 4.4.2 1. PHP Web Drupal Wordpress Typo3 OpenPNE a /var/www/ tar b DB c Apache Vhost d 2. Drush Drupal Drush - drupal shell[4] Drupal PEAR Drush VM drush drush dl drush --destination=/usr/local/share/ 11
Drush Drupal WebServer PHP5.4 Drupal Drupal Drupal DB Drupal Drupal Patch URL make file Drupal 4.5 apt-get install drupal7 [5] /usr/share/doc/{ } dpkg --status { } /etc/cron.d/drupal7 /etc/drupal/7/htaccess /etc/drupal/7/sites/default/settings.php /etc/drupal/7/apache2.conf Debian list of files[6] dpkg -L { } apt-file list { } * 2 locate { } * 3 *2 OK *3 12
(*) /usr/share/drupal7 Drupal Drupal /var/lib/drupal7/files /var/lib/drupal7/backups (*) /etc/drupal/7.htaccess /sites /profile /var/www Drupal (/usr/share/drupal7) /etc/cron.d/drupal7 (*) cron /etc/drupal7/apache2.conf (*) Apache2 /etc/apach2/conf.d /var/lib/drupal7/backups (*) /usr/share/doc/drupal7/scripts/ (*) /etc/dbconfig-common/drupal7.conf (*) /usr/share/doc/drupal7/dbconfig.template (*) FHS(Filesystem Hierarchy Standard) [7][8] /etc [9] SELinux /var/lib/drupal7/files SELinux Redhat [10] Redhat drupal DB Apache Wordpress Wordpress unstable unstable Web wp-content /var/lib /usr/share/wordpress SELinux Flash /var/www/ Apache2 /usr/share/wordpress apache.conf MySQL 13
4.6 Drupal Debian package Upstream Drupal 5000 Drush * 4 Drupal 4.7 Debian 1. /usr/share/doc/{ } tar README.txt 2. conf CentOS Apache2 MySQL iptables 3. Upstream FHS Debian 4. Stable, Old Stable 2 1 Ubuntu LTS Debian dist-upgrade RedHat 10 5. conf Grub VPS 6. Stable 7. Debian Web conf 8. /etc/apt/preferences PIN 9. Drupal 4.8 Web Drupal *4 /sites DBdump Drush Drupal Aegir [11] 14
Debian OSS Meetup 68 Debian [1] System requirements drupal, http://drupal.org/requirements [2] Distributions drupal.org, http://drupal.org/documentation/build/distributions [3] Dotdeb - The repository for Debian-based LAMP servers, http://www.dotdeb.org/ [4] Drush drupal.org, http://drupal.org/project/drush [5] Drupal - Community Ubuntu Documentation, https://help.ubuntu.com/community/drupal [6] Debian - Filelist of package drupal7/wheezy/all, http://packages.debian.org/wheezy/all/drupal7/ filelist [7] Debian JP Project - Debian -, http://www.debian.or.jp/ community/devel/debian-policy-ja/policy.ja.html/ch-opersys.html#s9.1 [8] Filesystem Hierarchy Standard - Wikipedia, http://ja.wikipedia.org/wiki/filesystem_hierarchy_ Standard [9] Debian JP Project - Debian -, http://www.debian.or.jp/community/devel/ debian-policy-ja/policy.ja.html/ch-files.html#10.7.2 [10] Bug 472642 - SELinux denies access to /etc/drupal/default/files/, https://bugzilla.redhat.com/show_ bug.cgi?id=472642 [11] Aegir, http://www.aegirproject.org/ 15
68 Debian 2013 1 5 Debian Policy 1 Debian Policy 9 9 (3.9.4.0) (3.9.1.0) 5.1 9 9 Debian init.d init.d Cron doc-base init 5.2 (3.9.4.0) (3.9.1.0) 2 /run (9.1.1 7 9.1.4 /run /run/lock ) SysVInit Init (upstart) (9.11 init ) 2 GNU Hurd (9.1.1 9) Cron (9.5.1 Cron ) 9 16
( Diff ) 5.3 9.1 5.3.1 9.1.1 Debian *5 9 Filesystem Hierarchy Standard(FHS) 2.3 1.. ( ) ( ). ( ). 2. amd64 64 /lib64 3. (libc.so.* ) /lib{,32} /usr/lib{,32} /lib/triplet /usr/lib/triplet triplet dpkg-architecture -qdeb HOST MULTIARCH *6 triplet Architecture: amd64 32 x86 /usr/lib/i386-linux-gnu *7 /usr/lib/triplet /,ld* /lib /lib64 ELF ABI 4. /usr/local/share/man /usr/local/man 5. system.*wmrc 6. /etc 7. ( ) /run /var/run /run /var/lock /run/lock /var /run /run/lock FHS /var/run /var/lock /run 8. /sys /selinux 9. ( ) GNU Hurd /hurd /servers FHS debian-policy FHS Web *8 5.3.2 9.1.2 FHS /usr/local *5 (all installed files) (all files) *6 dpkg-architecture -qdeb HOST GNU TYPE *7 /usr/lib/i486-linux-gnu *8 http://www.pathname.com/fhs/ 17
/usr/local (/usr/local/*/dir) /usr/local FHS 4.5 *9 FHS 4.5 emacsen-common /usr/local/share/emacs 5.3.3 9.1.3 /var/mail /var/spool/mail 5.3.4 9.1.4 /run /run/lock ( ) /run Packages therefore must not assume that any files or directories under /run other than /run/lock exist unless the package has arranged to create those files or directories since the last reboot. Normally, this is done by the package via an init script. See Writing the scripts, Section 9.3.2 for more information. ( /run /run/lock init ) /run /var/run /var/lock /var/run /var/lock /run 5.4 9.2 5.4.1 9.2.1 Debian ID(UID) ID(GID) Debian ID base-passwd /etc/passwd, /etc/shadow, /etc/group, /etc/gshadow 5.4.2 9.2.2 UID GID UID GID 0-99 Debian Debian 100-999 1000-59999 60000-64999 Debian 65000-65533 65534 nobody gid nogroup 65535 (uid t)(-1) == (gid t)(-1) *9 FHS 4.5 FHS http://www.debian.org/doc/ packaging-manuals/fhs/fhs-2.3.html#usrlocallocalhierarchy 18
5.5... init.d!! 19
68 Debian 2013 1 6 Debian JP 6.1 Debian 69 Debian 2 24 ( ) GREE 6.2 Debian 2 9 ( ) OSC 2 22 ( ) 23 ( ) OSC Tokyo/Spring 20
68 Debian 2013 1 7 21
22
Debian Debian 2013 1 27 1 Debian 23