![]() |
#1 |
Junior Member
Join Date: Aug 2009
Posts: 17
![]() |
![]()
This is on a FreeBSD 7.2 system with Apache 2.2.11 and PHP 5.2.10.
What is tried to set up, is a virtual host to Apache, serving pages for a set domain with dropped user privileges for the user owning the site. When set up from ISPmanager, it creates a config that looks valid, and the website works right when accessed from the set domain. However, it does not drop the privileges to the user, but stays executed as as user 'www' as set in the system-wide config. In the virtualhost config, it is set as 'SuexecUserGroup user group', which seems right to me. However, Apache is not able to access/write the files unless those rights are set for everyone, not just the user/group. Phpinfo() also indicates that the virtual host is run as www/www. The Apache suexec logfile also does not indicate that any of the setup virtual hosts have been suexec'd. Any ideas on this? |
![]() |
![]() |
![]() |
#2 |
ISPsystem team
|
![]()
SuExec doesn't work on PHP as Module. This setting works only for CGI applications. PHP as CGI for example. Apache-mpm-itk will help you.
For FreeBSD: Code:
# cd /usr/ports/www/apache22 # echo "WITH_MPM=ITK" > Makefile.local # make config (disable IPv6, enable mod_suexec) # make # make deinstall reinstall Next for all early created sites you need to change SuexecUserGroup on AssignUserID and restart apache. |
![]() |
![]() |
![]() |
Tags |
apache, ispmanager, problem, suexec |
Thread Tools | |
|
|