玄箱HGメモ/Debian/PHP導入
緑文字が入力コマンド。
Pukiwikiを動作させるためにPHPを導入します。
管理者権限(管理者アカウント参照)で作業する必要があります。
KAGUYA:~# aptitude install php5 libapache2-mod-php5[ENTER]
PHP5導入画面(例)
Reading package lists... Done Building dependency tree... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done Building tag database... Done The following NEW packages will be automatically installed: apache2-mpm-prefork debconf-utils php5-common ucf The following packages will be automatically REMOVED: apache2-mpm-worker The following NEW packages will be installed: apache2-mpm-prefork debconf-utils libapache2-mod-php5 php5 php5-common ucf The following packages will be REMOVED: apache2-mpm-worker 0 packages upgraded, 6 newly installed, 1 to remove and 0 not upgraded. Need to get 3262kB of archives. After unpacking 7152kB will be used. Do you want to continue? [Y/n/?]
Y[ENTER]
Writing extended state information... Done Get:1 http://http1.debian.or.jp etch/main apache2-mpm-prefork 2.2.3-4+etch6 [427kB] Get:2 http://security.debian.org etch/updates/main php5-common 5.2.0-8+etch13 [219kB] Get:3 http://http1.debian.or.jp etch/main debconf-utils 1.5.11etch2 [40.0kB] Get:4 http://http1.debian.or.jp etch/main ucf 2.0020 [57.7kB] Get:5 http://security.debian.org etch/updates/main libapache2-mod-php5 5.2.0-8+etch13 [2517kB] Get:6 http://security.debian.org etch/updates/main php5 5.2.0-8+etch13 [1048B] Fetched 3262kB in 6s (494kB/s) Preconfiguring packages ... dpkg: apache2-mpm-worker: dependency problems, but removing anyway as you request: apache2 depends on apache2-mpm-worker (>= 2.2.3-4+etch6) | apache2-mpm-prefork (>= 2.2.3-4+etch6) | apache2-mpm-event (>= 2.2.3-4+etch6); however: Package apache2-mpm-worker is to be removed. Package apache2-mpm-prefork is not installed. Package apache2-mpm-event is not installed. (Reading database ... 17476 files and directories currently installed.) Removing apache2-mpm-worker ... Stopping web server (apache2)...Warning: DocumentRoot [/mnt/www/hiro/www_hiro] does not exist apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.121.100 for ServerName . Selecting previously deselected package apache2-mpm-prefork. (Reading database ... 17470 files and directories currently installed.) Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.3-4+etch6_powerpc.deb) ... Selecting previously deselected package debconf-utils. Unpacking debconf-utils (from .../debconf-utils_1.5.11etch2_all.deb) ... Selecting previously deselected package php5-common. Unpacking php5-common (from .../php5-common_5.2.0-8+etch13_powerpc.deb) ... Selecting previously deselected package ucf. Unpacking ucf (from .../archives/ucf_2.0020_all.deb) ... Moving old data out of the way Selecting previously deselected package libapache2-mod-php5. Unpacking libapache2-mod-php5 (from .../libapache2-mod-php5_5.2.0-8+etch13_powerpc.deb) ... Selecting previously deselected package php5. Unpacking php5 (from .../php5_5.2.0-8+etch13_all.deb) ... Setting up apache2-mpm-prefork (2.2.3-4+etch6) ... Starting web server (apache2)...Warning: DocumentRoot [/mnt/www/hiro/www_hiro] does not exist apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.121.100 for ServerName . Setting up debconf-utils (1.5.11etch2) ... Setting up php5-common (5.2.0-8+etch13) ... Setting up ucf (2.0020) ... Setting up libapache2-mod-php5 (5.2.0-8+etch13) ... Creating config file /etc/php5/apache2/php.ini with new version Forcing reload of web server (apache2)...Warning: DocumentRoot [/mnt/www/hiro/www_hiro] does not exist apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.121.100 for ServerName waiting Warning: DocumentRoot [/mnt/www/hiro/www_hiro] does not exist apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.121.100 for ServerName . Setting up php5 (5.2.0-8+etch13) ... KAGUYA:~#
作業終了です。
以降の作業を行わない場合は管理者アカウント終了してtelnet切断します。
コメントはありません。 コメント/玄箱HGメモ/Debian/PHP導入?
Online: 1