Install the Apache Web Server
Jamroom has been designed to run on more than just the Apache Web Server (specifically nginx, which will be covered in another guide after we've had time to ensure it all works properly), but for now we recommend using Apache - it is battle tested, solid, and what we develop Jamroom on.
Installing Apache is just as easy as installing MySQL:
apt-get install apache2 apache2-prefork-dev libcap-dev
This will install the Apache Web server (as well as a bunch of related Apache utilities) on your system - note that the Apache configuration files will be installed in /etc/apache2 - we're going to cover the Apache configuration in more depth in the next section of our guide.
By default there are some Apache modules that Jamroom uses that are not enabled by default. To enable an Apache module, we use the "a2enmod" command:
This enables the mod_rewrite module which Jamroom uses to construct nice looking (SEO) URLs, as well as the mod_headers module that Jamroom uses to set expiry times on images, css, javascript, etc.
You will be prompted to restart Apache, which you can do if you want to, although you will likely see the following error:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
We're going to fix that now - we need to set the Apache "ServerName" in the /etc/apache2/apache2.conf file - open that file with an editor:
pico /etc/apache2/apache2.conf
And at the top add a line like this:
ServerName www.jamroom.net
Of course change "www.jamroom.net" to be the domain you are going to be setting up. Save the file and exit. Now you can restart the web server again and you won't see that error.