Eduardo Romero a écrit : > Well, now I have another problem: > > > Internal Server Error > > Directory /var/www is not owned by /username/ > suPHP 0.6.3 > > > Which beats the purpose of using suPHP, since we want each vhost (all > vhosts are under /var/www) to be owned by a different user, thus running > as its own different user. > Maybe my config file is wrong? Any ideas how to fix it or what am i > doing wrong? > > ======= end of suphp.conf ======= > $ cat /etc/suphp.conf > [global] > ;Path to logfile > logfile=/var/log/apache2/suphp_log > > ;Loglevel > loglevel=info > > ;User Apache is running as > webserver_user=apache > > ;Path all scripts have to be in > docroot=/var/www/ > > ; Security options > allow_file_group_writeable=false > allow_file_others_writeable=false > allow_directory_group_writeable=false > allow_directory_others_writeable=false > > ;Check wheter script is within DOCUMENT_ROOT > check_vhost_docroot=true > > ;Send minor error messages to browser > errors_to_browser=true > > ;PATH environment variable > env_path=/bin:/usr/bin > > ;Umask to set, specify in octal notation > umask=0077 > > ; Minimum UID > min_uid=1000 > > ; Minimum GID > min_gid=100 > > > [handlers] > ;Handler for php-scripts > x-httpd-php=php:/usr/lib/php5/bin/php-cgi > x-httpd-php5=php:/usr/lib/php5/bin/php-cgi > x-httpd-php4=php:/usr/lib/php4/bin/php-cgi > x-httpd-phtml=php:/usr/lib/php5/bin/php-cgi > > ;Handler for CGI-scripts > x-suphp-cgi=execute:!self > > ======= end of suphp.conf ======= > > Thanks in advanced. > - Eduardo > Hello
Here's my config (works since 4 years): supposing all vhosts are in /web/clients, config for vhost named client1 is : srvweb:/# ls -ld web drwxr-xr-x 4 root root 4096 2007-06-22 17:37 web srvweb:/web# ll total 16 drwxr-xr-x 4 root root 4096 2007-06-22 17:37 . drwxr-xr-x 29 root root 4096 2008-06-24 18:44 .. drwxr-xr-x 48 root root 4096 2008-07-17 18:16 clients drwx------ 2 root root 4096 2006-06-23 19:08 lost+found srvweb:/web/clients# ls -ld client1 drwxr-xr-x 4 root client1 4096 2008-04-02 11:22 client1 srvweb:/web/clients/client1# ls -ld www drwxr-s--- 30 client1 nogroup 4096 2008-07-05 10:59 www In suphp.conf : ;User Apache is running as webserver_user=nobody HTH Patrick _______________________________________________ suPHP mailing list suPHP@lists.marsching.biz http://lists.marsching.com/mailman/listinfo/suphp