View Single Post
  #6  
Old 14th December 2006, 18:20
Sid Sid is offline
Junior Member
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Now its working fine... the solution if someone is interested:

create a direktory to store a php4 startscript for each user like /var/www/php4

then create a bash script named domain or so in this directory containing
Code:
#!/bin/sh
unset SERVER_NAME
unset SERVER_SOFTWARE
unset GATEWAY_INTERFACE
unset REQUEST_METHOD 
/usr/lib/cgi-bin/php4 -d open_basedir=/home/www/domain '$*'
then edit the vhost apache config and add:
Code:
ScriptAlias /php4-cgi "/var/www/php4/domain"
AddHandler php-script .php4
Action php-script /php4-cgi
4 env variables are dropped but safemode with open_basedir is working
Reply With Quote