Debian Linux Power-PC 3.1
2005年8月22日
長い間、ここのブログがダウンしていた(一ヶ月以上)。不具合は、7月16日頃に始まり、PHPが全く機能しなくなっていた。その後、Vine-Linux の再インストール等を繰り返しているうちに誤ってハードディスク上のyabootの入っているあたりのパーティッションを削除してしまい、二度と Vine-Linux がインストールできなくなってしまった(MacOS のインストールCDが無くなってしまっているため)。
その後、Darwin のインストールを試みたものの、PHP がうまくインストールできずじまい。
結局、Debian Linux PPC をインストールすることで解決できた。
(以下 Debian Linux インストールメモ)
その後、Darwin のインストールを試みたものの、PHP がうまくインストールできずじまい。
結局、Debian Linux PPC をインストールすることで解決できた。
(以下 Debian Linux インストールメモ)
http://www.debian.org/CD/netinst/ から、debian-31r0a-powerpc-netinst.isoをダウンロードし、CD-R に焼いた。
このCDから起動し、『english』を選択(日本語の選択では、後に文字化けを起こしてどうしょうもなくなったため)。
『ディスク全体を消去』→『すべてのファイルを一つのパーティッションにインストール』を選択。
#vi iptables.sh
#chmod 700 iptables.sh
# vi /etc/init.d/networking
→『/root/iptables.sh』を『start)』項目に追加
# apt-get install proftpd
The following NEW packages will be installed:
proftpd proftpd-common ucf
Adding system user `ftp'...
Adding new user `ftp' (103) with group `nogroup'.
Creating home directory `/home/ftp'.
`/usr/share/doc/proftpd/examples/welcome.msg' -> `/home/ftp/welcome.msg.proftpd-new'
ProFTPd is started from inetd/xinetd.
# apt-get install apache2
The following extra packages will be installed:
apache2-common apache2-mpm-worker apache2-utils libapr0 libexpat1 openssl
ssl-cert
Setting Apache2 to Listen on port 80. If this is not desired, please edit /etc/apache2/ports.conf as desired. Note that the Port directive no longer works.
Module userdir installed; run /etc/init.d/apache2 force-reload to enable.
Setting up apache2-mpm-worker (2.0.54-4) ...
Starting web server: Apache2.
Setting up apache2 (2.0.54-4) ...
# apt-get install libapache2-mod-php4
The following packages will be REMOVED:
apache2-mpm-worker
The following NEW packages will be installed:
apache2-mpm-prefork libapache2-mod-php4 libzzip-0-12 php4-common
# apt-get install php4-mysql mysql-client mysql-server
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl libmysqlclient12 libnet-daemon-perl
libplrpc-perl mysql-client mysql-common mysql-server php4-mysql
│ A new mysql user "debian-sys-maint" will be created. This mysql account │
│ is used in the start/stop and cron scripts. Don't delete. │
│ │
│ Please remember to set a PASSWORD for the MySQL root user! If you use a │
│ /root/.my.cnf, always write the "user" and the "password" lines in │
│ there, never only the password! See │
│ /usr/share/doc/mysql-server/README.Debian for more information. │
# mysqladmin -u root password '********'
# /etc/init.d/apache2 restart
# vi /var/www/phpinfo.php
→『<?php phpinfo(); ?>』
# vi /etc/apache2/apache2.conf
(以下のように編集)
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo
Options Indexes SymLinksIfOwnerMatch IncludesNoExec
DirectoryIndex index.html index.htm index.shtml index.php
</Directory>
# vi /etc/apache2/sites-enabled/000-default
(以下のように編集)
<Directory />
Options FollowSymLinks
AllowOverride FileInfo
</Directory>
# mv /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
# /etc/init.d/apache2 force-reload
このCDから起動し、『english』を選択(日本語の選択では、後に文字化けを起こしてどうしょうもなくなったため)。
『ディスク全体を消去』→『すべてのファイルを一つのパーティッションにインストール』を選択。
#vi iptables.sh
#chmod 700 iptables.sh
# vi /etc/init.d/networking
→『/root/iptables.sh』を『start)』項目に追加
# apt-get install proftpd
The following NEW packages will be installed:
proftpd proftpd-common ucf
Adding system user `ftp'...
Adding new user `ftp' (103) with group `nogroup'.
Creating home directory `/home/ftp'.
`/usr/share/doc/proftpd/examples/welcome.msg' -> `/home/ftp/welcome.msg.proftpd-new'
ProFTPd is started from inetd/xinetd.
# apt-get install apache2
The following extra packages will be installed:
apache2-common apache2-mpm-worker apache2-utils libapr0 libexpat1 openssl
ssl-cert
Setting Apache2 to Listen on port 80. If this is not desired, please edit /etc/apache2/ports.conf as desired. Note that the Port directive no longer works.
Module userdir installed; run /etc/init.d/apache2 force-reload to enable.
Setting up apache2-mpm-worker (2.0.54-4) ...
Starting web server: Apache2.
Setting up apache2 (2.0.54-4) ...
# apt-get install libapache2-mod-php4
The following packages will be REMOVED:
apache2-mpm-worker
The following NEW packages will be installed:
apache2-mpm-prefork libapache2-mod-php4 libzzip-0-12 php4-common
# apt-get install php4-mysql mysql-client mysql-server
The following NEW packages will be installed:
libdbd-mysql-perl libdbi-perl libmysqlclient12 libnet-daemon-perl
libplrpc-perl mysql-client mysql-common mysql-server php4-mysql
│ A new mysql user "debian-sys-maint" will be created. This mysql account │
│ is used in the start/stop and cron scripts. Don't delete. │
│ │
│ Please remember to set a PASSWORD for the MySQL root user! If you use a │
│ /root/.my.cnf, always write the "user" and the "password" lines in │
│ there, never only the password! See │
│ /usr/share/doc/mysql-server/README.Debian for more information. │
# mysqladmin -u root password '********'
# /etc/init.d/apache2 restart
# vi /var/www/phpinfo.php
→『<?php phpinfo(); ?>』
# vi /etc/apache2/apache2.conf
(以下のように編集)
UserDir public_html
UserDir disabled root
<Directory /home/*/public_html>
AllowOverride FileInfo
Options Indexes SymLinksIfOwnerMatch IncludesNoExec
DirectoryIndex index.html index.htm index.shtml index.php
</Directory>
# vi /etc/apache2/sites-enabled/000-default
(以下のように編集)
<Directory />
Options FollowSymLinks
AllowOverride FileInfo
</Directory>
# mv /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
# /etc/init.d/apache2 force-reload