Home > Joyent SmartOSPlus (Server) > Joyent Server, Tomcat, Apache Web Server and mod_jk Connector

Joyent Server, Tomcat, Apache Web Server and mod_jk Connector

I just setup a new Joyent Server Smart Machine. I have to admit it was a challenge for me to get it up and running. I am a novice to Linux so this setup came with a steep learning curve. But I say it was worth it from how much I learned. Here is what I did – I hope that something here helps you.

Server Details:
I am running the SmartOSPlus (32bit) Image. This version is recommended for those who want a quick setup and minimal configuration. This package comes with most Linux based tools. Note that a few are different since these machines run Sun Solaris.

SmartOS vs Linux.

At Joyent you have the option of a Linux or Solaris (SmartOS) installation. Here are some factors to consider that might help you make a decision on which OS to choose.

Linux instances run on top of KVM Hypervisor on SmartOS in the Joyent Cloud.  By doing this, a lot of the built in performance/instant scalability features of SmartOS are disabled as they do not work beyond the hypervisor.  The specifics are listed out below:

SmartOS gives you several advantages over Linux.  They include:

  1. ARC for caching of files in memory on each server
  2. CPU bursting for flash incidents that require more compute – no cost for this.
  3. Live resize w/o reboot of RAM (up and down) via API or my.joyentcloud.com dashboard
  4. Full and deep integration of Cloud Analytics.  Linux does not have as deep of integration as SmartOS does.
  5. SmartOS is still UNIX so your typical LAMP stack works the same way.
  6. SmartOS security patching is done by Joyent as the maintainer of the OS.  Patching of Linux would be your responsibility
  7. SmartOS machines can come preloaded with LAMP stack and has a large repository of additional packages precompiled.
  8. Many GNU tools come loaded to give it the ease of use that Linux has.

My Objective:
Setup a web server. My goal is to migrate from Windows Server running Visual Basic .net web pages to a Linux based platform. I’m freeing my dependency on Microsoft products one day at a time. Yeah! We all will get there when ready, right?

I will discuss each of these:
ssh Connection
Apache Web Server
Tomcat 6
Tomcat Auto Startup/Shutdown
– mod_jk Connector
– MySQL Database Server
– MySQL Workbench
– Website Setup
– SFTP Connection

Useful Links to use during Setup

  • Joyent Wiki
    This is the wiki provided by Joyent. It provides updated information that pertains to the SmartOS machines.
  • Joyent Administration Settings
    The administration control panel for billing, server credentials, and SSH keys.
  • Virtual/Webmin login
    The virtualmin control panel is located on port 10000 of your public IP address provided by Joyent or any domain name you have pointed to your Joyent Server.

Terms that might be useful:

Here are a couple of terms that you might find beneficial. These terms are specific to Joyent Servers and configurations (im not trying to insult you).

ip address:
Joyent provides two IP addresses. One is the private and the other is public. These can be found in your Administration Settings (my.joyentcloud.com). Login to account settings, click “Machines” Tab, click on your smart machine to view the details. You will see both public and private IP addresses. Your private IP address will start with 192.168.xxx.xxx. The other is your public IP address.

private ip address:
The private IP address is for internal use such as connecting to a dedicated database server, mail server, etc. If you only purchased one server; I dont believe you will be using the private IP address.

public ip address:
The public IP address is the IP address used for pointing all websites you manage. This is also used in SSH connections, MySQL workbench connections, and SFTP connections.

Server reboot.
There are two ways to reboot your server on a Joyent machine. You can reboot from the Joyent Administration control panel (my.joyentcloud.com). Login to your Joyent control panel, navigate to Machine Details and click the “reboot” button. You can update the status by clicking the “refresh status” button as well.

The second option is when logged in a bash shell prompt. This is the better option of the two. This is a graceful reboot. Finish editing any files and get to the point where you are ready for server to reboot.Type:

sudo shutdown -y -i6 -g0

Apache reboot.
To reboot Apache Web Server on Joyent Server. See Apache HTTP Server Control Interface Docs or use one of the commands below:
Reboot Apache:

sudo apachectl restart

Stop Apache:

sudo apachectl stop

Start Apache:

sudo apachectl start
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: