WD My Book Live에 웹서버 및 그누보드 설치하기
컨텐츠 정보
- 51,025 조회
- 67 댓글
- 0 추천
- 목록
본문
1. 들어가며
누구나 한번쯤은 자신의 홈페이지를 가졌으면 좋겠다는 생각을 합니다.
그래서 블로그도 한번쯤은 해보셨을텐데요.
블로그를 하다보면 뭔가 아쉬운 점들이 하나씩 생깁니다.
대용량 파일을 그냥 올릴 순 없을까?
홈페이지를 내맘대로 만질 순 없을까?
그래서 이 강좌를 생각하게 되었습니다.
My Book Live는 이미 아파치라는 웹서버가 있고, php5도 깔려있습니다.
그래서 Mysql만 깔면 자동으로 홈페이지를 구동할 수 있는데요.
아쉽게도 순정상태에서는 패키지들의 의존성 문제때문에 깔리지 않습니다.
그래서 앞서 두 강좌와 같이 소스리스트를 수정한 상태에서만 설치가 가능하오니, 그에 따른 기계의 불안정이라든지, 벽돌화 같은
문제가 발생할 수 있습니다.
물론 완전 초기화 및 벽돌을 푸는 방법도 있지만, 일반 유저들은 사실 어렵죠.
그래서 최소한 중급유저 이상에게만 추천하는 이유가 바로 그것입니다.
WD My Book Live에 Owncloud 설치하기
위 링크에 가셔서 2. 패키지 수정 및 업데이트까지 진행하고 오시길 바랍니다.
2. 웹서버 관련 패키지 설치하기
이제 본격적으로 웹서버 구동에 필요한 패키지들을 설치해봅시다.
apt-get install mysql-server mysql-client
위 명령어로 mysql 관련 패키지를 설치합니다.
뭐 물어보면 y 누르고 진행하면 됩니다.
갑자기 파란화면이 나오는데 MySQL의 비밀번호를 지정하는 부분입니다.
원하는 비밀번호를 넣으면 됩니다.
한번 더 넣습니다.
MyBookLive:~# apt-get install mysql-server mysql-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
heirloom-mailx libdbd-mysql-perl libdbi-perl libhtml-template-perl
libmysqlclient16 libnet-daemon-perl libplrpc-perl mysql-client-5.1
mysql-common mysql-server-5.1 mysql-server-core-5.1
Suggested packages:
exim4 mail-transport-agent libipc-sharedcache-perl libterm-readkey-perl
tinyca
Recommended packages:
mailx
The following NEW packages will be installed:
heirloom-mailx libdbd-mysql-perl libdbi-perl libhtml-template-perl
libmysqlclient16 libnet-daemon-perl libplrpc-perl mysql-client
mysql-client-5.1 mysql-server mysql-server-5.1 mysql-server-core-5.1
The following packages will be upgraded:
mysql-common
1 upgraded, 12 newly installed, 0 to remove and 230 not upgraded.
Need to get 24.4MB of archives.
After this operation, 59.1MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.us.debian.org squeeze/main mysql-common 5.1.49-3 [70.9kB]
Get:2 http://ftp.us.debian.org squeeze/main libnet-daemon-perl 0.43-1
[46.6kB]
Get:3 http://ftp.us.debian.org squeeze/main libplrpc-perl 0.2020-2 [36.0kB]
Get:4 http://ftp.us.debian.org squeeze/main libdbi-perl 1.612-1 [881kB]
Get:5 http://ftp.us.debian.org squeeze/main libmysqlclient16 5.1.49-3
[1972kB]
Get:6 http://ftp.us.debian.org squeeze/main libdbd-mysql-perl 4.016-1 [141kB]
Get:7 http://ftp.us.debian.org squeeze/main mysql-client-5.1 5.1.49-3
[10.0MB]
Get:8 http://ftp.us.debian.org squeeze/main mysql-server-core-5.1 5.1.49-3
[4133kB]
Get:9 http://ftp.us.debian.org squeeze/main mysql-server-5.1 5.1.49-3
[6596kB]
Get:10 http://ftp.us.debian.org squeeze/main heirloom-mailx 12.4-2 [321kB]
Get:11 http://ftp.us.debian.org squeeze/main libhtml-template-perl 2.9-2
[65.9kB]
Get:12 http://ftp.us.debian.org squeeze/main mysql-client 5.1.49-3 [65.2kB]
Get:13 http://ftp.us.debian.org squeeze/main mysql-server 5.1.49-3 [65.4kB]
Fetched 24.4MB in 8min2s (50.6kB/s)
Preconfiguring packages ...
(Reading database ...
dpkg: warning: files list file for package `wd-nas' missing, assuming package
has no files currently installed.
dpkg: warning: files list file for package `ramlog' missing, assuming package
has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming
package has no files currently installed.
(Reading database ... 20392 files and directories currently installed.)
Preparing to replace mysql-common 5.0.51a-24+lenny2+spu1 (using .../mysql-
common_5.1.49-3_all.deb) ...
Unpacking replacement mysql-common ...
Selecting previously deselected package libnet-daemon-perl.
Unpacking libnet-daemon-perl (from .../libnet-daemon-perl_0.43-1_all.deb) ...
Selecting previously deselected package libplrpc-perl.
Unpacking libplrpc-perl (from .../libplrpc-perl_0.2020-2_all.deb) ...
Selecting previously deselected package libdbi-perl.
Unpacking libdbi-perl (from .../libdbi-perl_1.612-1_powerpc.deb) ...
Selecting previously deselected package libmysqlclient16.
Unpacking libmysqlclient16 (from .../libmysqlclient16_5.1.49-3_powerpc.deb)
...
Selecting previously deselected package libdbd-mysql-perl.
Unpacking libdbd-mysql-perl (from .../libdbd-mysql-perl_4.016-1_powerpc.deb)
...
Selecting previously deselected package mysql-client-5.1.
Unpacking mysql-client-5.1 (from .../mysql-client-5.1_5.1.49-3_powerpc.deb)
...
Selecting previously deselected package mysql-server-core-5.1.
Unpacking mysql-server-core-5.1 (from .../mysql-server-core-5.1_5.1.49-
3_powerpc.deb) ...
Processing triggers for man-db ...
Setting up mysql-common (5.1.49-3) ...
Installing new version of config file /etc/mysql/my.cnf ...
Selecting previously deselected package mysql-server-5.1.
(Reading database ...
dpkg: warning: files list file for package `wd-nas' missing, assuming package
has no files currently installed.
dpkg: warning: files list file for package `ramlog' missing, assuming package
has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming
package has no files currently installed.
(Reading database ... 20756 files and directories currently installed.)
Unpacking mysql-server-5.1 (from .../mysql-server-5.1_5.1.49-3_powerpc.deb)
...
Selecting previously deselected package heirloom-mailx.
Unpacking heirloom-mailx (from .../heirloom-mailx_12.4-2_powerpc.deb) ...
Selecting previously deselected package libhtml-template-perl.
Unpacking libhtml-template-perl (from .../libhtml-template-perl_2.9-
2_all.deb) ...
Selecting previously deselected package mysql-client.
Unpacking mysql-client (from .../mysql-client_5.1.49-3_all.deb) ...
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.1.49-3_all.deb) ...
Processing triggers for man-db ...
Setting up libnet-daemon-perl (0.43-1) ...
Setting up libplrpc-perl (0.2020-2) ...
Setting up libdbi-perl (1.612-1) ...
Setting up libmysqlclient16 (5.1.49-3) ...
Setting up libdbd-mysql-perl (4.016-1) ...
Setting up mysql-client-5.1 (5.1.49-3) ...
Setting up mysql-server-core-5.1 (5.1.49-3) ...
Setting up mysql-server-5.1 (5.1.49-3) ...
Stopping MySQL database server: mysqld.
131203 16:19:54 [Note] Plugin 'FEDERATED' is disabled.
131203 16:19:54 InnoDB: Started; log sequence number 0 44233
131203 16:19:54 InnoDB: Starting shutdown...
131203 16:19:59 InnoDB: Shutdown completed; log sequence number 0 44233
Starting MySQL database server: mysqld.
Checking for corrupt, not cleanly closed and upgrade needing tables..
Setting up heirloom-mailx (12.4-2) ...
update-alternatives: using /usr/bin/heirloom-mailx to provide /usr/bin/mailx
(mailx) in auto mode.
Setting up libhtml-template-perl (2.9-2) ...
Setting up mysql-client (5.1.49-3) ...
Setting up mysql-server (5.1.49-3) ...
MyBookLive:~#
대략 위와 같이 진행됩니다.
이제 php와 MySQL 연동을 위한 패키지 및 추가 패키지를 모두 설치합니다.
apt-get install php-pear php5-mysql php5-idn php5-imagick php5-imap php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-tidy php5-xmlrpc php5-xsl
위 내용 전부 한줄입니다. 실행합니다.
.
.
.
.
Get:9 http://ftp.us.debian.org squeeze/main libjasper1 1.900.1-7+squeeze1
[158kB]
Get:10 http://ftp.us.debian.org squeeze/main libjbig2dec0 0.11-1 [44.6kB]
Get:11 http://ftp.us.debian.org squeeze/main libpaper1 1.1.24 [21.3kB]
Get:12 http://ftp.us.debian.org squeeze/main libgs8 8.71~dfsg2-9+squeeze1
[6327kB]
Get:13 http://ftp.us.debian.org squeeze/main gsfonts
1:8.11+urwcyr1.0.7~pre44-4.2 [3364kB]
Get:14 http://ftp.us.debian.org squeeze/main ghostscript 8.71~dfsg2-
9+squeeze1 [83.9kB]
Get:15 http://ftp.us.debian.org squeeze/main mlock 8:2007e~dfsg-3.1 [34.0kB]
Get:16 http://ftp.us.debian.org squeeze/main libc-client2007e 8:2007e~dfsg-
3.1 [759kB]
Get:17 http://ftp.us.debian.org squeeze/main libgif4 4.1.6-9 [41.5kB]
Get:18 http://ftp.us.debian.org squeeze/main liblcms1 1.18.dfsg-1.2+b3
[117kB]
Get:19 http://ftp.us.debian.org squeeze/main liblqr-1-0 0.4.1-1 [41.1kB]
Get:20 http://ftp.us.debian.org squeeze/main libxt6 1:1.0.7-1+squeeze1
[185kB]
Get:21 http://ftp.us.debian.org squeeze/main libmagickcore3 8:6.6.0.4-
3+squeeze3 [1830kB]
Get:22 http://ftp.us.debian.org squeeze/main libmagickwand3 8:6.6.0.4-
3+squeeze3 [360kB]
Get:23 http://ftp.us.debian.org squeeze/main libming1 1:0.4.3-1+b1 [310kB]
Get:24 http://ftp.us.debian.org squeeze/main libpaper-utils 1.1.24 [18.1kB]
Get:25 http://ftp.us.debian.org squeeze/main libperl5.10 5.10.1-17squeeze6
[1160B]
Get:26 http://ftp.us.debian.org squeeze/main librecode0 3.6-17 [762kB]
Get:27 http://ftp.us.debian.org squeeze/main libsensors4 1:3.1.2-6+squeeze1
[53.2kB]
Get:28 http://ftp.us.debian.org squeeze/main libsnmp-base 5.4.3~dfsg-
2+squeeze1 [1097kB]
Get:29 http://ftp.us.debian.org squeeze/main libsnmp15 5.4.3~dfsg-2+squeeze1
[2176kB]
Get:30 http://ftp.us.debian.org squeeze/main libtidy-0.99-0 20091223cvs-1
[144kB]
Get:31 http://ftp.us.debian.org squeeze/main php5-idn 1.2b-6 [14.4kB]
Get:32 http://ftp.us.debian.org squeeze/main php5-imagick 3.0.0~rc1-1 [116kB]
Get:33 http://ftp.us.debian.org squeeze/main php5-imap 5.3.3-7+squeeze17
[34.0kB]
Get:34 http://ftp.us.debian.org squeeze/main php5-memcache 3.0.4-4+squeeze1
[49.2kB]
Get:35 http://ftp.us.debian.org squeeze/main php5-ming 1:0.4.3-1+b1 [179kB]
Get:36 http://ftp.us.debian.org squeeze/main php5-mysql 5.3.3-7+squeeze17
[72.6kB]
Get:37 http://ftp.us.debian.org squeeze/main pslib1 0.4.3-1+b1 [105kB]
Get:38 http://ftp.us.debian.org squeeze/main php5-ps 1.3.6-3+b1 [20.9kB]
Get:39 http://ftp.us.debian.org squeeze/main php5-pspell 5.3.3-7+squeeze17
[7560B]
Get:40 http://ftp.us.debian.org squeeze/main php5-recode 5.3.3-7+squeeze17
[4314B]
Get:41 http://ftp.us.debian.org squeeze/main php5-snmp 5.3.3-7+squeeze17
[10.7kB]
Get:42 http://ftp.us.debian.org squeeze/main php5-tidy 5.3.3-7+squeeze17
[17.8kB]
Get:43 http://ftp.us.debian.org squeeze/main php5-xmlrpc 5.3.3-7+squeeze17
[34.0kB]
Get:44 http://ftp.us.debian.org squeeze/main php5-xsl 5.3.3-7+squeeze17
[14.0kB]
Get:45 http://ftp.us.debian.org squeeze/main fancontrol 1:3.1.2-6+squeeze1
[41.1kB]
Get:46 http://ftp.us.debian.org squeeze/main lm-sensors 1:3.1.2-6+squeeze1
[108kB]
Fetched 28.9MB in 25s (1157kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ...
dpkg: warning: files list file for package `wd-nas' missing, assuming package
has no files currently installed.
dpkg: warning: files list file for package `ramlog' missing, assuming package
has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming
package has no files currently installed.
(Reading database ... 20870 files and directories currently installed.)
Removing php5-intl ...
Processing triggers for libapache2-mod-php5 ...
13798: old priority 0, new priority 0
Reloading web server config: apache2.
(Reading database ...
dpkg: warning: files list file for package `wd-nas' missing, assuming package
has no files currently installed.
dpkg: warning: files list file for package `ramlog' missing, assuming package
has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming
package has no files currently installed.
(Reading database ... 20869 files and directories currently installed.)
Preparing to replace perl-modules 5.10.1-17 (using .../perl-modules_5.10.1-
17squeeze6_all.deb) ...
Unpacking replacement perl-modules ...
Preparing to replace perl 5.10.1-17 (using .../perl_5.10.1-
17squeeze6_powerpc.deb) ...
Unpacking replacement perl ...
Preparing to replace perl-base 5.10.1-17 (using .../perl-base_5.10.1-
17squeeze6_powerpc.deb) ...
Unpacking replacement perl-base ...
Processing triggers for man-db ...
Setting up perl-base (5.10.1-17squeeze6) ...
Selecting previously deselected package libaspell15.
(Reading database ...
dpkg: warning: files list file for package `wd-nas' missing, assuming package
has no files currently installed.
dpkg: warning: files list file for package `ramlog' missing, assuming package
has no files currently installed.
dpkg: warning: files list file for package `libparted0' missing, assuming
package has no files currently installed.
(Reading database ... 20869 files and directories currently installed.)
Unpacking libaspell15 (from .../libaspell15_0.60.6-4_powerpc.deb) ...
Selecting previously deselected package aspell.
Unpacking aspell (from .../aspell_0.60.6-4_powerpc.deb) ...
Selecting previously deselected package aspell-en.
Unpacking aspell-en (from .../aspell-en_6.0-0-6_all.deb) ...
Selecting previously deselected package libtiff4.
Unpacking libtiff4 (from .../libtiff4_3.9.4-5+squeeze10_powerpc.deb) ...
Selecting previously deselected package libcupsimage2.
Unpacking libcupsimage2 (from .../libcupsimage2_1.4.4-7+squeeze3_powerpc.deb)
...
Selecting previously deselected package libjasper1.
Unpacking libjasper1 (from .../libjasper1_1.900.1-7+squeeze1_powerpc.deb) ...
Selecting previously deselected package libjbig2dec0.
Unpacking libjbig2dec0 (from .../libjbig2dec0_0.11-1_powerpc.deb) ...
Selecting previously deselected package libpaper1.
Unpacking libpaper1 (from .../libpaper1_1.1.24_powerpc.deb) ...
Selecting previously deselected package libgs8.
Unpacking libgs8 (from .../libgs8_8.71~dfsg2-9+squeeze1_powerpc.deb) ...
Selecting previously deselected package gsfonts.
Unpacking gsfonts (from .../gsfonts_1%3a8.11+urwcyr1.0.7~pre44-4.2_all.deb)
...
Selecting previously deselected package ghostscript.
Unpacking ghostscript (from .../ghostscript_8.71~dfsg2-
9+squeeze1_powerpc.deb) ...
Selecting previously deselected package mlock.
Unpacking mlock (from .../mlock_8%3a2007e~dfsg-3.1_powerpc.deb) ...
Selecting previously deselected package libc-client2007e.
Unpacking libc-client2007e (from .../libc-client2007e_8%3a2007e~dfsg-
3.1_powerpc.deb) ...
Selecting previously deselected package libgif4.
Unpacking libgif4 (from .../libgif4_4.1.6-9_powerpc.deb) ...
Selecting previously deselected package liblcms1.
Unpacking liblcms1 (from .../liblcms1_1.18.dfsg-1.2+b3_powerpc.deb) ...
Selecting previously deselected package liblqr-1-0.
Unpacking liblqr-1-0 (from .../liblqr-1-0_0.4.1-1_powerpc.deb) ...
Selecting previously deselected package libxt6.
Unpacking libxt6 (from .../libxt6_1%3a1.0.7-1+squeeze1_powerpc.deb) ...
Selecting previously deselected package libmagickcore3.
Unpacking libmagickcore3 (from .../libmagickcore3_8%3a6.6.0.4-
3+squeeze3_powerpc.deb) ...
Selecting previously deselected package libmagickwand3.
Unpacking libmagickwand3 (from .../libmagickwand3_8%3a6.6.0.4-
3+squeeze3_powerpc.deb) ...
Selecting previously deselected package libming1.
Unpacking libming1 (from .../libming1_1%3a0.4.3-1+b1_powerpc.deb) ...
Selecting previously deselected package libpaper-utils.
Unpacking libpaper-utils (from .../libpaper-utils_1.1.24_powerpc.deb) ...
Selecting previously deselected package libperl5.10.
Unpacking libperl5.10 (from .../libperl5.10_5.10.1-17squeeze6_powerpc.deb)
...
Selecting previously deselected package librecode0.
Unpacking librecode0 (from .../librecode0_3.6-17_powerpc.deb) ...
Selecting previously deselected package libsensors4.
Unpacking libsensors4 (from .../libsensors4_1%3a3.1.2-6+squeeze1_powerpc.deb)
...
Selecting previously deselected package libsnmp-base.
Unpacking libsnmp-base (from .../libsnmp-base_5.4.3~dfsg-2+squeeze1_all.deb)
...
Selecting previously deselected package libsnmp15.
Unpacking libsnmp15 (from .../libsnmp15_5.4.3~dfsg-2+squeeze1_powerpc.deb)
...
Selecting previously deselected package libtidy-0.99-0.
Unpacking libtidy-0.99-0 (from .../libtidy-0.99-0_20091223cvs-1_powerpc.deb)
...
Selecting previously deselected package php5-idn.
Unpacking php5-idn (from .../php5-idn_1.2b-6_powerpc.deb) ...
Selecting previously deselected package php5-imagick.
Unpacking php5-imagick (from .../php5-imagick_3.0.0~rc1-1_powerpc.deb) ...
Selecting previously deselected package php5-imap.
Unpacking php5-imap (from .../php5-imap_5.3.3-7+squeeze17_powerpc.deb) ...
Selecting previously deselected package php5-memcache.
Unpacking php5-memcache (from .../php5-memcache_3.0.4-4+squeeze1_powerpc.deb)
...
Selecting previously deselected package php5-ming.
Unpacking php5-ming (from .../php5-ming_1%3a0.4.3-1+b1_powerpc.deb) ...
Selecting previously deselected package php5-mysql.
Unpacking php5-mysql (from .../php5-mysql_5.3.3-7+squeeze17_powerpc.deb) ...
Selecting previously deselected package pslib1.
Unpacking pslib1 (from .../pslib1_0.4.3-1+b1_powerpc.deb) ...
Selecting previously deselected package php5-ps.
Unpacking php5-ps (from .../php5-ps_1.3.6-3+b1_powerpc.deb) ...
Selecting previously deselected package php5-pspell.
Unpacking php5-pspell (from .../php5-pspell_5.3.3-7+squeeze17_powerpc.deb)
...
Selecting previously deselected package php5-recode.
Unpacking php5-recode (from .../php5-recode_5.3.3-7+squeeze17_powerpc.deb)
...
Selecting previously deselected package php5-snmp.
Unpacking php5-snmp (from .../php5-snmp_5.3.3-7+squeeze17_powerpc.deb) ...
Selecting previously deselected package php5-tidy.
Unpacking php5-tidy (from .../php5-tidy_5.3.3-7+squeeze17_powerpc.deb) ...
Selecting previously deselected package php5-xmlrpc.
Unpacking php5-xmlrpc (from .../php5-xmlrpc_5.3.3-7+squeeze17_powerpc.deb)
...
Selecting previously deselected package php5-xsl.
Unpacking php5-xsl (from .../php5-xsl_5.3.3-7+squeeze17_powerpc.deb) ...
Selecting previously deselected package fancontrol.
Unpacking fancontrol (from .../fancontrol_1%3a3.1.2-6+squeeze1_all.deb) ...
Selecting previously deselected package lm-sensors.
Unpacking lm-sensors (from .../lm-sensors_1%3a3.1.2-6+squeeze1_powerpc.deb)
...
Processing triggers for man-db ...
Processing triggers for libapache2-mod-php5 ...
14390: old priority 0, new priority 0
Reloading web server config: apache2.
Setting up libaspell15 (0.60.6-4) ...
Setting up aspell (0.60.6-4) ...
aspell-autobuildhash: processing: en [en-common]
aspell-autobuildhash: processing: en [en-variant_0]
aspell-autobuildhash: processing: en [en-variant_1]
aspell-autobuildhash: processing: en [en-variant_2]
aspell-autobuildhash: processing: en [en_CA-w_accents-only]
aspell-autobuildhash: processing: en [en_CA-wo_accents-only]
aspell-autobuildhash: processing: en [en_GB-ise-w_accents-only]
aspell-autobuildhash: processing: en [en_GB-ise-wo_accents-only]
aspell-autobuildhash: processing: en [en_GB-ize-w_accents-only]
aspell-autobuildhash: processing: en [en_GB-ize-wo_accents-only]
aspell-autobuildhash: processing: en [en_US-w_accents-only]
aspell-autobuildhash: processing: en [en_US-wo_accents-only]
Setting up aspell-en (6.0-0-6) ...
Setting up libtiff4 (3.9.4-5+squeeze10) ...
Setting up libcupsimage2 (1.4.4-7+squeeze3) ...
Setting up libjasper1 (1.900.1-7+squeeze1) ...
Setting up libjbig2dec0 (0.11-1) ...
Setting up libpaper1 (1.1.24) ...
Creating config file /etc/papersize with new version
Setting up libgs8 (8.71~dfsg2-9+squeeze1) ...
Setting up gsfonts (1:8.11+urwcyr1.0.7~pre44-4.2) ...
Setting up ghostscript (8.71~dfsg2-9+squeeze1) ...
Setting up mlock (8:2007e~dfsg-3.1) ...
Setting up libc-client2007e (8:2007e~dfsg-3.1) ...
Setting up libgif4 (4.1.6-9) ...
Setting up liblcms1 (1.18.dfsg-1.2+b3) ...
Setting up liblqr-1-0 (0.4.1-1) ...
Setting up libxt6 (1:1.0.7-1+squeeze1) ...
Setting up libmagickcore3 (8:6.6.0.4-3+squeeze3) ...
Setting up libmagickwand3 (8:6.6.0.4-3+squeeze3) ...
Setting up libming1 (1:0.4.3-1+b1) ...
Setting up libpaper-utils (1.1.24) ...
Setting up libperl5.10 (5.10.1-17squeeze6) ...
Setting up librecode0 (3.6-17) ...
Setting up libsensors4 (1:3.1.2-6+squeeze1) ...
Setting up libsnmp-base (5.4.3~dfsg-2+squeeze1) ...
Setting up libsnmp15 (5.4.3~dfsg-2+squeeze1) ...
Setting up libtidy-0.99-0 (20091223cvs-1) ...
Setting up php5-idn (1.2b-6) ...
Creating config file /etc/php5/conf.d/idn.ini with new version
Setting up php5-imagick (3.0.0~rc1-1) ...
Creating config file /etc/php5/conf.d/imagick.ini with new version
Setting up php5-imap (5.3.3-7+squeeze17) ...
Setting up php5-memcache (3.0.4-4+squeeze1) ...
Creating config file /etc/php5/conf.d/memcache.ini with new version
Setting up php5-ming (1:0.4.3-1+b1) ...
Setting up php5-mysql (5.3.3-7+squeeze17) ...
Setting up pslib1 (0.4.3-1+b1) ...
Setting up php5-ps (1.3.6-3+b1) ...
Setting up php5-pspell (5.3.3-7+squeeze17) ...
Setting up php5-recode (5.3.3-7+squeeze17) ...
Setting up php5-snmp (5.3.3-7+squeeze17) ...
Setting up php5-tidy (5.3.3-7+squeeze17) ...
Setting up php5-xmlrpc (5.3.3-7+squeeze17) ...
Setting up php5-xsl (5.3.3-7+squeeze17) ...
Setting up fancontrol (1:3.1.2-6+squeeze1) ...
Setting up perl-modules (5.10.1-17squeeze6) ...
Setting up perl (5.10.1-17squeeze6) ...
update-alternatives: warning: forcing reinstallation of alternative
/usr/bin/prename because link group rename is broken.
Setting up lm-sensors (1:3.1.2-6+squeeze1) ...
MyBookLive:~#
윗부분이 좀 짤렸지만 대략 위와 같이 진행됩니다.
/etc/init.d/apache2 restart
위 명령어로 아파치 재시작
MyBookLive:~# /etc/init.d/apache2 restart
14963: old priority 0, new priority 0
Restarting web server: apache2.
MyBookLive:~#
위와 같이 아파치가 재시작 됩니다.
3. DataBase 생성하기
이제 Mysql에서 DB를 생성합니다.
mysql -u root -p
위 명령어를 치면 암호를 누르라고 나오는데
아까 초반에 파란화면에서 적은 MySQL 암호를 넣으면 됩니다.
이 암호가 나중에 그누보드 설치할때도 꼭 필요한 MySQL의 암호이므로, 꼭 기억해두시길 바랍니다.
MyBookLive:/DataVolume# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1993
Server version: 5.1.49-3 (Debian)
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
위와 같은 화면이 나올 것입니다.
CREATE DATABASE home DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
위와 같이 home라는 DB를 생성합니다.
mysql> CREATE DATABASE home DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
Query OK, 1 row affected (0.46 sec)
mysql>
이런 식으로 나옵니다.
exit
위 명령어로 mysql에서 빠져나옵니다.
4. 그누보드 설치하기
인터넷 브라우저에
http://sir.co.kr/bbs/board.php?bo_table=g5_pds
위 주소로 가서 그누보드5 최신버전을 받습니다. (2013년 12월 3일 현재 그누보드 5.0b12 가 최신버전)
다운 받은 파일을 WINSCP로 접속하여 /DataVolume/에 넣습니다.
WINSCP 프로그램 강좌는
리눅스에서 권한 문제없이 파일 및 폴더 이동시키기 (WINSCP 이용)
위 강좌를 참조하세요.
▲ 위와 같이 넣으면 됩니다.
그럼 /DataVolume/g5-5.0b12.tar.gz 이런 식으로 파일이 들어있을겁니다.
Putty로 돌아가서 압축파일을 풉니다.
cd /DataVolume
tar xvzf g5-5.0b12.tar.gz
파일이 쫙 풀립니다.
mv g5-5.0b12 www
위 명령어로 폴더 이름을 바꿉니다.
rm -rf g5-5.0b12.tar.gz
기존 압축파일을 지웁니다.
mkdir /DataVolume/www/data
chmod -R 755 /DataVolume/www
chmod 707 /DataVolume/www/data
chown -R www-data /DataVolume/www
위 4명령어를 순서대로 넣으면 그누보드 권한 관련된 부분은 다 정리되었습니다.
5. 아파치 설정 추가하기
웹서버 관련해서 포트를 새로 생성할 것입니다.
실수를 줄이고, 추후 설정도 쉬워지거든요.
※ 2014년 4월 27일 수정
기존엔 8888로 해줬었는데, 비트토렌트 싱크가 8888을 강제로 할당하는 바람에 홈페이지 전용포트를 수정합니다.
8800으로 진행하겠습니다.
8808 이나 8880 등 아무꺼나 넣어도 됩니다.
다만 일관되게 넣어야 합니다.
nano /etc/apache2/sites-available/web
위 명령어로 새로 생성합니다.
빈 화면이 나오는데요.
<VirtualHost *:8800>
DocumentRoot "/DataVolume/www"
DirectoryIndex index.php
<Directory />
AllowOverride None
Options Multiviews
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel warn
</VirtualHost>
위 내용을 그대로 붙여넣기합니다.
붙여넣는 방법은 아시죠? 소스 부분에 마우스를 갖다대면 아이콘이 4개 생기는데 제일 왼쪽 아이콘을 누르면 팝업이 뜹니다.
그걸 복사해서 우클릭하면 쫙 들어갑니다.
컨트롤 O. 엔터, 컨트롤 X로 저장 후 나갑니다.
cp /etc/apache2/sites-available/web /etc/apache2/sites-enabled/000-web
위 명령어로 실제 적용될 폴더로 복사합니다.
nano /etc/apache2/ports.conf
위 명령어로 포트를 추가할 것입니다.
NameVirtualHost *:80
Listen 80
위와 같은 내용 바로 밑에
NameVirtualHost *:8800
Listen 8800
위 내용을 추가한 후 저장하고 빠져나옵니다.
/etc/init.d/apache2 restart
위 명령어로 아파치를 재실행합니다.
MyBookLive:/DataVolume# /etc/init.d/apache2 restart
29774: old priority 0, new priority 0
Restarting web server: apache2 ... waiting ...
MyBookLive:/DataVolume#
위와 같이 재실행됩니다.
6. 그누보드 설정하기
이제 웹브라우저에서 http://MBL내부IP:8800 로 접속해봅시다.
▲ 위와 같이 오류가 있다고 나옵니다.
그누보드5 설치하기를 누릅니다.
▲ 동의합니다에 체크하고 다음을 누릅니다.
▲ 위와 같이 내용을 넣고 다음을 누릅니다.
한글로 된 부분은 본인에 맞게 설정하시면 됩니다.
▲ 이제 끝났습니다.
메인화면으로 가기를 누릅니다.
▲ 위 화면이 나오면 최종 성공입니다. ^^
▲ 외부에서 접속하시려면 포트포워딩을 해야겠죠?
내부포트가 8800이므로 외부도 8800로 잡아서 접속해보겠습니다.
▲ 외부에서도 접속되는 것을 확인할 수 있습니다
http://DDNS:8800 넣으면 접속이 되겠죠.
그리고 옆에 포트8888을 없앨수도 있습니다.
▲ 위와 같이 8888을 80으로 포트포워딩을 해주면 됩니다.
그럼 80을 안붙여도 자동으로 80으로 인식하거든요.
▲ 위와 같이 http://DDNS 만 넣어도 접속이 되는거죠.
다만 이것은 인터넷 회사에 따라서 80포트가 차단이 되어 있는 경우가 많습니다.
그래서 이렇게 설정해보시고, 잘 되면 좋지만, 안된다면 위에 8888로 포트포워딩을 해줘야겠죠. ㅎㅎ
※ 내부포트와 외부포트를 바꾸니 adm 폴더 접근 거부 버그가 있습니다.
일단 내부 외부포트를 같게 포트포워딩하시길 바랍니다.
웹서버 설치가 끝났으니, 테마나 스킨은 밑의 게시물을 참조하세요!
-
등록일 2016.01.23
-
등록일 2015.12.23WD My Cloud 시놀로지OS 사용기댓글 102
-
등록일 2014.10.07
-
등록일 2014.10.06
관련자료
-
서명우성짱의 NAS를 운영하고 있습니다.
저의 즐거움이 여러분의 즐거움이면 좋겠습니다.
제이님의 댓글
Mysql 설치시 에러가 발생합니다.
Preparing to replace libc-bin 2.11.2-2 (using .../libc-bin_2.13-38+deb7u8_powerpc.deb) ...
Unpacking replacement libc-bin ...
dpkg: error processing /var/cache/apt/archives/libc-bin_2.13-38+deb7u8_powerpc.deb (--unpack):
trying to overwrite '/etc/ld.so.conf.d/libc.conf', which is also in package wd-lib 01.04.01-81092
Processing triggers for man-db ...
Errors were encountered while processing:
/var/cache/apt/archives/libc-bin_2.13-38+deb7u8_powerpc.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
MyBookLive:~#
이런식으로 발생하는데 워낙 이런건 문외한이고 따라만 하려니 어떻게 해결해야할지 모르겠습니다.
알려주시면 감사하겠습니다~