Xamppを使って既存のApacheとは別にPHP4専用のAPサーバーをたてる

cd /usr/local/src
wget http://downloads.sourceforge.net/project/xampp/XAMPP%20Linux/1.4.14/xampp-linux-1.4.14.tar.gz 
tar -zxvf cd /usr/local/src/xampp-linux-1.4.14.tar.gz

sed -i -e "s/port\s*=\s*3306/port = 13306/g" /opt/lampp/etc/my.cnf
sed -i -e "s/Listen\s*80/Listen 1080/g" /opt/lampp/etc/httpd.conf
sed -i -e "s/Listen\s*443/Listen 1443/g" /opt/lampp/etc/ssl.conf

sed -i -e "s/testport\s*3306/testport 13306/g" /opt/lampp/lampp
sed -i -e "s/testport\s*80/testport 1080/g" /opt/lampp/lampp
sed -i -e "s/testport\s*443/testport 1443/g" /opt/lampp/lampp 

echo 'Include etc/conf.d/*.conf' >> /opt/lampp/etc/httpd.conf
mkdir /opt/lampp/etc/conf.d

/opt/lampp/lampp php4
/opt/lampp/lampp startapache
vim /opt/lampp/etc/httpd.conf
#AddDefaultCharset ISO-8859-1
...
#User nobody
User apache
#Group nobody
Group apache

vim /opt/lampp/etc/conf.d/php4domain.com.conf
<VirtualHost *:1080>
    ServerName php4domain.com
    ServerAlias www.php4domain.com
    DocumentRoot /var/www/vhosts/php4domain.com/httpdocs
    <Directory "/var/www/vhosts/php4domain.com/httpdocs">
      order allow,deny
      allow from all
      Allowoverride all
    </Directory>

<IfModule mod_suexec.c>
    SuexecUserGroup "php4domain.com" "psacln"
</IfModule>

<IfModule mod_userdir.c>
    UserDir "/var/www/vhosts/php4domain.com/web_users"
</IfModule>
</VirtualHost>

vim /var/www/vhosts/php4domain.com/conf/last_httpd.include
<VirtualHost *:80 >
    ServerName "php4domain.com"
    ServerAlias  "www.php4domain.com"
    UseCanonicalName Off

    ProxyPass / http://php4domain.com:1080/
    ProxyPassReverse / http://php4domain.com:1080/
</VirtualHost>