$ su -
# apt-get install apache php4 Do you want me to run the apacheconfig script now [y/N] ?~
#apt-get install curl-ssl
# LoadModule eaccess_module /usr/lib/apache/1.3/mod_eaccess.so LoadModule php4_module /usr/lib/apache/1.3/libphp4.so # LoadModule roaming_module /usr/lib/apache/1.3/mod_roaming.so
<IfModule mod_dir.c> DirectoryIndex index.html index.htm index.shtml index.cgi index.php </IfModule>
# # And for PHP 4.x, use: # AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
# Default charset to iso-8859-1 (ttp://www.apache.org/info/css-security/). #AddDefaultCharset off
<Location /~(ユーザ名)/p2> AddDefaultCharset Shift_JIS </Location>
/public_html/p2/.htaccess の方が、$HOMEだけで済んでイイ!かも。
[mbstring] mbstring.internal_encoding = EUC-JP mbstring.http_input = auto mbstring.http_output = EUC-JP mbstring.detect_order = auto mbstring.substitute_character = none;
# /etc/init.d/apache restart
# exit
$ cd ~ $ mkdir public_html
$ cd public_html $ tar xvfz p2.tar.gz
$ cd p2 $ mkdir data
$ su # chown www-data:www-data data/