Category: ubuntu

Stupid SSL Certificates

So, we get our security certificates (for our Ubuntu web server) from Thawte, 'cuz they're cheap. Their instructions take you through every step to create and implement your certificate, however, for some reason, apache wouldn't restart when the server was restarted. typing apache2ctl restart gave a long error that goes something like "(98)Address already in …

Continue reading

Forwarding email in Ubuntu

jjcv over in the Ubuntu forums taught me how to forward email to an external address: MAke sure you have a mail server installed…. something like postfix. Edit /etc/aliases added or edit an entry for root to forward email: root: myname@gmail.com Save the file. Run the program 'newaliases' which will update the aliase database and …

Continue reading

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

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

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.