Post thumbnail of I configured $wgSMTP in LocalSettings.php, but password resets just weren’t working…
11 March 2009
Continue reading I configured $wgSMTP in LocalSettings.php, but password resets just weren’t working…

I configured $wgSMTP in LocalSettings.php, but password resets just weren’t working…

I had $wgSMTP set up to talk to a remote exchange server, but password resets just weren’t working from the wiki. It turns out all I was missing was the ‘php-pear-Mail package’ (in fedora, for debian or other systems it may be a different package name). I started by checking any logs related to this problem… mail.php missing in UserMailer.php - dependency problem

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
Post thumbnail of Control the links that appear in Mediawiki’s toolbox and make it vanish for anonymous users
10 March 2009
Continue reading Control the links that appear in Mediawiki’s toolbox and make it vanish for anonymous users

Control the links that appear in Mediawiki’s toolbox and make it vanish for anonymous users

I wanted to simplify the toolbox for a special purpose wiki, but everywhere I searched all I could find was how to change the name of the toolbox, or how to show it only to logged in users, etc. To delete one of the default toolbox links, just change the data value to something it will never see. You could remove the if statements completely for each link you want removed, or just change the data value to something that will never result in entering the if statement. It’s less intrusive than removing the code completely. Either way, you won’t be deleting the toolbox function, only the link from the interface — which is exactly what I wanted. If you want to trim the navigation part of the sidebar, that’s built right in. Just go to Mediawiki:Sidebar and edit that page.

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
Post thumbnail of Random conversations with strangers through Project Upstream
9 March 2009
Continue reading Random conversations with strangers through Project Upstream

Random conversations with strangers through Project Upstream

Have you ever received an instant message from a stranger with the words Coho, Trout, or Salmon in their screen name? If the answer is yes, then you’ve been picked up by Project Upstream bot. Did you dig the hook in deep by starting a conversation…or perhaps an argument? I have run into a few Coho’s so far and they’re usually good for interesting conversation.

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
Post thumbnail of MessageBus hangs at bootup - ldap + firewall was the problem
6 March 2009
Continue reading MessageBus hangs at bootup - ldap + firewall was the problem

MessageBus hangs at bootup - ldap + firewall was the problem

Check iptables or other firewall applications running on that machine. If ldap traffic is being blocked, this could be causing it to hang. That’s what happened to me. I changed the firewall rules and forgot to add the ldaps rule and it broke. I could work around it by hitting “i” while booting and it would go into Interactive mode and allow me to say No to the MessageBus service. Everything else came up fine in runlevels 3 and 5, but it would always hang when loading the dbus app.

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
Post thumbnail of Redirect http to SSL encrypted https for specific domains in lighttpd
6 March 2009
Continue reading Redirect http to SSL encrypted https for specific domains in lighttpd

Redirect http to SSL encrypted https for specific domains in lighttpd

I read in a bunch of places that you can’t use HTTP["scheme"] to redirect http:80 traffic to https:443 without using 2-3 levels of nesting with socket and host. But that’s just not true. The only reason it doesn’t work at first is because http is a subset of https, so be more specific with http$ and it works with just one line in lighttpd.conf.

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
Post thumbnail of Create SSL certs and enable https with Lighttpd
5 March 2009
Continue reading Create SSL certs and enable https with Lighttpd

Create SSL certs and enable https with Lighttpd

Now edit the lighttpd.conf configuration file to enable ssl. Use the public facing interface’s IP address instead of mine, unless yours happens to be 192.168.1.2 too! And nmap or netstat will let you know it’s listening on port 443

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
Post thumbnail of LDAP + Lighttpd :: Easy setup
5 March 2009
Continue reading LDAP + Lighttpd :: Easy setup

LDAP + Lighttpd :: Easy setup

Enabling LDAP authentication should take you about 2 minutes, unless you type with just 2 fingers. Then maybe 3 or 4. …If you don’t allow anonymous connections to your ldap, give it a user/password combination that has enough privs to do the lookups, or just use your master account if you’re just testing or don’t really care. … Now tell it what parts of your webserver you want to protect and how. You can specify any string you’d like for the realm. Here I require an LDAP user account name and password just to get to the wiki main page, and only admin can see the server-config page… Restart lighttpd and you’re done.

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
Post thumbnail of Install Mediawiki and Lighttpd on Fedora 10
4 March 2009
Continue reading Install Mediawiki and Lighttpd on Fedora 10

Install Mediawiki and Lighttpd on Fedora 10

blah blah, mediawiki http://blog.rootninja.com, And finally, “To complete the installation, move config/LocalSettings.php to the parent directory.” just like it says…

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
Post thumbnail of The Linux Foundation is relaunching Linux.com
4 March 2009
Continue reading The Linux Foundation is relaunching Linux.com

The Linux Foundation is relaunching Linux.com

I didn’t think anything of it when I read it in the news this morning. And then I went to linux.com to log in, browse the forums, and try to answer any interesting questions, and BAM!!! “Linux.com is relaunching!”

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
Post thumbnail of Python: Get unique elements in a list, sorted or unsorted
3 March 2009
Continue reading Python: Get unique elements in a list, sorted or unsorted

Python: Get unique elements in a list, sorted or unsorted

I ran into these two methods for grabbing just the unique elements from a list, one keeps the order, the other relies on sorting the list. But then I found some strange code that works really fast. Check out this amazing little one liner!

Share this:
  • Digg
  • Facebook
  • Reddit
  • LinkedIn
  • Google Bookmarks
 Page 37 of 47  « First  ... « 35  36  37  38  39 » ...  Last » 
Powered by Wordpress   |   Lunated designed by ZenVerse