Obsolete Releases > SME 8.x Contribs
SME8 - Webshare Contrib - [Patch]
BearTM:
I decided to take the plunge and convert my server from SME7.5.1 to SME8, and (almost) everything has gone without issue. Some minor tweaking involved, but otherwise it was a pleasant experience.
However, there was one Contrib I was using which (at present) is incompatible with SME8 - Webshare, from Darrel May.
Ref: http://wiki.contribs.org/Webshare
So, I spent a bit of time (necessity) to get it working, so I'm posting my patches here in case someone else needs to use the Webshare Contrib under SME8.
---
Install the Webshare Contrib as specified for SME7, but before step 3:
Create the following custom template fragment
--- Code: ---mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
vi 20LoadModule80AuthFile
--- End code ---
Contents of 20LoadModule80AuthFile
--- Code: ---{
$OUT .= load_modules(qw(auth_basic));
$OUT .= load_modules(qw(authn_file));
}
--- End code ---
Optionally expand the template and restart the httpd server manually (if already installed)
--- Code: ---expand-template /etc/httpd/conf/httpd.conf
service httpd-e-smith restart
--- End code ---
Continue with the Webshare configuration (Step 4)
---
Optional (but recommended) - To fix the remaining issues in the Apache error_log:
--- Code: ---vi /etc/e-smith/web/panels/manager/cgi-bin/webshare
--- End code ---
Change lines:
--- Code: ---66: tie %projects, 'esmith::config', '/home/e-smith/WebShare';
289: my $share = $q->param ('sharename');
301: my $indexer = $q->param ('indexer');
313: my $description = $q->param ('description');
--- End code ---
To:
--- Code: ---66: tie %projects, 'esmith::config', '/home/e-smith/db/WebShare';
289: $share = $q->param ('sharename');
301: $indexer = $q->param ('indexer');
313: $description = $q->param ('description');
--- End code ---
While the 'patch' provided above is adequate to get it all working again, it isn't the "fully correct" solution. The Contrib is effectively ancient and is using the old-style DB access method, however, I don't have the time (at the moment) to rewrite the contrib to use the new (SME7+ approved) method. Maybe sometime I might ... but for the time being, this will get it working under SME8.
Hope this helps others ...
Regards,
Robert.
mdo:
Thanks for publishing your details. They should probably go into the Wiki.
There is a SME8 contribs QA document http://wiki.contribs.org/SME8.0_Contribs_QA which tries to collect all details for individual contribs and how suitable they are currently for a potential use in SME8.
I have linked to your details there http://wiki.contribs.org/SME8.0_Contribs_QA#smeserver-webshare
cactus:
--- Quote from: mdo on December 20, 2010, 05:51:42 AM ---Thanks for publishing your details. They should probably go into the Wiki.
--- End quote ---
Preferably in the bugtracker against the contrib, with a link from the wiki.
BearTM:
--- Quote from: cactus on December 20, 2010, 01:00:00 PM ---Preferably in the bugtracker against the contrib, with a link from the wiki.
--- End quote ---
I've raised a bug against the contrib, and linked to the Wiki and the Forum Post with the modifications necessary to get it operational under SME8.
I see that the contrib requires a maintainer, and while I'm normally stretched to find time (isn't everyone?), I'll see about rewriting the contrib over the holidays and potentially then becoming the maintainer. It'd be good to give back to the community that has provided a reliable server for me for many years now.
johnp:
Thanks, I think there are quite a few out there that would appreciate your efforts
Navigation
[0] Message Index
[#] Next page
Go to full version