Hi, I have some trouble with suphp ! I have just notice that file must be set chmod to 755. I use to think that suphp should perfectyl work with 700 But a 403 forbidden is return in this case : with error.log : [Fri Dec 01 17:11:46 2006] [crit] [client 192.168.0.254] (13): /var/www/web5/web/files/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, Of course all work if i make permission read file for Others . Any issue ? I've verify that the apache suphp login is the same as the file.
Your problem is not a .php file, it is this /var/www/web5/web/files/.htaccess which must be readable to the apache user. htaccess files where read by apache not php / suphp.
and .html ... are they read by apache ? or suphp . and cgi script ? it will be useful to have a list of file that need the www-data user to be read ? thanks
well so i need to put chmod 755 for every uploaded file ! is there any way to make ispconfig put every users ( webx_x ) in apache group ?? Or anyway to enable file reading by apache by defaut ??? I think that it should cause some trouble for people who want to upload their file which are not in php ?? And it will be unsure to set umask to 777 !!
So What so what change should i make to the code should i add web user to www-data group or add www-data user to every webx group ... or any other solution ? does the problem the same with suexec
Way Is there any module for apache that let change the apache user for a virtual host ( to execute all file type with the same user as suphp )
Both To execute file which should be execute and access all the file ... I have found a solution .. By lookink at ispconfig code i've seen that a function add admispconfig group to all user so i've duplicated this function and change admispconfig to www-data .. so now when a website is create with an user ... this user got the www-data in his group so all seem to work with chmod 750 ..