Tag: linux

My first cron job

I needed a way to backup MySQL databases every night. So, I made my first cron job. Ubuntu has a site that explains cron, crontab, and anacron in simple enough terms that even I could understand. I ended up using anacron. That means I made a script file and placed it in /etc/cron.daily. After a …

Continue reading

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 / http://www.new-domain.com/ 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

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

List of groups in Ubuntu

To get a list of groups in Ubuntu: getent group

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

New Virtual Host in Apache on Ubuntu

I'm an IIS guy, so Apache seems arcane to me. And the creation of a new website (aka Virtual Host) was difficult at first, but seems straightforward enough to me now. Here's how it's done. Create a text file that will define your website in /etc/apache2/sites-available. In that text file goes a description of your …

Continue reading

Mounting a CD in Ubuntu

Mounting a CD in Ubuntu isn't as easy as it should be, but it is a lot easier than I thought it would be. mount cdrom That's it. The CD is now mounted and available in /cdrom.

Shell in a Box is great

What a great idea! It's an AJAX shell that gives you access to your Linux command line. Just grab Shell in a Box and install it.

Set the time zone in Linux

Apparently, tzconfig is out. dpkg-reconfigure tzdata …is in!