Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: calisun on March 04, 2006, 12:42:15 AM
-
I know that indexing of ibay from the web when there is no index.html has been disabled for security reasons, but how do I enable it for one specific ibay?
I have a password protected ibay from where I want to allow employees to download documents when they are outside of the office. I will frequently add and delete files, so I don't want to mess with constantly creating/ recreating html file to list files.
-
ModIndexer sounds like it would suit your needs, but without the security risk of having everyone see all the contents of an iBay
Do a serch for ModIndexer and here to get it working on SME7
http://forums.contribs.org/index.php?topic=30942.0
Dave
-
There would be no security risk in my case because the ibay I want to index is password protected, but I will give ModIndexer a try.
-
I have followed the instruction in the link to enable ModIndexer, but now after reboot, I can't access server-manager, webmail or my main web page.
-
What do your logs say? can you undo the changes and it works?!
-
Which Modindex Contrib did you install?
And you followed the instructions on how to enable mod perl?
DAve
-
I know that indexing of ibay from the web when there is no index.html has been disabled for security reasons, ...
The default setting has Indexes enabled:
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess40ibays
my $indexes = $properties{'Indexes'} || "enabled";
$OUT .= "\n";
$OUT .= "#--------------------------------------------------\n";
$OUT .= "# $key ibay directories ($properties{'Name'})\n";
$OUT .= "#--------------------------------------------------\n";
$OUT .= "\n";
$OUT .= "<Directory /home/e-smith/files/ibays/$key/html>\n";
$OUT .= " Options None\n";
$OUT .= " Options +Indexes\n" if ($indexes eq 'enabled');
You must have some other issue or misconfiguration.
Darrell
-
Is there actually a version of modindexer that works on SME7?
I installed gjz-mitel-modindex-0.0.4-4.noarch but it has broken my webserver.
I am now unable to access the server manager webmail or any ibays.
I have uninstalled the rpm but this has not helped.
Does anyone have any ideas?
Thanks
Tony
-
OK after further investigation the problem seems to stem frpm mod_perl if I disable it the webserver then behaves correctly but when enabled everything stops displaying.
Any thoughts anyone or better still could someone else try enabling mod_perl and see if it kills there web server.
Tony
-
Same conclusion here, mod_perl kills access to server-manager, webmail and my web page.
Disabling mod_perl returns everything back to normal
-
I'm waiting for pre4 to hit the servers, once I have that up and running I will enable mod_perl to see if it still has the same effect on Server Manager etc.
Dave
-
Hi all
First what version of 7.0 is eveyone exibiting the problem.
I seem to recall a problem with phpsysinfo with the access settings
and this appear to be evolving into the same issue.
I have not installed modindex as of yet so I can not undertake investigation.
-
On 7pre3 here but just enabling mod_perl as described here:
http://forums.contribs.org/index.php?topic=30942.0
The problems are as described.
Dave
-
dsemuk
would you have a link to the modindex in question here?
Thanks
-
http://mirror.contribs.org/smeserver/contribs/gzartman/Contribs/Indexer/gjz-mitel-modindex-0.0.4-4.noarch.rpm
Dave
-
Hi
On my (2) 7pre1 system mod_perl.so does not exist.....hmmm.
-
Well Gordon has said pre4 is being pushed out to the mirrors so I'm waiting to see how I fair with mod_perl on that before putting in the bugtracker.
Dave
-
Charlie said it's installed and he's the man, looks like a bug.
So I don't know.
-
doing this now to see if that helps
yum install mod_perl
-
hi all
gjz-mitel-modindex-0.0.4-4.noarch.rpm is failing dependencies
So that rpm doesn't look like it will work.
and this one is listed as not working on 7.x either
e-smith-modindex-0.0.5-2.noarch.rpm
Does anyone have a 7.x rpm for this or know of one that works.
Not one for reinventing the wheel.
-
mod-perl is already installed. It just needs to be enabled.
config setprop modPerl status enabled
signal-event post-upgrade
signal-event reboot
Works on SME 7.0pre4
-
Denbert
Just to keep this in line 7pre1 needs the following.
yum install mod_perl
config setprop modPerl status enabled
signal-event post-upgrade
signal-event reboot
7pre2 and 7pre3 ??
So somewhere between 7pre2 - 7pre4 mod_perl is on the radar.
You don't know of a modindex around for 7pre?
-
Thanks for that guys.
OK having installed Mod_perl and then tried modindexer with --nodeps I get the following.
Preparing... ########################################### [100%]
1:gjz-mitel-modindex ########################################### [100%]
WARNING in /etc/e-smith/templates-custom//etc/httpd/conf/httpd.conf/90e-smithAcc
ess40ibays: *WARNING* esmith::config(/home/e-smith/accounts) called with old dat
abase path. The following package needs to be updated: at /usr/lib/perl5/site_p
erl/esmith/config.pm line 374
esmith::config::TIEHASH('esmith::config', '/home/e-smith/accounts') call
ed at /etc/e-smith/templates-custom//etc/httpd/conf/httpd.conf/90e-smithAccess40
ibays line 7
eval 'package esmith::__TEMPLATE__::1; ;
#line 5 /etc/e-smith/templates-custom//etc/httpd/conf/httpd.conf/90e-smithAccess
40ibays
my %accounts;
tie %accounts, \'esmith::config\', \'/home/e-smith/accounts\';
my $key;
my $value;
my $result = "";
while (($key,$value) = each %accounts)
{
my ($type, %properties) = split (/\\|/, $value, -1);
if ($type eq \'ibay\')
{
#------------------------------------------------------------
# Figure out which combination of parameters to use. If
# PublicAccess parameter is present, this is e-smith 4.0.
# Otherwise, it\'s e-smith 3.0.
#------------------------------------------------------------
my $allow;
my $pass;
my $satisfy;
if ($properties{\'PublicAccess\'})
{
if ($properties{\'PublicAccess\'} eq \'none\')
{
next;
}
elsif ($properties{\'PublicAccess\'} eq \'local\')
{
$allow = $localAccess;
$pass = 0;
$satisfy = \'all\';
}
elsif ($properties{\'PublicAccess\'} eq \'local-pw\')
{
$allow = $localAccess;
$pass = 1;
$satisfy = \'all\';
}
elsif ($properties{\'PublicAccess\'} eq \'global\')
{
$allow = \'all\';
$pass = 0;
$satisfy = \'all\';
}
elsif ($properties{\'PublicAccess\'} eq \'global-pw\')
{
$allow = \'all\';
$pass = 1;
$satisfy = \'all\';
}
elsif ($properties{\'PublicAccess\'} eq \'global-pw-remote\')
{
$allow = $localAccess;
$pass = 1;
$satisfy = \'any\';
}
}
elsif ($properties {\'ReadAccess\'} eq \'global\')
{
if ($properties {\'UsePassword\'} eq \'yes\')
{
$allow = \'all\';
$pass = 1;
$satisfy = \'all\';
}
else
{
$allow = \'all\';
$pass = 0;
$satisfy = \'all\';
}
}
else
{
if ($properties {\'UsePassword\'} eq \'yes\')
{
$allow = $localAccess;
$pass = 1;
$satisfy = \'all\';
}
else
{
$allow = $localAccess;
$pass = 0;
$satisfy = \'all\';
}
}
my $dynamicContent = $properties{\'CgiBin\'} || "disabled";
$result .= "\\n";
$result .= "#-------------------------------------------------------
-----\\n";
$result .= "# $key ibay directories ($properties{\'Name\'})\\n";
$result .= "#-------------------------------------------------------
-----\\n";
$result .= "\\n";
$result .= "<Directory /home/e-smith/files/ibays/$key/html>\\n";
$result .= " Options Indexes\\n";
if ($dynamicContent eq \'enabled\')
{
$result .= " Options +Includes\\n";
}
else
{
$result .= " <FilesMatch \\"\\\\.(php|php3|phtml)\\$\\">\\n";
$result .= " order deny,allow\\n";
$result .= " Deny from all\\n";
$result .= " </FilesMatch>\\n";
$result .= " Options +IncludesNOEXEC\\n";
}
$result .= " AllowOverride All\\n";
$result .= " order deny,allow\\n";
$result .= " deny from all\\n";
$result .= " allow from $allow\\n";
if ($pass)
{
$result .= " AuthName \\"$properties{\'Name\'}\\"\\n";
$result .= " AuthType Basic\\n";
$result .= " AuthExternal pwauth\\n";
$result .= " require user $key\\n";
$result .= " Satisfy $satisfy\\n";
}
$result .= "</Directory>\\n";
$result .= "\\n";
$result .= "<Directory /home/e-smith/files/ibays/$key/cgi-bin>\\n";
if ($dynamicContent eq \'enabled\')
{
$result .= " Options ExecCGI\\n";
}
$result .= " AllowOverride All\\n";
$result .= " order deny,allow\\n";
$result .= " deny from all\\n";
$result .= " allow from $allow\\n";
if ($pass)
{
$result .= " AuthName \\"$properties{\'Name\'}\\"\\n";
$result .= " AuthType Basic\\n";
$result .= " AuthExternal pwauth\\n";
$result .= " require user $key\\n";
$result .= " Satisfy $satisfy\\n";
}
$result .= "</Directory>\\n";
$result .= "\\n";
$result .= "<Directory /home/e-smith/files/ibays/$key/files>\\n";
$result .= " AllowOverride All\\n";
$result .= " ForceType application/octet-stream\\n";
$result .= " order deny,allow\\n";
$result .= " deny from all\\n";
$result .= " allow from $allow\\n";
if ($pass)
{
$result .= " AuthName \\"$properties{\'Name\'}\\"\\n";
$result .= " AuthType Basic\\n";
$result .= " AuthExternal pwauth\\n";
$result .= " require user $key\\n";
$result .= " Satisfy $satisfy\\n";
}
$result .= "</Directory>\\n";
}
}
$result;
;' called at /usr/lib/perl5/vendor_perl/5.8.5/Text/Template.pm line 319
Text::Template::fill_in('Text::Template=HASH(0x959fce4)', 'HASH', 'ARRAY
(0x93ef18c)', 'PACKAGE', 'esmith::__TEMPLATE__::1', 'BROKEN', 'CODE(0x95b3654)',
'UNTAINT', 1, ...) called at /usr/lib/perl5/vendor_perl/5.8.5/Text/Template.pm
line 382
Text::Template::fill_in_file('/etc/e-smith/templates-custom//etc/httpd/c
onf/httpd.conf/90e-...', 'HASH', 'ARRAY(0x93ef18c)', 'PACKAGE', 'esmith::__TEMPL
ATE__::1', 'BROKEN', 'CODE(0x95b3654)', 'UNTAINT', 1, ...) called at /usr/lib/pe
rl5/site_perl/esmith/templates.pm line 528
esmith::templates::processTemplate('HASH(0x9252fb4)') called at /sbin/e-
smith/expand-template line 45
WARNING: Template processing succeeded for //etc/httpd/conf/httpd.conf: 1 fragme
nt generated warnings
at /sbin/e-smith/expand-template line 45
Stopping httpd: [ OK ]
Starting httpd: [Mon Mar 06 07:09:07 2006] [error] Can't locate Apache/ModIndex.
pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib
/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/per
l5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-l
inux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/li
b/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i
386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5
.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl
5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/l
ib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.
8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-m
ulti /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/ven
dor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-lin
ux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.
4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/per
l5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
. /etc/httpd/ /etc/httpd/lib/perl) at (eval 2) line 3.\n
[Mon Mar 06 07:09:07 2006] [error] Can't load Perl module Apache::ModIndex for s
erver www.keane.co.nz:0, exiting...
[FAILED]
error: %post(gjz-mitel-modindex-0.0.4-4.noarch) scriptlet failed, exit status 1
Seems to be issues with the db paths and other things.
Tony
-
ajkeane
I should be so courageous.
"To go where no man has gone before."
It's seems my patience paid off...though.
-
ajkeane
Which rpm did you use?
-
gjz-mitel-modindex-0.0.4-4.noarch.rpm
I used --nodeps to get it to install.
Tony
-
Hi,
Tried to install the ModIndexer 0.04 on my SME 7rc2 and I enabled the Mod_Perl with:
config setprop modPerl status enabled
signal-event post-upgrade
signal-event reboot
After the reboot i installed the indexer contribs with following command:
rpm -ivh --nodeps gjz-mitel-modindex-0.0.4-4.noarch.rpm
And yes, my webserver is broken.
Tried to disable the modPerl with following commands:
config setprop modPerl status disabled
signal-event post-upgrade
signal-event reboot
But webserver is dead :-(
Any suggestions?
-
Same conclusion here, mod_perl kills access to server-manager, webmail and my web page.
Disabling mod_perl returns everything back to normal
I can’t get the server back to “normal” configuration.
What did you do?
See http://forums.contribs.org/index.php?topic=31004.msg135972#msg135972
-
Investigated a bit more and the command apachectl start said error in line 1652 where the ModIndexer contrib. installed a line with PerlModule command that apache didn’t recognized
After deleting the file /etc/e-smith/templates/etc/httpd/conf/httpd.conf/86ModIndex and then running:
signal-event post-upgrade
signal-event reboot
The web server was back.