How To Install Web Server On Linux

I might not be very good at explaining things in an impromptu manner, but hopefully within the video right after the break I do somewhat OK in showing you how to install a web server on Linux.  Also, I explain how to use the web server in a basic sense.  For the bonus, I also show you how to install MySQL’s web administrative interface PHPMyAdmin.  At the end of the video, I demonstrate how to install WordPress just to prove to you that you can really host a web application on your brand new web server.  Please enjoy the video tutorial right after the break!

How To Install Minecraft Server Onto Ubuntu 11.10?

Home sweet home - in minecraft

Home sweet home - in minecraft (Photo credit: Larry and Laura)

I didn’t know anything about Minecraft, and I still don’t.  Nonetheless, someone has asked me how to install Minecraft server onto Ubuntu, and so I showed him how to do so.  Since now I knew how to install Minecraft server onto Ubuntu 11.10, I thought it would be a good idea to write about it.  It is simple to install Minecraft server onto Ubuntu 11.10 really!

You can either follow the instruction from minecraftwiki.net/wiki/Tutorials/Setting_up_a_server or you can follow mine here, because I actually had to use Minecraftwiki as the source of knowledge on how to install Minecraft server onto Ubuntu 11.10.

Steps:

  1. Are you running Ubuntu 11.10?  Make sure you are, and then follow the step number 2.
  2. Opening up a terminal and becoming root by executing this command [sudo -i], but do not use the square brackets as part of your command line — square brackets are there to only clarify the command line.
  3. Inside terminal as root, type in this command [add-apt-repository ppa:ferramroberto/java].  This command is to add a ppa repository which contains sun-java6-jre software.  Using this ppa repository, you can now install sun-java6-jre easily through apt-get or aptitude.  I guess Minecraft server requires sun-java6-jre to be installed before you can launch Minecraft server.
  4. Since we have added a new ppa repository.  Now we should just update our aptitude database by doing this command as root [aptitude update].
  5. Now aptitude’s database is up to date, we should now be able to go ahead and install sun-java6-jre.  Let do this command as root [aptitude install sun-java6-jre].
  6. Now, we need to tell Ubuntu system to insert sun-java6-jre into user’s home path by doing this command as root [update-alternatives –config java].  You need to choose the selection that emphasizes sun-java6-jre specifically.
  7. Since we now have sun-java6-jre installed, we can now go to Minecraft official website and download Minecraft server software.  Make sure you are downloading the Minecraft server version that is to be used with Linux operating system, OK?
  8. Hopefully, you remember where you have downloaded minecraft.jar file to.  You need to change into the directory that you have downloaded the minecraft.jar file.  Now, execute this command [java -Xms1G -Xmx1G -jar minecraft.jar nogui] as the user who has the privilege to run server on your system.  Usually, preferable users are nobody (i.e., user apache is for running web server) and normal user.  Don’t run Minecraft server as root, because Minecraft server might have exploitable codes and allow hackers to escalate to root privilege by exploiting the faulty codes of Minecraft server — with root privilege, hackers will be able to do anything to the entire Ubuntu system.

Note:  If your server isn’t having enough RAM, then you should read the instruction at minecraftwiki.net/wiki/Tutorials/Setting_up_a_server to know how to solve the RAM and SWAP problem OK?  The command [java -Xms1G -Xmx1G -jar minecraft.jar nogui] has two parameters (-Xms and -Xmx) and by adding the free/available RAM amount of a system to these parameters, this action might allow a Minecraft server administrator to control how much RAM a Minecraft server would hog (i.e., use).  So, in a sense, you can manipulate this command line’s parameters to make Minecraft runs smoothly — depending on how much RAM your Ubuntu 11.10 system has.

Source:  http://www.minecraftwiki.net/wiki/Tutorials/Setting_up_a_server

Installing Virtualmin On Ubuntu 10.04

New php developers and web designers who are wanting to develop their codes in a test environment, they need to learn how to set up a local server or a local server environment on their laptops and desktops.  It’s a dreaded thing for them to learn even more before they can have a test environment going so they can frequently upload their php scripts and related html codes.  It’s a lot of work!  Not to worry, I know an easier way for you to get a test server environment going!  I’m sure there are even easier ways than mine, but if you haven’t found out a better way yet, why not try my method, right?  So how?  One word, Virtualmin!

What’s Virtualmin?  It’s a control panel of sort that helps you manage your server using LAMP configuration.  For your information, LAMP stands for the combination of technologies involves with Linux, Apache, MySQL, and PHP.  Why is it easy to manage your test server or production server with Virtualmin?  For an example, you can create a new virtualhost account that has FTP access, SSH access, email account, SSL protocol for securing website, and a lot more by just filling out a single web page where you can enter new username and password for the new virtualhost account, check necessary boxes of features that you want your virtualhost account to have, and then accept the creation of your newly virtualhost account with one single last click on the create account button.  It’s simple as that!  It saves you time to open up a terminal, editing various configuration files of Apache, Bind, FTP, MySQL, and so on.  Just like any powerful control panel in the market, Virtualmin has many ways for you to manage your server either in the test environment or in the production environment with ease.

I have created a video which shows you how to install Virtualmin.  Also, in this video, I show you how to create a simple virtualhost account.  Check it out after the break!  Have any feedback or comment for me?  Don’t hesitate to write a feedback or a comment on my video.  I don’t mind if it’s a negative comment, because the more critical you’re, the more that I know you care!