'."\n"); fwrite($fh, ' Options +FollowSymLinks -SymLinksIfOwnerMatch +ExecCGI'."\n"); fwrite($fh, ' '."\n"); fwrite($fh, ' Allow from all'."\n"); fwrite($fh, ' '."\n"); fwrite($fh, ' '."\n"); fwrite($fh, ' suPHP_engine off'."\n"); fwrite($fh, ' '."\n"); fwrite($fh, ' FCGIWrapper /home/httpd/php-fcgi-scripts/' . $data['kunde'] . '/php5-fcgi-starter .php'."\n"); fwrite($fh, ''."\n\n"); fclose($fh); } //create all for user confixx (only php5) // user-dir exists? $user_path = $conf_path . 'confixx' . '/'; if ( !file_exists($user_path) ) { mkdir($user_path); chown($user_path, 'confixx'); chgrp($user_path, 'users'); chmod($user_path, 0755); //create subs if ( !file_exists($user_path . 'php5') ) { mkdir($user_path . 'php5'); chown($user_path . 'php5', 'confixx'); chgrp($user_path . 'php5', 'users'); chmod($user_path . 'php5', 0755); } // create starter skript if ( !file_exists($user_path . $conf_file_php5) ) { $fh = fopen($user_path . $conf_file_php5, 'w'); fwrite($fh, "#!/bin/sh\n"); fwrite($fh, "PHPRC=\"" . $user_path . "php5\"\n"); fwrite($fh, "export PHPRC\n"); fwrite($fh, "exec /usr/bin/php-cgi\n"); fclose($fh); chmod($user_path . $conf_file_php5, 0755); chown($user_path . $conf_file_php5, 'confixx'); chgrp($user_path . $conf_file_php5, 'users'); system ("chattr +i $user_path$conf_file_php5"); } } ?>