$ su -
$ sudo -i
# aptitude update # aptitude install apache2-mpm-prefork php5 php-pear php-compat php-http-request php-pager php-file php5-curl curl unzip
# pear install Net_UserAgent_Mobile-beta
# a2enmod
# /etc/init.d/apache2 force-reload
# exit
$ cd ~/ $ mkdir public_html
$ cd public_html $ unzip rep2_v1_8_13.zip
$ cd rep2 $ mkdir data
$ sudo chown www-data:www-data data/
$ sudo aptitude update $ sudo aptitude install build-essential php5-dev
$ mkdir ~/src $ cd ~/src/ $ tar ~/eaccelerator-0.9.5.3.tar.bz2 $ cd eaccelerator-0.9.5.3/
$ ./configure $ make $ sudo make install
$ sudo vi /etc/php5/conf.d/eaccelerator.ini
extension="eaccelerator.so" eaccelerator.shm_size="16" eaccelerator.cache_dir="/tmp/eaccelerator" eaccelerator.enable="1" eaccelerator.optimizer="1" eaccelerator.check_mtime="1" eaccelerator.debug="0" eaccelerator.filter="" eaccelerator.shm_max="0" eaccelerator.shm_ttl="0" eaccelerator.shm_prune_period="0" eaccelerator.shm_only="0" eaccelerator.compress="1" eaccelerator.compress_level="9"
$ sudo mkdir /tmp/eaccelerator $ sudo chown www-data:www-data /tmp/eaccelerator
$ sudo /etc/init.d/apache2 restart
$ sudo /sbin/ldconfig $ sudo /etc/init.d/apache2 restart
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
$ 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/
$ su # apt-get install php4-pear