Linux Format

Device support

Installing the web servers on Ubuntu and Raspian.

-

When running the installati­ons and tests for the various web servers, both Ubuntu and Raspbian were used since both tools are of great use to a typical web developer. In some circumstan­ces, Ubuntu would be a simple install while the latest 2018 version of Raspbian had no packages. Luckily, we used our time to find five packages that did install rather quickly on our machines. In addition to installati­on issues from simple install commands, installing from source was erroneous in some cases, too. So, with that said, let’s take a closer look at what we found in terms of device support when we made our installati­ons.

With Apache, Nginx, lighttpd and Apache Tomcat, all products could be easily installed on Ubuntu and Raspbian with the usual apt-get .... command. For example, installing Apache is as easy as typing apt install apache2 .

Openlitesp­eed has documentat­ion that claims it can be installed from a repo followed by the typical apt-get install command. However, on both Ubuntu and Raspbian that method outright failed. That was a little annoying, but there are other options. After attempting to install Openlitesp­eed from the source on both devices, that failed too. The ./configure command could not run as the file was missing from the compressed file that was downloaded. Since they ordered their installati­on methods from left to right, we had already wasted time getting to our end means. Luckily, on attempt number three, Openlitesp­eed did install on Ubuntu with the one-line click method, but not on Raspbian. Thus, for testing web servers, this product succeeded at making the bottom of the list in terms of device support in more ways than one.

Besides from Apache and Tomcat, all servers use port 80 for opening web pages. By default, Tomcat uses port 8080. Thus, running Tomcat and using localhost:8080 will open it. Unfortunat­ely, if we are already using port 8080 for another service, such as Linux Motion, we need to configure it to use another port such 7000.

The good thing about all of the servers is that they install rather quickly, thus, we can use them on our devices almost right away after we execute our commands. VERDICT Apache 10/ 10 Tomcat 9/ 10 Nginx 10/10 Openlitesp­eed 6/ 10 Lighttpd 10/ 10 It’s Openlitesp­eed that slips here being a lesser-known server than the rest.

 ??  ?? All are compatible with Ubuntu and Raspian!
All are compatible with Ubuntu and Raspian!

Newspapers in English

Newspapers from Australia