WD My Cloud에 php 패키지 설치 및 업그레이드 하기
컨텐츠 정보
- 43,903 조회
- 16 댓글
- 0 추천
- 목록
본문
0. 펌웨어 버전 확인하기
현재 이 강좌는 펌웨어 v03.xx.xx.xxx에 최적화되어 있습니다.
v04 버전의 펌웨어에서 이 강좌를 따라할 시 100% 벽돌이 되니 참고하시길 바랍니다.
다운그레이드 강좌는
http://www.wsgvet.com/iomega/1006
위 링크를 참조하세요~!
1. 들어가며
기존 wheezy 기반으로 깔려있는 php 패키지가 실험판이기 때문에 gd나 mcrypt 같은 패키지는 설치할 수 없습니다.
그래서 jessie 기반으로 소스리스트를 올린 다음 통채로 올릴 것입니다.
2. 소스리스트 수정하기
> /etc/apt/sources.list
위 명령어로 소스리스트를 초기화합니다.
echo deb http://ftp.us.debian.org/debian/ jessie main >> /etc/apt/sources.list
위 명령어로 jessie 소스를 추가합니다.
apt-get update
위 명령어로 소스리스트를 업데이트합니다.
WDMyCloud# apt-get update
Get:1 http://ftp.us.debian.org jessie InRelease [153 kB]
Get:2 http://ftp.us.debian.org jessie/main Translation-en [4251 kB]
Get:3 http://ftp.us.debian.org jessie/main armhf Packages [6097 kB]
Fetched 10.5 MB in 43s (239 kB/s)
Reading package lists... Done
WDMyCloud#
위와 같이 진행됩니다.
3. php패키지 설치 및 업그레이드
※ 주의 : 대시보드의 이메일 알림이 되지 않습니다. 전원 종료가 안될 가능성이 있습니다.
순정으로 잘 쓰신다면 굳이 모험을 할 필요가 없습니다.
꼭 필요한 기능인지 아닌지 잘 판단하고 결정하시길 바랍니다.
한번 업그레이드를 하게 되면 돌이키기가 어렵습니다.
분해 후 공장초기화를 해야되기 때문에 번거로운 작업입니다.
펌웨어 업그레이드만 하면 다 돌아옵니다.
apt-get install php5 php5-gd php5-mysql
위 명령어로 필요한 패키지를 설치합니다.
처음에 물어보면 y 엔터
그 다음에 파란 화면에서
keep the local version currently installed
keep the local version currently installed
위와 같이 두번다 위와 같이 선택 후 엔터를 누릅니다.
WDMyCloud:~# apt-get install php5 php5-gd php5-mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
ttf-dejavu-core
Use 'apt-get autoremove' to remove it.
The following extra packages will be installed:
fontconfig-config fonts-dejavu-core libapache2-mod-php5 libfontconfig1
libgd3 libjbig0 libjson-c2 libtiff5 libvpx1 php-apc php5-apcu php5-cli
php5-common php5-curl php5-json php5-sqlite ttf-dejavu-core
Suggested packages:
php-pear libgd-tools php5-user-cache
Recommended packages:
php5-readline
The following NEW packages will be installed:
fonts-dejavu-core libgd3 libjbig0 libjson-c2 libtiff5 libvpx1 php5 php5-apcu
php5-gd php5-json php5-mysql
The following packages will be upgraded:
fontconfig-config libapache2-mod-php5 libfontconfig1 php-apc php5-cli
php5-common php5-curl php5-sqlite ttf-dejavu-core
9 upgraded, 11 newly installed, 0 to remove and 251 not upgraded.
Need to get 7069 kB of archives.
After this operation, 4989 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
.
.
.
.
dpkg: warning: files list file for package 'libk5crypto3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgssglue1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libunistring0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwbclient0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libfuse2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgssapi-krb5-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libparted0debian1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgd2-xpm:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libconfuse0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libexif12:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libffi5:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libflac8:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libdbus-1-3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxml2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libfreetype6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxdmcp6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpam-cap:armhf' missing; assuming package has no files currently installed
(Reading database ... 25132 files and directories currently installed.)
Preparing to replace ttf-dejavu-core 2.33-3 (using .../ttf-dejavu-core_2.33+svn2514-3_all.deb) ...
Unpacking replacement ttf-dejavu-core ...
Selecting previously unselected package fonts-dejavu-core.
Unpacking fonts-dejavu-core (from .../fonts-dejavu-core_2.33+svn2514-3_all.deb) ...
Preparing to replace libfontconfig1:armhf 2.9.0-7.1 (using .../libfontconfig1_2.11.0-2_armhf.deb) ...
Unpacking replacement libfontconfig1:armhf ...
Preparing to replace fontconfig-config 2.9.0-7.1 (using .../fontconfig-config_2.11.0-2_all.deb) ...
Moving obsolete conffile /etc/fonts/conf.avail/10-autohint.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/10-no-sub-pixel.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/10-sub-pixel-bgr.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/10-sub-pixel-rgb.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/10-sub-pixel-vbgr.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/10-sub-pixel-vrgb.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/10-unhinted.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/11-lcdfilter-default.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/11-lcdfilter-legacy.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/11-lcdfilter-light.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/20-fix-globaladvance.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/20-unhint-small-vera.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/25-unhint-nonlatin.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/30-metric-aliases.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/30-urw-aliases.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/40-nonlatin.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/45-latin.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/49-sansserif.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/50-user.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/51-local.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/60-latin.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/65-fonts-persian.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/65-khmer.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/65-nonlatin.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/69-unifont.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/70-force-bitmaps.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/70-no-bitmaps.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/70-yes-bitmaps.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/80-delicious.conf out of the way...
Moving obsolete conffile /etc/fonts/conf.avail/90-synthetic.conf out of the way...
Moving obsolete conffile /etc/fonts/fonts.dtd out of the way...
Unpacking replacement fontconfig-config ...
Selecting previously unselected package libjbig0:armhf.
Unpacking libjbig0:armhf (from .../libjbig0_2.0-2_armhf.deb) ...
Selecting previously unselected package libtiff5:armhf.
Unpacking libtiff5:armhf (from .../libtiff5_4.0.3-7_armhf.deb) ...
Selecting previously unselected package libvpx1:armhf.
Unpacking libvpx1:armhf (from .../libvpx1_1.3.0-1_armhf.deb) ...
Selecting previously unselected package libgd3:armhf.
Unpacking libgd3:armhf (from .../libgd3_2.1.0-3+b1_armhf.deb) ...
Preparing to replace php-apc 3.1.13-1 (using .../php-apc_4.0.2-2_all.deb) ...
Unpacking replacement php-apc ...
Selecting previously unselected package php5-apcu.
Unpacking php5-apcu (from .../php5-apcu_4.0.2-2_armhf.deb) ...
Preparing to replace libapache2-mod-php5 5.4.11-1 (using .../libapache2-mod-php5_5.5.7+dfsg-2_armhf.deb) ...
Unpacking replacement libapache2-mod-php5 ...
Preparing to replace php5-sqlite 5.4.11-1 (using .../php5-sqlite_5.5.7+dfsg-2_armhf.deb) ...
Unpacking replacement php5-sqlite ...
Preparing to replace php5-curl 5.4.11-1 (using .../php5-curl_5.5.7+dfsg-2_armhf.deb) ...
Unpacking replacement php5-curl ...
Preparing to replace php5-cli 5.4.11-1 (using .../php5-cli_5.5.7+dfsg-2_armhf.deb) ...
Unpacking replacement php5-cli ...
Selecting previously unselected package libjson-c2:armhf.
Unpacking libjson-c2:armhf (from .../libjson-c2_0.11-3_armhf.deb) ...
Preparing to replace php5-common 5.4.11-1 (using .../php5-common_5.5.7+dfsg-2_armhf.deb) ...
Unpacking replacement php5-common ...
dpkg: warning: unable to delete old directory '/etc/php5/conf.d': Directory not empty
Selecting previously unselected package php5-json.
Unpacking php5-json (from .../php5-json_1.3.2-2_armhf.deb) ...
Selecting previously unselected package php5-gd.
Unpacking php5-gd (from .../php5-gd_5.5.7+dfsg-2_armhf.deb) ...
Selecting previously unselected package php5-mysql.
Unpacking php5-mysql (from .../php5-mysql_5.5.7+dfsg-2_armhf.deb) ...
Selecting previously unselected package php5.
Unpacking php5 (from .../php5_5.5.7+dfsg-2_all.deb) ...
Processing triggers for man-db ...
Setting up fonts-dejavu-core (2.33+svn2514-3) ...
Setting up ttf-dejavu-core (2.33+svn2514-3) ...
Setting up fontconfig-config (2.11.0-2) ...
Installing new version of config file /etc/fonts/fonts.conf ...
Installing new version of config file /etc/fonts/conf.d/README ...
Removing obsolete conffile /etc/fonts/conf.avail/10-autohint.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/10-no-sub-pixel.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/10-sub-pixel-bgr.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/10-sub-pixel-rgb.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/10-sub-pixel-vbgr.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/10-sub-pixel-vrgb.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/10-unhinted.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/11-lcdfilter-default.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/11-lcdfilter-legacy.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/11-lcdfilter-light.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/20-fix-globaladvance.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/20-unhint-small-vera.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/25-unhint-nonlatin.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/30-metric-aliases.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/30-urw-aliases.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/40-nonlatin.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/45-latin.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/49-sansserif.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/50-user.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/51-local.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/60-latin.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/65-fonts-persian.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/65-khmer.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/65-nonlatin.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/69-unifont.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/70-force-bitmaps.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/70-no-bitmaps.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/70-yes-bitmaps.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/80-delicious.conf ...
Removing obsolete conffile /etc/fonts/conf.avail/90-synthetic.conf ...
Removing obsolete conffile /etc/fonts/fonts.dtd ...
Setting up libfontconfig1:armhf (2.11.0-2) ...
Setting up libjbig0:armhf (2.0-2) ...
Setting up libtiff5:armhf (4.0.3-7) ...
Setting up libvpx1:armhf (1.3.0-1) ...
Setting up libgd3:armhf (2.1.0-3+b1) ...
Setting up libjson-c2:armhf (0.11-3) ...
Setting up php5-common (5.5.7+dfsg-2) ...
php5_invoke: Enable module pdo for apache2 SAPI
php5_invoke: Enable module pdo for cli SAPI
Creating config file /etc/php5/mods-available/opcache.ini with new version
php5_invoke: Enable module opcache for apache2 SAPI
php5_invoke: Enable module opcache for cli SAPI
Setting up php5-json (1.3.2-2) ...
php5_invoke: Enable module json for apache2 SAPI
php5_invoke: Enable module json for cli SAPI
Setting up php5-apcu (4.0.2-2) ...
php5_invoke: Enable module apcu for apache2 SAPI
php5_invoke: Enable module apcu for cli SAPI
Setting up php-apc (4.0.2-2) ...
rmdir: failed to remove `/usr/share/doc/php-apc': Directory not empty
Setting up libapache2-mod-php5 (5.5.7+dfsg-2) ...
php5_invoke json: already enabled for apache2 SAPI
php5_invoke opcache: already enabled for apache2 SAPI
php5_invoke apcu: already enabled for apache2 SAPI
php5_invoke pdo: already enabled for apache2 SAPI
apache2_invoke php5: No action required
Setting up php5-sqlite (5.5.7+dfsg-2) ...
php5_invoke: Enable module sqlite3 for apache2 SAPI
php5_invoke: Enable module sqlite3 for cli SAPI
php5_invoke: Enable module pdo_sqlite for apache2 SAPI
php5_invoke: Enable module pdo_sqlite for cli SAPI
Setting up php5-curl (5.5.7+dfsg-2) ...
php5_invoke: Enable module curl for apache2 SAPI
php5_invoke: Enable module curl for cli SAPI
Setting up php5-cli (5.5.7+dfsg-2) ...
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/php5 because link group php is broken
php5_invoke pdo_sqlite: already enabled for cli SAPI
php5_invoke json: already enabled for cli SAPI
php5_invoke sqlite3: already enabled for cli SAPI
php5_invoke opcache: already enabled for cli SAPI
php5_invoke curl: already enabled for cli SAPI
php5_invoke apcu: already enabled for cli SAPI
php5_invoke pdo: already enabled for cli SAPI
Setting up php5-gd (5.5.7+dfsg-2) ...
Creating config file /etc/php5/mods-available/gd.ini with new version
php5_invoke: Enable module gd for apache2 SAPI
php5_invoke: Enable module gd for cli SAPI
Setting up php5-mysql (5.5.7+dfsg-2) ...
Creating config file /etc/php5/mods-available/mysql.ini with new version
php5_invoke: Enable module mysql for apache2 SAPI
php5_invoke: Enable module mysql for cli SAPI
Creating config file /etc/php5/mods-available/mysqli.ini with new version
php5_invoke: Enable module mysqli for apache2 SAPI
php5_invoke: Enable module mysqli for cli SAPI
Creating config file /etc/php5/mods-available/pdo_mysql.ini with new version
php5_invoke: Enable module pdo_mysql for apache2 SAPI
php5_invoke: Enable module pdo_mysql for cli SAPI
Setting up php5 (5.5.7+dfsg-2) ...
Processing triggers for libc-bin ...
Processing triggers for libapache2-mod-php5 ...
WDMyCloud:~#
너무 길어서 중간에 짤렸씁니다만 마지막에 위와 같이 설치가 되면 성공입니다.
/etc/init.d/apache2 restart
위 명령어로 아파치를 재시작합니다.
WDMyCloud:~# /etc/init.d/apache2 restart
11370 (process ID) old priority 0, new priority 0
[ ok ] Restarting web server: apache2 ... waiting .
WDMyCloud:~#
위와 같이 재시작됩니다.
apt-get install php5-mcrypt
위 명령어로 추가 패키지를 설치합니다. (암호화 관련 : pydio 및 owncloud에서 이용)
처음에 y 엔터 누르면 설치됩니다.
Get:25 http://ftp.us.debian.org/debian/ jessie/main libgs9-common all 9.05~dfsg-8 [1981 kB]
Get:26 http://ftp.us.debian.org/debian/ jessie/main libgs9 armhf 9.05~dfsg-8+b1 [1589 kB]
Get:27 http://ftp.us.debian.org/debian/ jessie/main gsfonts all 1:8.11+urwcyr1.0.7~pre44-4.2 [3364 kB]
Get:28 http://ftp.us.debian.org/debian/ jessie/main ghostscript armhf 9.05~dfsg-8+b1 [81.7 kB]
Get:29 http://ftp.us.debian.org/debian/ jessie/main libpaper-utils armhf 1.1.24+nmu2 [17.8 kB]
Get:30 http://ftp.us.debian.org/debian/ jessie/main php5-imagick armhf 3.1.2-1 [91.2 kB]
Fetched 15.9 MB in 41s (378 kB/s)
Preconfiguring packages ...
Selecting previously unselected package fonts-droid.
dpkg: warning: files list file for package 'libssh2-1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxau6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblockfile1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libkrb5-3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwrap0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtagc0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libcap2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libglib2.0-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgphoto2-port0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpng12-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtalloc2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libevent-2.0-5:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libedit2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libldap-2.4-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libavahi-client3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgphoto2-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtag1c2a:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblua5.1-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpkcs11-helper1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpcre3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libavahi-common3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsensors4:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libx11-6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libnfsidmap2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libbsd0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libavahi-common-data:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libjpeg8:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libsasl2-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libcurl3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtirpc1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libkrb5support0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'librtmp0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpcap0.8:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libdevmapper1.02.1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libexpat1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libltdl7:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libkeyutils1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libreadline5:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libantlr3c-3.2-0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libasound2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxcb1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtdb1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxpm4:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libtag1-vanilla:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'liblzo2-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libogg0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libmagic1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libk5crypto3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgssglue1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libunistring0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libwbclient0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libfuse2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgssapi-krb5-2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libparted0debian1:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libgd2-xpm:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libconfuse0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libexif12:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libffi5:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libflac8:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libdbus-1-3:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxml2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libfreetype6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libxdmcp6:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libpam-cap:armhf' missing; assuming package has no files currently installed
(Reading database ... 24878 files and directories currently installed.)
Unpacking fonts-droid (from .../fonts-droid_1%3a4.3-2_all.deb) ...
Selecting previously unselected package imagemagick-common.
Unpacking imagemagick-common (from .../imagemagick-common_8%3a6.7.7.10-7_all.deb) ...
Selecting previously unselected package libcups2:armhf.
Unpacking libcups2:armhf (from .../libcups2_1.7.1-2_armhf.deb) ...
Selecting previously unselected package libcupsimage2:armhf.
Unpacking libcupsimage2:armhf (from .../libcupsimage2_1.7.1-2_armhf.deb) ...
Selecting previously unselected package libcupsfilters1:armhf.
Unpacking libcupsfilters1:armhf (from .../libcupsfilters1_1.0.43-1+b1_armhf.deb) ...
Selecting previously unselected package gcc-4.8-base:armhf.
Unpacking gcc-4.8-base:armhf (from .../gcc-4.8-base_4.8.2-14_armhf.deb) ...
Selecting previously unselected package libgomp1:armhf.
Unpacking libgomp1:armhf (from .../libgomp1_4.8.2-14_armhf.deb) ...
Selecting previously unselected package x11-common.
Unpacking x11-common (from .../x11-common_1%3a7.7+5_all.deb) ...
Selecting previously unselected package libice6:armhf.
Unpacking libice6:armhf (from .../libice6_2%3a1.0.8-2_armhf.deb) ...
Selecting previously unselected package libjasper1:armhf.
Unpacking libjasper1:armhf (from .../libjasper1_1.900.1-14_armhf.deb) ...
Selecting previously unselected package liblcms2-2:armhf.
Unpacking liblcms2-2:armhf (from .../liblcms2-2_2.2+git20110628-2.3+b1_armhf.deb) ...
Selecting previously unselected package liblqr-1-0:armhf.
Unpacking liblqr-1-0:armhf (from .../liblqr-1-0_0.4.1-2_armhf.deb) ...
Selecting previously unselected package libsm6:armhf.
Unpacking libsm6:armhf (from .../libsm6_2%3a1.2.1-2_armhf.deb) ...
Preparing to replace libx11-6:armhf 2:1.5.0-1 (using .../libx11-6_2%3a1.6.2-1_armhf.deb) ...
Unpacking replacement libx11-6:armhf ...
Selecting previously unselected package libxext6:armhf.
Unpacking libxext6:armhf (from .../libxext6_2%3a1.3.2-1_armhf.deb) ...
Selecting previously unselected package libxt6:armhf.
Unpacking libxt6:armhf (from .../libxt6_1%3a1.1.4-1_armhf.deb) ...
Selecting previously unselected package libmagickcore5:armhf.
Unpacking libmagickcore5:armhf (from .../libmagickcore5_8%3a6.7.7.10-7_armhf.deb) ...
Selecting previously unselected package libmagickwand5:armhf.
Unpacking libmagickwand5:armhf (from .../libmagickwand5_8%3a6.7.7.10-7_armhf.deb) ...
Selecting previously unselected package libpaper1:armhf.
Unpacking libpaper1:armhf (from .../libpaper1_1.1.24+nmu2_armhf.deb) ...
Selecting previously unselected package libmcrypt4.
Unpacking libmcrypt4 (from .../libmcrypt4_2.5.8-3.1_armhf.deb) ...
Selecting previously unselected package php5-mcrypt.
Unpacking php5-mcrypt (from .../php5-mcrypt_5.5.8+dfsg-3_armhf.deb) ...
Selecting previously unselected package poppler-data.
Unpacking poppler-data (from .../poppler-data_0.4.6-4_all.deb) ...
Selecting previously unselected package libijs-0.35.
Unpacking libijs-0.35 (from .../libijs-0.35_0.35-8+b1_armhf.deb) ...
Selecting previously unselected package libjbig2dec0.
Unpacking libjbig2dec0 (from .../libjbig2dec0_0.11+20120125-1_armhf.deb) ...
Selecting previously unselected package libgs9-common.
Unpacking libgs9-common (from .../libgs9-common_9.05~dfsg-8_all.deb) ...
Selecting previously unselected package libgs9.
Unpacking libgs9 (from .../libgs9_9.05~dfsg-8+b1_armhf.deb) ...
Selecting previously unselected package gsfonts.
Unpacking gsfonts (from .../gsfonts_1%3a8.11+urwcyr1.0.7~pre44-4.2_all.deb) ...
Selecting previously unselected package ghostscript.
Unpacking ghostscript (from .../ghostscript_9.05~dfsg-8+b1_armhf.deb) ...
Selecting previously unselected package libpaper-utils.
Unpacking libpaper-utils (from .../libpaper-utils_1.1.24+nmu2_armhf.deb) ...
Selecting previously unselected package php5-imagick.
Unpacking php5-imagick (from .../php5-imagick_3.1.2-1_armhf.deb) ...
Processing triggers for man-db ...
Processing triggers for libapache2-mod-php5 ...
Setting up fonts-droid (1:4.3-2) ...
Setting up imagemagick-common (8:6.7.7.10-7) ...
Setting up libcups2:armhf (1.7.1-2) ...
Setting up gcc-4.8-base:armhf (4.8.2-14) ...
Setting up libgomp1:armhf (4.8.2-14) ...
Setting up x11-common (1:7.7+5) ...
[ ok ] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix.
Setting up libice6:armhf (2:1.0.8-2) ...
Setting up libjasper1:armhf (1.900.1-14) ...
Setting up liblcms2-2:armhf (2.2+git20110628-2.3+b1) ...
Setting up liblqr-1-0:armhf (0.4.1-2) ...
Setting up libsm6:armhf (2:1.2.1-2) ...
Setting up libx11-6:armhf (2:1.6.2-1) ...
Setting up libxext6:armhf (2:1.3.2-1) ...
Setting up libxt6:armhf (1:1.1.4-1) ...
Setting up libmagickcore5:armhf (8:6.7.7.10-7) ...
Setting up libmagickwand5:armhf (8:6.7.7.10-7) ...
Setting up libpaper1:armhf (1.1.24+nmu2) ...
Creating config file /etc/papersize with new version
Setting up libmcrypt4 (2.5.8-3.1) ...
Setting up php5-mcrypt (5.5.8+dfsg-3) ...
Creating config file /etc/php5/mods-available/mcrypt.ini with new version
php5_invoke: Enable module mcrypt for apache2 SAPI
php5_invoke: Enable module mcrypt for cli SAPI
Setting up poppler-data (0.4.6-4) ...
Setting up libijs-0.35 (0.35-8+b1) ...
Setting up libjbig2dec0 (0.11+20120125-1) ...
Setting up libgs9-common (9.05~dfsg-8) ...
Setting up gsfonts (1:8.11+urwcyr1.0.7~pre44-4.2) ...
Setting up libpaper-utils (1.1.24+nmu2) ...
Setting up php5-imagick (3.1.2-1) ...
php5_invoke: Enable module imagick for apache2 SAPI
php5_invoke: Enable module imagick for cli SAPI
Setting up libcupsimage2:armhf (1.7.1-2) ...
Setting up libcupsfilters1:armhf (1.0.43-1+b1) ...
Setting up libgs9 (9.05~dfsg-8+b1) ...
Setting up ghostscript (9.05~dfsg-8+b1) ...
Processing triggers for libc-bin ...
Processing triggers for libapache2-mod-php5 ...
WDMyCloud:/DataVolume#
대략 위와 같이 설치가 됩니다.
/etc/init.d/apache2 restart
위 명령어로 아파치를 재시작합니다.
WDMyCloud:~# /etc/init.d/apache2 restart
11370 (process ID) old priority 0, new priority 0
[ ok ] Restarting web server: apache2 ... waiting .
WDMyCloud:~#
위와 같이 재시작됩니다.
참고로 php5-imagick가 필요하시다면 wd-nas의 패키지 리스트를 삭제 또는 파일명을 변경해야 합니다.
/var/lib/dpkg/info/
위 폴더에 있는 wd-nas로 시작하는 6개의 파일 뒤에 확장자를 .bak으로 고친 후 밑의 명령어를 넣으면 바로 설치됩니다.
apt-get install php5-imagick
4. 대시보드 복구하기
php를 업그레이드를 하면 대시보드에서 암호를 물어보지 않습니다.
대시보드 접속이 안되는거죠.
log를 찾아보니 timezone 문제라서 그 부분을 해결하니 잘 됩니다.
nano /etc/php5/apache2/php.ini
위 명령어로 php 설정으로 들어갑니다.
컨트롤 + w 누르면 밑에 Search 라고 뜨는데
timezone 을 넣고 엔터 누르면
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =
위와 같은 내용이 나옵니다.
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = Asia/Seoul
위와 같이 바꾼 후 컨트롤 + O, 엔터, 컨트롤 + X로 저장 후 닫아줍니다.
/etc/init.d/apache2 restart
위 명령어로 다시 아파치를 재시작합니다.
WDMyCloud:~# /etc/init.d/apache2 restart
11649 (process ID) old priority 0, new priority 0
[ ok ] Restarting web server: apache2 ... waiting .
WDMyCloud:~#
아파치 재부팅하면 대시보드로 잘 들어가집니다.
5. 소스리스트 복구하기
> /etc/apt/sources.list
위 명령어로 소스리스트를 초기화 합니다.
echo deb http://ftp.us.debian.org/debian/ wheezy main >> /etc/apt/sources.list
위 명령어로 기존 소스리스트에 있던 위지 소스를 넣습니다.
apt-get update
위 명령어로 소스리스트를 업데이트합니다.
-
등록일 2016.01.23
-
등록일 2015.12.23WD My Cloud 시놀로지OS 사용기댓글 102
-
등록일 2014.10.07
-
등록일 2014.10.06
관련자료
-
서명우성짱의 NAS를 운영하고 있습니다.
저의 즐거움이 여러분의 즐거움이면 좋겠습니다.
밤바디님의 댓글
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** php5 (Y/I/N/O/D/Z) [default=N] ? o
우성군님 3번 설치 중 위와같이 나오는데.. 따로 설명이 없으셔서 O를 선택했는데 괜찮은건가요?
esguk811님의 댓글
Ign http://ftp.us.debian.org jessie InRelease
Ign http://ftp.us.debian.org jessie Release.gpg
Ign http://ftp.us.debian.org jessie Release
Err http://ftp.us.debian.org jessie/main armhf Packages
404 Not Found [IP: 64.50.233.100 80]
Ign http://ftp.us.debian.org jessie/main Translation-en
W: Failed to fetch http://ftp.us.debian.org/debain/dists/jessie/main/binary-armhf/Packages 404 Not Found [IP: 64.50.233.100 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
WDMyCloud:~# apt-get update
Ign http://ftp.us.debian.org jessie InRelease
Ign http://ftp.us.debian.org jessie Release.gpg
Ign http://ftp.us.debian.org jessie Release
Err http://ftp.us.debian.org jessie/main armhf Packages
404 Not Found [IP: 64.50.233.100 80]
Ign http://ftp.us.debian.org jessie/main Translation-en
W: Failed to fetch http://ftp.us.debian.org/debain/dists/jessie/main/binary-armhf/Packages 404 Not Found [IP: 64.50.233.100 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
WDMyCloud:~#
2번 과정중 이렇게 뜨네요...
그냥 쭉 진행하면 아파치 재시작이 안되구요.
어떻게 해야하나요??
http://community.wd.com/t5/WD-My-Cloud/GUIDE-Owncloud/td-p/693820
여기에서 BullZeye 라는분이 올리신글보고
jessie main 에서 sid main으로 바꾸니 해결됬습니다
HweeWoo Lee님의 댓글의 댓글
무언가 많이 나오더라구요
그리구 진행하던중 설치글 주루룩 지나가고 마지막에 계속 에러가 뜨네요
아파치 재시작두 안되구요 ㅠ
apt-get install php5 php5-gd php5-mysql
이 명령어 후 마지막에 이렇게뜹니다
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/dpkg_1.18.9_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)