The following are the steps which you can run in apache virtual host with
the separate user/group privileges
#wget http://repo.webtatic.com/yum/centos/5/x86_64/httpd-itk-2.2.19-1.w5.x86_64.rpm
#rpm -ivh httpd-itk-2.2.19-1.w5.x86_64.rpm
#/etc/init.d/httpd stop
Then edit /etc/sysconfig/httpd and add the following line:
HTTPD=/usr/sbin/httpd.itk
Then edit httpd.conf file and make changes to the domain's Virtual host
entry as below
<VirtualHost *:80>
ServerName example.com
DocumentRoot /path/to/web/root
AssignUserId username groupname
</VirtualHost>
#/etc/init.d/httpd start
#chown username:groupname /path/to/webroot
#chmod o-rwx /path/to/webroot
Refence:http://www.webtatic.com/packages/httpd-itk/
No comments:
Post a Comment