Tag: apache

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

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

Apache Doesn't Start After System Restart

Linux web server restart problem… cd /etc/apache/ httpd -t httpd.conf [which websites are "missing", comment them out in httpd.conf] apachectl restart …Had a power outage today which means our linux web server went down. And, once again, the web server didn't start because it couldn't find all the web sites listed in it's config file. …

Continue reading