Monthly Archives: February 2011

Flash media server and apache

Posted by & filed under Linux.

At work, due to a Flash Media Server running on one of the IP addresses, when we restart Apache using WHM, everything gets disconnected, and this causes Apache to fail. Here are instructions for what to do if someone restarts Apache: Open Putty and login to the server. Insert this line to access the FMS… Read more »

Putty with SSH keys

Posted by & filed under Linux, Odds.

Use Pageant for loading the key, then in Putty make sure you add the username to the Connection -> Data -> auto-login username. Once you’ve done that, make sure that Connection -> SSH -> Auth has “attempt authentication using Pageant ticked, and “attempt keyboard-interactive auth. Here’s a good article.

Using Tunnellier to HTTP over SSH

Posted by & filed under Odds.

The recommended browser for this purpose is Firefox, because it can be configured to resolve DNS names through the SOCKS proxy, so the names of the websites you’re browsing don’t leak out through DNS queries. You will need an account at an SSH server which allows you to use port forwarding. Configure Tunnelier to connect… Read more »

Parsing WordPress wp-config.php file

Posted by & filed under OOP, Wordpress.

I need a script to extract the database details from the wp-config.php file so I could keep the logon details in one location when I was coding something outside the WP framework. I came up with a class that does this, connects to mysql and selects the database. There are three connection options: PDO, mySQLi… Read more »