Hi! I've got a problem with preconfigured server (Apache 1.3/MySQL 3/PHP 4):
Files and directories created by a PHP script are always owned by the apache user and apache group. But the script itself is inside of a virtualhost which has another user and group (web2 / ftponly)! So in fact the script has to run with the rights of the user web2?? Perhaps it does, but files/dirs are create with owner apache. I want the files, created by the script, to be owned by web2. The important part (I think ;-) of httpd.conf looks like: -snip- User apache Group apache NameVirtualHost xxx.xxx.xxx.xxx:80 php_admin_flag safe_mode On php_admin_value safe_mode_exec_dir /var/www/empty <VirtualHost xxx.xxx.xxx.xxx:80> ServerName xxx.yyy.xxx ServerAlias xxx.zzz.yyy DocumentRoot /var/www/web2/html User web2 Group ftponly ScriptAlias /cgi-bin/ /var/www/web2/html/cgi-bin/ php_admin_value open_basedir /var/www/web2/ php_admin_value upload_tmp_dir /var/www/web2/phptmp/ </VirtualHost> -snap- Hint: /var/www/web2 is the homedirectory of web2, he has all rights there. Can anybody help me? What do I have to change? Joachim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php