Author's posts

Apache Redirect, the admin way

I needed to redirect the root of my Webserver. The first (and easiest) way I found was to add this to my default virtual host: Redirect / For me, that file was located in /etc/apache2/sites-available/default.

Fix "Could not reliably determine the server’s fully qualified domain name" apache error

To fix the error "Could not reliably determine the server’s fully qualified domain name…" that happens when you restart Apache on Ubuntu, add this to /etc/apache2/httpd.conf ServerName localhost restart Apache again (apache2ctl graceful) and the error message should be gone. Thanks to Mohamed Aslam

Clear DNS cache in Windows

Here's a quick tip for when you're troubleshooting DNS stuff, but windows won't acknowledge your changes because the information is cached. (Bad, Windows, Bad, Bad!) ipconfig /flushdns Beauty!

Turnkey Linux

TurnKey Linux offers all the power of Linux with none of the hassle of setting it up. They have created install images for many popular setups. In fact, this blog is running on a TurnKey Linux install of WordPress. All we had to do was create a new virtual machine in Hyper-V, install from the …

Continue reading

Hyper-V snapshots are cool!

Snapshots in Hyper-V are awesome. No more reinstalling from scratch to fix a boneheaded error. Take a snapshot before you do something dangerous (like messing with users or network settings). Then, no matter what happens, you can return to the EXACT POINT IN TIME from which you took the snapshot. More information about snapshots from …

Continue reading

Root privileges using SFTP in WinSCP

My Ubuntu installation doesn't allow me to log in as root. But, it allows my user to escalate permissions and log in as root. I use WinSCP to transfer files from my Windows box to Ubuntu through SFTP. This works fine, except if I want to transfer files to a directory that requires root privileges. …

Continue reading

List of groups in Ubuntu

To get a list of groups in Ubuntu: getent group

Why is WordPress asking me to log in to install a new theme?

I was faced with that question, Googled it, and found that adding the following to wp-config.php fixed the problem: define('FS_METHOD', 'direct'); Thanks to Keith for figuring out why WordPress was asking me to log in just to install a new theme. EDIT: Dude, this fixes problems with installing new plugins too.

How to enable mod_rewrite in WordPress

…so you can have descriptive URLs like ours. Three easy steps: 1) First, from /etc/apache2/mods-enabled/ ln -s /etc/apache2/mods-available/rewrite.load 2) Then… /etc/init.d/apache2 restart 3) Last, add this stuff to your virtual host definition (in my case, /etc/apache2/sites-available/everythingiscrap) RewriteEngine On RewriteOptions Inherit I guess  you could say that the last step is to ENABLE descriptive permalinks in …

Continue reading

Who's logged into Ubuntu right now

Simple command… w It gives you a simple list of who's logged in, how, from where, and what they're doing. Very useful.