We have a problem retrieving orders using Actinic 6.1.3 running in SSL mode (whole site) on RedHat 9, Apache 2.0.47 and perl 5.8, Apache is using mod_perl and we have the registryprefork.pm fix installed to force a chdir to the cgi-bin folder (hardcoded location).
The .ord files are being written out with a permission of 0200 (o:w) but having looked at the Perl code it would appear that in SSL mode Actinic chmods this to 0600 when it needs to read the file and then chmods it back to 0200 once its done.
Other than order processing the site works perfectly so we know that the site configuration is fine, this appears to be a client side/order processing issue.
We *think* its possibly something to do with the script that retrieves orders perhaps not using https when it goes to fetch the order files. This would explain the permission denied error.
We get the following errors:
The web script was unable to open the specified file.
Possible Cause:
Permissions problems
The permissions on the acatalog directory are locked
The permissions on the file on the acatalog directory are locked
The path from the cgi-bin to acatalog directory is incorrect
or the directory has been renamed or removed
Recommendation:
Abort
Resolution:
Check the permissions of the web site.
The files and directories need to be readable
and writable by the web server
Run the Web | Configure Web Site Details command to
verify your setup
Command: retrieve
------------------------
Actinic network config is as foillows:
HTTPPROXYMODE 0
HTTPPROXYADDRESS
HTTPPROXYPORT 80
HTTPPROXYUSER
HTTPPROXYPASSWORD
FTPPROXYMODE 0
FTPPROXYADDRESS
FTPPROXYPORT 21
FTPPROXYUSER
FTPPROXYPASSWORD
SCRIPTID 100
SCRIPTEXT .pl
WEBSITEURL https://www.purecollection.com/
IGNOREPASSIVEERRORS true
USERELATIVECGIURLS true
PATHTOPERL /usr/bin/perl
SSLCATALOGURL https://www.purecollection.com/acatalog/
SSLCGIBINURL https://www.purecollection.com/cgi-bin/
SSLPATHFROMCGITOCATALOG ../acatalog/
SSLCODEBASE ./
SSLPATHTOCGIBIN /cgi-bin/
SSLUSEPASSIVEFTP true
RegistryPerfork fix is as follows:
#file:ModPerl/PureRegistryPrefork.pm
#-------------------------------
package ModPerl::PureRegistryPrefork;
use strict;
use warnings FATAL => 'all';
our $VERSION = '0.01';
use base qw(ModPerl::Registry);
use File::Basename ();
sub handler : method {
my $class = (@_ >= 2) ? shift : __PACKAGE__;
my $r = shift;
return $class->new($r)->default_handler();
}
sub chdir_file {
my $dir = "/PATHTOWEBFOLDER/cgi-bin/";
chdir $dir or die "Can't chdir to $dir: $!";
}
1;
__END__
The .ord files are being written out with a permission of 0200 (o:w) but having looked at the Perl code it would appear that in SSL mode Actinic chmods this to 0600 when it needs to read the file and then chmods it back to 0200 once its done.
Other than order processing the site works perfectly so we know that the site configuration is fine, this appears to be a client side/order processing issue.
We *think* its possibly something to do with the script that retrieves orders perhaps not using https when it goes to fetch the order files. This would explain the permission denied error.
We get the following errors:
The web script was unable to open the specified file.
Possible Cause:
Permissions problems
The permissions on the acatalog directory are locked
The permissions on the file on the acatalog directory are locked
The path from the cgi-bin to acatalog directory is incorrect
or the directory has been renamed or removed
Recommendation:
Abort
Resolution:
Check the permissions of the web site.
The files and directories need to be readable
and writable by the web server
Run the Web | Configure Web Site Details command to
verify your setup
Command: retrieve
------------------------
Actinic network config is as foillows:
HTTPPROXYMODE 0
HTTPPROXYADDRESS
HTTPPROXYPORT 80
HTTPPROXYUSER
HTTPPROXYPASSWORD
FTPPROXYMODE 0
FTPPROXYADDRESS
FTPPROXYPORT 21
FTPPROXYUSER
FTPPROXYPASSWORD
SCRIPTID 100
SCRIPTEXT .pl
WEBSITEURL https://www.purecollection.com/
IGNOREPASSIVEERRORS true
USERELATIVECGIURLS true
PATHTOPERL /usr/bin/perl
SSLCATALOGURL https://www.purecollection.com/acatalog/
SSLCGIBINURL https://www.purecollection.com/cgi-bin/
SSLPATHFROMCGITOCATALOG ../acatalog/
SSLCODEBASE ./
SSLPATHTOCGIBIN /cgi-bin/
SSLUSEPASSIVEFTP true
RegistryPerfork fix is as follows:
#file:ModPerl/PureRegistryPrefork.pm
#-------------------------------
package ModPerl::PureRegistryPrefork;
use strict;
use warnings FATAL => 'all';
our $VERSION = '0.01';
use base qw(ModPerl::Registry);
use File::Basename ();
sub handler : method {
my $class = (@_ >= 2) ? shift : __PACKAGE__;
my $r = shift;
return $class->new($r)->default_handler();
}
sub chdir_file {
my $dir = "/PATHTOWEBFOLDER/cgi-bin/";
chdir $dir or die "Can't chdir to $dir: $!";
}
1;
__END__
Comment