legacy-wiki
Lab trianglebeats
Recovered from the older tannerjc.net wiki snapshot dated January 23, 2016.
TriangleBeats.com
- Content Management System/Content Management Framework (CMS/CMF)
- Drupal 6.19 http://drupal.org/getting-started/before/overview
Calendar
- tutorial http://www.drupaltherapy.com/node/76
- modules required
- calendar http://drupal.org/project/calendar
- Content Construction Kit (cck) http://drupal.org/project/cck
- date http://drupal.org/project/date
- views http://drupal.org/project/views
Mailing List
- Tutorial http://drupal.org/node/40777 HowTo: Integrate mailing lists with forums using Listhandler and Mailhandler
- Required software/modules
- Mailman http://www.gnu.org/software/mailman/index.html - GNU Mailing List Manager
- Mailman Manager http://drupal.org/project/mailman_manager - provides an interface through which users can subscribe to mailing lists run by Mailman.
- Mailhandler http://drupal.org/project/mailhandler - allows registered users to create or edit nodes and comments via email.
- Listhandler http://drupal.org/project/listhandler - marries mailing list discussions and Drupal forums.
Chat
- mibbit http://www.mibbit.com/
- do we even want chat?
- example drupal site that uses mibbit for chat: http://lxde.org/irc
- mibbit is banned from freenode
- http://blog.mibbit.com/?p=306
- http://blog.freenode.net/2009/06/new-freenode-webchat-and-why-to-use-it/
- Use freenode qwebirc instead
- http://webchat.freenode.net/?channels=trianglebeatsamp;uio=MTE9MjI2dd
- iframe src=quot;http://webchat.freenode.net?channels=trianglebeatsamp;uio=MTE9MjI2ddquot; width=quot;647quot; height=quot;400quot;/iframe/iframe
wiki
- http://www.starbowconsulting.com/node/111
- http://www.mediawiki.org/wiki/Extension:DrupalIntegration
- http://www.mediawiki.org/wiki/Extension:AuthDrupal
- http://drupal.org/project/drupal_wiki
- http://drupal.org/project/mediawiki
- http://drupal.org/project/mediawikiauth
[john@trainwreck logs]$ tail irc.freenode.#drupal.weechatlog -n 120 | grep abaddon | grep John25
2010-11-16 22:29:45 abaddon John2583: theres a combination of modules you can use, ill paste a few that i used if you hold on a sec.
2010-11-16 22:29:52 John2583 abaddon: yes, thanks
2010-11-16 22:30:24 John2583 abaddon: er, i saw a post someone showed with a *ton* of modules he used to get a wiki, but i was looking for
something more contained.. but let me see what you got
2010-11-16 22:31:47 John2583 abaddon: this guy used about 9 modules to get a wiki http://www.starbowconsulting.com/node/111
2010-11-16 22:31:51 abaddon John2583: better_formats clickpath content_access content_lock diff edit_section filefield filefield_sources
flexifilter footnotes freelinking ckeditor with imce interwiki quote recent_changes tableofcontents talk wikitools
2010-11-16 22:32:13 John2583 abaddon: ugh. i was hoping for more easy than that..
2010-11-16 22:32:17 abaddon John2583: the wiki is private, i cant send a link, but its great for what i needed
2010-11-16 22:32:30 John2583 abaddon: does it feel like mediawiki?
2010-11-16 22:32:38 abaddon John2583: easier than it sounds, i got it functioning in a few hours
2010-11-16 22:32:43 John2583 abaddon: really
2010-11-16 22:32:50 John2583 abaddon: make a howto ;-)
2010-11-16 22:32:58 abaddon John2583: yep, mediawiki but simpler, or so i see it
2010-11-16 22:33:08 John2583 abaddon: ok well maybe i will give that a shot
2010-11-16 22:33:11 John2583 abaddon: thanks
2010-11-16 22:34:15 abaddon John2583: there is a wiki install profile, i think, but i didnt try it, i think it wont have all those features
2010-11-16 22:35:57 abaddon John2583: http://drupal.org/project/drupal_wiki and http://drupal-wiki.com/en/drupal-wiki-enterprise-wiki
twitter/RSS integration
web analytics
http://piwik.org/ http://drupal.org/project/piwik
Development Server Setup
[root@trainwreck qemu]# virt-install -n vission -r 360 --os-variant=fedora13 --vcpus=1 --disk=/var/lib/libvirt/images/vission.img,size=16 \
--vnc --vnclisten=0.0.0.0 --network=bridge=br0 -c /efserv/Software/ISOs/Fedora-13-x86_64-DVD.iso
Starting install...
Allocating 'vission.img' | 16 GB 00:00
Creating domain...
Mailman install/config
[root@vission ~]# yum install mailman
[root@vission mailman-2.1.12]# less /usr/share/doc/mailman-2.1.12/INSTALL.REDHAT
[root@laptop ~]# service httpd start
Starting httpd: [ OK ]
[root@laptop ~]# /usr/lib/mailma/bin/mmsitepass newpassword
Password changed.
[root@laptop etc]# /usr/lib/mailman/bin/mmsitepass -c
New list creator password:
Again to confirm password:
[root@laptop ~]# /usr/lib/mailman/bin/update
Upgrading from version 0x0 to 0x2010cf0
getting rid of old source files
no lists == nothing to do, exiting
[root@laptop ~]# /usr/lib/mailman/bin/newlist mailman
Enter the email of the person running the list: root@laptop.dj.edm
Initial mailman password:
To finish creating your mailing list, you must edit your /etc/aliases (or
equivalent) file by adding the following lines, and possibly running the
`newaliases' program:
## mailman mailing list
mailman: quot;|/usr/lib/mailman/mail/mailman post mailmanquot;
mailman-admin: quot;|/usr/lib/mailman/mail/mailman admin mailmanquot;
mailman-bounces: quot;|/usr/lib/mailman/mail/mailman bounces mailmanquot;
mailman-confirm: quot;|/usr/lib/mailman/mail/mailman confirm mailmanquot;
mailman-join: quot;|/usr/lib/mailman/mail/mailman join mailmanquot;
mailman-leave: quot;|/usr/lib/mailman/mail/mailman leave mailmanquot;
mailman-owner: quot;|/usr/lib/mailman/mail/mailman owner mailmanquot;
mailman-request: quot;|/usr/lib/mailman/mail/mailman request mailmanquot;
mailman-subscribe: quot;|/usr/lib/mailman/mail/mailman subscribe mailmanquot;
mailman-unsubscribe: quot;|/usr/lib/mailman/mail/mailman unsubscribe mailmanquot;
Hit enter to notify mailman owner...
[root@laptop ~]# service mailman start
Starting mailman: [ OK ]
[root@laptop ~]# chkconfig mailman on
[root@laptop ~]# echo quot;DEFAULT_EMAIL_HOST = 'laptop.dj.edm'quot; /usr/lib/mailman/Mailman/mm_cfg.py
[root@laptop ~]# echo quot;DEFAULT_URL_HOST = 'laptop.dj.edm'quot; /usr/lib/mailman/Mailman/mm_cfg.py
[root@laptop ~]# tail -n 5 /usr/lib/mailman/Mailman/mm_cfg.py
# Note - if you're looking for something that is imported from mm_cfg, but you
# didn't find it above, it's probably in Defaults.py.
DEFAULT_EMAIL_HOST = 'laptop.dj.edm'
DEFAULT_URL_HOST = 'laptop.dj.edm'
[root@laptop ~]# service mailman restart
Shutting down mailman: [ OK ]
Starting mailman: [ OK ]
[root@laptop ~]#
[root@laptop ~]# cd /etc/httpd/conf.d
[root@laptop conf.d]# ls
mailman.conf mod_dnssd.conf php.conf proxy_ajp.conf README welcome.conf
[root@laptop conf.d]# cp mailman.conf mailman.conf.backup
[root@laptop conf.d]# vi mailman.conf
[root@laptop conf.d]# diff mailman.conf mailman.conf.backup
26c26
RedirectMatch ^/mailman[/]*$ http://laptop.dj.edm/mailman/listinfo
---
# RedirectMatch ^/mailman[/]*$ http://www.example.com/mailman/listinfo
[root@laptop conf.d]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@laptop conf.d]#
[root@laptop mail]# /usr/lib/mailman/bin/newlist community
Enter the email of the person running the list: john@laptop.dj.edm
Initial community password:
To finish creating your mailing list, you must edit your /etc/aliases (or
equivalent) file by adding the following lines, and possibly running the
`newaliases' program:
## community mailing list
community: quot;|/usr/lib/mailman/mail/mailman post communityquot;
community-admin: quot;|/usr/lib/mailman/mail/mailman admin communityquot;
community-bounces: quot;|/usr/lib/mailman/mail/mailman bounces communityquot;
community-confirm: quot;|/usr/lib/mailman/mail/mailman confirm communityquot;
community-join: quot;|/usr/lib/mailman/mail/mailman join communityquot;
community-leave: quot;|/usr/lib/mailman/mail/mailman leave communityquot;
community-owner: quot;|/usr/lib/mailman/mail/mailman owner communityquot;
community-request: quot;|/usr/lib/mailman/mail/mailman request communityquot;
community-subscribe: quot;|/usr/lib/mailman/mail/mailman subscribe communityquot;
community-unsubscribe: quot;|/usr/lib/mailman/mail/mailman unsubscribe communityquot;
Hit enter to notify community owner...
[root@laptop mail]# vi /etc/aliases
[root@laptop mail]# cd /etc/
[root@laptop etc]# cp aliases aliases.backup
[root@laptop etc]# vi aliases
[root@laptop etc]# vi aliases
[root@laptop etc]# diff aliases aliases.backup
97,119d96
## mailman mailing list
mailman: quot;|/usr/lib/mailman/mail/mailman post mailmanquot;
mailman-admin: quot;|/usr/lib/mailman/mail/mailman admin mailmanquot;
mailman-bounces: quot;|/usr/lib/mailman/mail/mailman bounces mailmanquot;
mailman-confirm: quot;|/usr/lib/mailman/mail/mailman confirm mailmanquot;
mailman-join: quot;|/usr/lib/mailman/mail/mailman join mailmanquot;
mailman-leave: quot;|/usr/lib/mailman/mail/mailman leave mailmanquot;
mailman-owner: quot;|/usr/lib/mailman/mail/mailman owner mailmanquot;
mailman-request: quot;|/usr/lib/mailman/mail/mailman request mailmanquot;
mailman-subscribe: quot;|/usr/lib/mailman/mail/mailman subscribe mailmanquot;
mailman-unsubscribe: quot;|/usr/lib/mailman/mail/mailman unsubscribe mailmanquot;
## community mailing list
community: quot;|/usr/lib/mailman/mail/mailman post communityquot;
community-admin: quot;|/usr/lib/mailman/mail/mailman admin communityquot;
community-bounces: quot;|/usr/lib/mailman/mail/mailman bounces communityquot;
community-confirm: quot;|/usr/lib/mailman/mail/mailman confirm communityquot;
community-join: quot;|/usr/lib/mailman/mail/mailman join communityquot;
community-leave: quot;|/usr/lib/mailman/mail/mailman leave communityquot;
community-owner: quot;|/usr/lib/mailman/mail/mailman owner communityquot;
community-request: quot;|/usr/lib/mailman/mail/mailman request communityquot;
community-subscribe: quot;|/usr/lib/mailman/mail/mailman subscribe communityquot;
community-unsubscribe: quot;|/usr/lib/mailman/mail/mailman unsubscribe communityquot;
[root@laptop etc]# newaliases
/etc/aliases: 96 aliases, longest 54 bytes, 2031 bytes total
hmm this may be useful later on for linode that handles multiple domains:
- Set the values for DEFAULT_EMAIL_HOST and DEFAULT_URL_HOST in
/usr/lib/mailman/Mailman/mm_cfg.py file if the fqdn of the host you are
running mailman on is not the email and url host you need to use.
to disable moderation of all sent messages from members go to
http://laptop.dj.edm/mailman/admin/community Privacy options… Sender filters By default, should new list member postings be moderated? no
Sendmail setup
[root@laptop mail]# yum install sendmail-cf -y
snip
[root@laptop mail]# diff sendmail.mc sendmail.mc.backup
116c116
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
---
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
[root@laptop mail]# make
[root@laptop mail]# service sendmail restart
Shutting down sm-client: [ OK ]
Shutting down sendmail: [ OK ]
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]
[root@laptop mail]# netstat -tulnp | grep sendmail
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 3533/sendmail: acce
http://www.linuxselfhelp.com/quick/sendmail.html Configure MX records pointing to A records for mail server (not cname)
I couldn’t get the quot;toquot; envelope field to show the real hostname until I set it right in /etc/hosts
[root@laptop mail]# cat /etc/hosts
# hostname laptop.dj.edm added to /etc/hosts by anaconda
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.77.135 laptop.dj.edm
I also had to setup Masquerading
[root@laptop mail]# diff /etc/mail/sendmail.mc /etc/mail/sendmail.mc.backup
116c116
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
---
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
160c160
MASQUERADE_AS(`laptop.dj.edm')dnl
---
dnl MASQUERADE_AS(`mydomain.com')dnl
164c164
FEATURE(masquerade_envelope)dnl
---
dnl FEATURE(masquerade_envelope)dnl
168c168
FEATURE(masquerade_entire_domain)dnl
---
dnl FEATURE(masquerade_entire_domain)dnl
170c170
MASQUERADE_DOMAIN(laptop.dj.edm)dnl
---
dnl MASQUERADE_DOMAIN(localhost)dnl
LAMP stack install
[root@vission ~]# yum install httpd mysql-server php php-mysql
[root@vission ~]# chkconfig httpd on
[root@vission ~]# chkconfig mysqld on
Drupal
Oct 14 11:30:09 laptop yum: Installed: php-mbstring-5.3.3-1.fc13.x86_64
Oct 14 11:30:12 laptop yum: Installed: t1lib-5.1.2-5.fc12.x86_64
Oct 14 11:30:13 laptop yum: Installed: php-gd-5.3.3-1.fc13.x86_64
Oct 14 11:30:15 laptop yum: Installed: drupal-6.19-1.fc13.noarch
[root@laptop mail]# rpm -q drupal
drupal-6.19-1.fc13.noarch
[root@laptop drupal]# /usr/sbin/setsebool -P httpd_can_sendmail 1
create virtual host directory with proper SELinux attributes
- stub because directory listing breaks mediawiki
enable mod_rewrite for drupal
http://drupal.org/node/54231#comment-102528
[root@laptop conf.d]# diff /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.backup
975c975
NameVirtualHost *:80
---
#NameVirtualHost *:80
988,1008c988,994
VirtualHost *:80
ServerAdmin john@trianglebeats.com
DocumentRoot /usr/share/drupal
ServerName trianglebeats.com
ServerAlias www.trianglebeats.com
ErrorLog logs/trianglebeats.com-error_log
CustomLog logs/trianglebeats.com--access_log common
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !^/mailman
RewriteCond %{REQUEST_FILENAME} !^/$
RewriteCond %{REQUEST_FILENAME} !^/(files|misc|uploads)(/.*)?
RewriteCond %{REQUEST_FILENAME} !\.(php|ico|png|jpg|gif|css|js|html?)(\W.*)?
RewriteRule ^/(.*)$ /index.php?q=$1 [L,QSA]
/VirtualHost
VirtualHost *:80
ServerAdmin john@laptop.dj.edm
DocumentRoot /var/www/jimbrier.com
ServerName jimbrier.com
ErrorLog logs/jimbrier.com-error_log
CustomLog logs/jimbrier.com-access_log common
/VirtualHost
---
#VirtualHost *:80
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#/VirtualHost
=== Modules for calendar ===
[root@laptop modules]# ls
calendar-6.x-2.2.tar.gz cck cck-6.x-2.8.tar.gz date-6.x-2.6.tar.gz views-6.x-2.11.tar.gz
[root@laptop modules]# pwd
/etc/drupal/all/modules
[root@laptop modules]# ls
calendar-6.x-2.2.tar.gz cck cck-6.x-2.8.tar.gz date-6.x-2.6.tar.gz views-6.x-2.11.tar.gz
[root@laptop modules]# tar -xf date-6.x-2.6.tar.gz
[root@laptop modules]# tar -xf calendar-6.x-2.2.tar.gz
[root@laptop modules]# tar -xf views-6.x-2.11.tar.gz
[root@laptop modules]# ls
calendar cck date views
calendar-6.x-2.2.tar.gz cck-6.x-2.8.tar.gz date-6.x-2.6.tar.gz views-6.x-2.11.tar.gz
[root@laptop modules]#
After enabling the calendar module I ran into this bug: http://drupal.org/node/613528
PHP 5.3 issue - Attempt to modify property of non-object (Calendar Module)
I ‘rm -rf calendar’ and downloaded the dev version of calendar per the bug and that resolved the issue
After working with views I ran into this bug: http://drupal.org/node/452384
Make Views compatible with PHP 5.3 (but don’t break it for PHP 4.x)
fixed that by following
http://drupal.org/node/452384#comment-3219914
Removing the amp; in line 1511 in includes/admin.inc in
function views_ui_build_form_state($js, $key, amp;$view, $display_id, $args) {
helped! (#78; Views 6.x-2.11)’'
List Handler
[root@laptop modules]# wget http://ftp.drupal.org/files/projects/listhandler-6.x-1.0.tar.gz
[root@laptop modules]# tar -xf listhandler-6.x-1.0.tar.gz
Mailhandler
[root@laptop modules]# wget http://ftp.drupal.org/files/projects/mailhandler-6.x-1.11.tar.gz
[root@laptop modules]# tar -xf mailhandler-6.x-1.11.tar.gz
MailHandler requires php IMAP support or it won’t enable:
[root@laptop modules]# yum install php-imap -y
[root@laptop modules]# service httpd restart
HowTo: Integrate mailing lists with forums using Listhandler and Mailhandler
- Todo
- figure out why posts from Mailhandler are not automatically approved.
- I think it’s because the user used to post the comment is not authenticated specifically, since it comes in through mailhandler
http://trianglebeats.com/admin/user/permissions#module-comment
http://trianglebeats.com/admin/content/comment
Mailman Manager
Todo Mailman Manager http://drupal.org/project/mailman_manager - provides an interface through which users can subscribe to mailing lists run by Mailman.
Cron
mailhandler checks the configured email address that is subscribed to mailman whenever the drupal cron is run.
todo: http://drupal.org/cron
can be run manually here: