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.
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
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 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 …
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 …
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. …
To get a list of groups in Ubuntu: getent group
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.
…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 …
Simple command… w It gives you a simple list of who's logged in, how, from where, and what they're doing. Very useful.