Doug MacEachern wrote:
> 
> On Thu, 25 May 2000, Drew Taylor wrote:
> 
> > I have tried many things to solve this problem. Many thanks go to
> > Geoffrey Young who helped me privately (and clued me into a great
> > solution to another future maintenance problem as well!).
> 
> i glad your problem is solved, but can we keep all help on the list to
> prevent duplication of efforts?  i get the feeling this is happening
> alot.  it's a pity for folks to take time trying to help solve a problem
> that's already been solved :)
I would be happy to post the responses between Geoffrey and I (with his
permission of course :-). A couple highlights:

1. StatINC off for production sites - can sometimes be flaky
2. $Apache::Registry::NameWithVirtualHost = 0; (for my original
configuration)
3. PerlFreshRestart Off

The above seemed to help, but something was still getting shared. So my
solution was to consolidate all the many individual scripts to one
central place. So now I have this in httpd.conf outside of all
<VirtualHost> sections:

ScriptAlias /cgi-bin/ "/thinkstock/mnt01/apache_1.3.12/cgi-bin/"
<Directory "/thinkstock/mnt01/apache_1.3.12/cgi-bin">
    AllowOverride None
    Options +ExecCGI
    SetHandler perl-script
    PerlHandler Apache::Registry
    Order allow,deny
    Allow from all
</Directory>

Then in each VHost section:
PerlSetVar SITENAME 'cloudstock'
PerlSetVar SITEID 1

# for any remaining scripts
<Files *.pl>
    Options +ExecCGI
    SetHandler perl-script
    PerlHandler Apache::Registry
</Files>

I also preloaded all the common scripts using Apache::RegistryLoader in
startup.pl.

Then I modified my scripts by adding:
my $r = shift;
my $SITENAME = $r->dir_config('SITENAME');
my $SITEID = $r->dir_config('SITEID');
...
my $object = Object->new($CGI, $SITENAME, $SITEID);


Thus far in testing, no signs of the "schizophrenia" has shown
themselves. Thus, I think the problem was primarily Stronghold. I had
been planing to implement the transparent proxy scheme outlined in the
guide, so now I just began it sooner than expected. :-)

BTW, this solution is for launching many similar sites using a common
backend code base and DB. They share common functinality across all
sites. The sites launched to date are http://www.cloudstock.com/
http://www.wiredstock.com/ and http://www.thinkstock.com/ They are stock
photography e-commerce with DL of purchased images.

-- 
Drew Taylor
Vialogix Communications, Inc.
501 N. College Street
Charlotte, NC 28202
704 370 0550
http://www.vialogix.com/

Reply via email to