I enabled php suEXEC on the server.
One problem I have is I run a program which is installed in 3 different hosts and needs access to the images directory which is being shared from only one host.
Hosts:
<VirtualHost xx.xx.xx.xx>
BytesLog domlogs/site1.com-bytes_log
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled site1
</IfModule>
ServerName www.site1.com
ServerAlias site1.com
ServerAdmin [email protected]
DocumentRoot /home/site1/public_html
BytesLog domlogs/site1.com-bytes_log
User user1
Group user1
CustomLog domlogs/site1.com combined
ScriptAlias /cgi-bin/ /home/site1/public_html/cgi-bin/
</VirtualHost>
<VirtualHost xx.xx.xx.xx>
BytesLog domlogs/site2.com-bytes_log
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled site2
</IfModule>
ServerName www.site2.com
ServerAlias site2.com
ServerAdmin [email protected]
DocumentRoot /home/site2/public_html
BytesLog domlogs/site2.com-bytes_log
User user2
Group user2
CustomLog domlogs/site2.com combined
ScriptAlias /cgi-bin/ /home/site2/public_html/cgi-bin/
</VirtualHost>
<VirtualHost xx.xx.xx.xx>
BytesLog domlogs/site3.com-bytes_log
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled site3
</IfModule>
ServerName www.site3.com
ServerAlias site3.com
ServerAdmin [email protected]
DocumentRoot /home/site3/public_html
BytesLog domlogs/site3.com-bytes_log
User user3
Group user3
CustomLog domlogs/site3.com combined
ScriptAlias /cgi-bin/ /home/site3/public_html/cgi-bin/
</VirtualHost>
Folrder I want to share is in:
/home/site2/public_html/images
Before installing php suEXEC, all I did was create a symlink from host2 and host3 to point to images directory on host1
Now, I have a permission problem and users can not see the images from host2 and host3
Can someone please tell me how I can bypass this?
Thanks so much
One problem I have is I run a program which is installed in 3 different hosts and needs access to the images directory which is being shared from only one host.
Hosts:
<VirtualHost xx.xx.xx.xx>
BytesLog domlogs/site1.com-bytes_log
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled site1
</IfModule>
ServerName www.site1.com
ServerAlias site1.com
ServerAdmin [email protected]
DocumentRoot /home/site1/public_html
BytesLog domlogs/site1.com-bytes_log
User user1
Group user1
CustomLog domlogs/site1.com combined
ScriptAlias /cgi-bin/ /home/site1/public_html/cgi-bin/
</VirtualHost>
<VirtualHost xx.xx.xx.xx>
BytesLog domlogs/site2.com-bytes_log
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled site2
</IfModule>
ServerName www.site2.com
ServerAlias site2.com
ServerAdmin [email protected]
DocumentRoot /home/site2/public_html
BytesLog domlogs/site2.com-bytes_log
User user2
Group user2
CustomLog domlogs/site2.com combined
ScriptAlias /cgi-bin/ /home/site2/public_html/cgi-bin/
</VirtualHost>
<VirtualHost xx.xx.xx.xx>
BytesLog domlogs/site3.com-bytes_log
<IfModule mod_userdir.c>
UserDir disabled
UserDir enabled site3
</IfModule>
ServerName www.site3.com
ServerAlias site3.com
ServerAdmin [email protected]
DocumentRoot /home/site3/public_html
BytesLog domlogs/site3.com-bytes_log
User user3
Group user3
CustomLog domlogs/site3.com combined
ScriptAlias /cgi-bin/ /home/site3/public_html/cgi-bin/
</VirtualHost>
Folrder I want to share is in:
/home/site2/public_html/images
Before installing php suEXEC, all I did was create a symlink from host2 and host3 to point to images directory on host1
Now, I have a permission problem and users can not see the images from host2 and host3
Can someone please tell me how I can bypass this?
Thanks so much