Forum Moderators: phranque

Message Too Old, No Replies

Suexec and virtual host problem

how to run scripts in /usr/local

         

newbies

7:45 am on Feb 8, 2004 (gmt 0)

10+ Year Member



Hi,
I just moved to a virtual dedicated server and have installed some scripts like mailman and awstats in /usr/local/ and wish my virtual domains (at least my own site which is one of the virtualhosts) to run the scripts from [virtualhost...] I know because Suexec is enabled, virtualhosts are not allowed to access scripts outside their home directory even you have put ScriptAlias in httpd.conf file's general section or in VirtualHost container. Those scripts can only be accessed from [primarydomain...]

If I disable Suexec, I can run [virtualhost...] however some scripts in my home directory would stop working because any http request will be treated as user apache (instead of virtualhost) which certain cannot write to files belong to virtual host.

I know there is a solution without disabling suexec since my previous host (I am one of their virtualhost) got this done. I posted in some other forums and didn't get a perfect solution. Hoping somebody in the virtualhost world can give me some idea how you do it.

Thanks for any clue.

newbies

7:40 pm on Feb 9, 2004 (gmt 0)

10+ Year Member



Any one has knowledge on this, please?