John Mercier

java programming and scjp

  • Blog
  • Projects

Server1 Setup ubuntu, java, virtualmin

Posted on April 24, 2010 by John J Mercier

Filed under Programming | 1 Comments

A while ago I wrote a document describing how I setup my own server for shared web hosting using virtualmin. This can be helpful if you ever plan on hosting your websites on your own server. It was fun learning about these technologies so I'm willing to share my notes.

Server1

This document explains the steps I took to install and configure server1.

Note: keep in mind that I have a router setup with dchp enabled.



Also, I have setup dhcp clients to use server1 as the first dns server along with my isp dns. These settings will come up when setting up the FQDN of server1 and when changing the ip address to static.Remember to change the DNS 1 setting to server1's ip address. The only other router setting I can think of is putting the server in the DMZ.


Installing The Software


1. Install fresh copy of ubuntu 8.04(LTS) server edition
  • make sure to extend root volume to second harddrive
  • hostname is server1
  • DO NOT install dns, lamp, postgresql, mail because suexec for apache causes errors
    • tomcat is not an option in this version
  • system mail name is johnmercier.selfip.com
2. install sun-java and use it
  • sudo apt-get install sun-java6-jdk
  • sudo update-java-alternatives -s java-6-sun
3. update system packages
  • sudo apt-get upgrade
4. setup static ip and resolv.conf
  • link
  • test with hostname -f and check for hostname in browser
    • server1.johnmercier.selfip.com will not work until dns is setup.
    • johnmercier.selfip.com should work if httpd is running
  • remove dhcp client
  • link
5. install virtualmin using the install.sh script on their website
  • link

VIRTUALMIN SETUP

1. post install script
  • Basically answered yes to everything.
2. Check config
  • Default IP address is set to 192.168.1.10, but the detected external addresss is actually 24.165.27.83. This is typically the result of being behind a NAT firewall, and should be corrected on the module configuration page.
    • System Settings -> Module Config -> set Default IP address for DNS records = Automatically detect external address.
3. Default settings

4. Server Plans

5. Bandwidth Monitoring

6. Skeleton Pages




future steps
  • setup mod_jk
  • make control panel to edit mod_jk, restart tomcat, change jdk, and access virtualmin, usermin, webmin
  • write webapp to show status of all servers on public page



 

Share |

« SCJP Notecards | Main | Helpful Learning... »


Comments:

the post is very nice..good thinking of this one..really nice this one..thanks for sharing this one here with us

Posted by seo greece on July 13, 2011 at 12:45 PM PDT #

Post a Comment:
  • HTML Syntax: Allowed
  • General (12)
  • Projects (3)
  • Programming (14)

Search

Tag Cloud

activism addthis.com data_structure downloading facebook google google-buzz introduction java javablackbelt jdbc johnmercier.com jsp linux model-1 netbeans nvidia objectivism official-english programming projects pti roller scjp server sql theme uncertainty velocity welfare-state

Friends

  • Ed
  • Shane

Links

  • Glazed Lists
  • JGoodies
  • Java Specialists
  • Swing 2.0
  • Swing Generics
  • ideone
  • pircbot

Feeds

  • All
  • /General
  • /Projects
  • /Programming
  • Comments

Referrers

  • direct (214)
  • www.playdota.com/for (39)
  • www.mycraft.com/ueba (38)
  • baccaratforums.com/g (38)
  • www.cooksillustrated (37)
  • znakomstvaca.info/si (10)
  • znakomonly.info/site (10)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • znakomstvaca.info/si (5)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • znakomstvaca.info/si (5)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • znakomstvaca.info/si (5)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • znakomstvaca.info/si (5)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • microscopiclove.info (5)
  • znakomstvaca.info/si (5)

Navigation

  • John Mercier
  • Weblog
  • Login

©2010 John J Mercier.

Designed by Free CSS Templates. Template by E. Strokin. Powered by Roller Weblogger 4.0.1.