Forum archive
Step-by-step on installing VirtualMin on *fresh* install of lamp-2009.02-hardy
I've successfully installed VirtualMin on a fresh install of turnkey-lamp-2009.02-hardy-x86.iso on my testbox. Please feel free to give feedback on other problems that come up for you and maybe we can get a good FAQ entry for Turnkey!
Test environment: WebServer 2008 OS, turnkey-lamp installed under VM-Workstation 6.5. The total install base, after this has been completed is just under 1.8Gigs, so it's a good idea to create a VM image file that is over this (4 Gigs, for example).
BEFORE you install Virtualmin, you need to make sure that all libs and modules are updated. Please go to my other Step-by-step to do this.
Also note that Virtualmin ONLY supports UP TO Ubuntu 8.0.4 LTS, so trying to install to 8.1.0 will not work.
Respositories for reference:
These steps should take 20-30 minutes to complete, that's it!
- Install Turnkey LAMP 8.0.4 LTS from ISO
- Manually update packages
- Shell: sudo apt-get update
- Note: also see (/etc/apt/sources.list)
- Install CURL
- Note: this enables you to pull files with install.sh script
- Shell: sudo apt-get install curl libcurl3 php5-curl php5-mcrypt
- Install VirturalMin
- Note: Virtualmin docs state that you MUST have a fully qualified domain name setup already (something.com) to install, but in this case, you don't. When it prompts you for the name, just type something in that identifies your server ("myubuntu.com" for example).
- Shutdown Webmin
- Shell: sudo /etc/init.d/webmin stop
- copy VirtualMin/install.sh to root
- Shell: sudo sh install.sh
- Restart Webmin
- Shell: sudo /etc/init.d/webmin start
- Connect to Sql-Server
- Webmin > Servers > MySQL Database Server
- Connect to db with root/pass creds.
- Run Webmin Setup Wizard
- should display in Right panel after fresh install
- Update Modules
- Webmin > System Information > Package updates
- Problems/Fixes:
- 1) Problem: Webmin > Checking Configuration:
- "The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed."
- (ref. http://www.virtualmin.com/forums/help-home-for-newbies/virtualmin-suexec...)
- 1) FIX: Update Apache2 with VirtualMin's version
- Shell: sudo /etc/init.d/webmin stop
- Shell: apt-get update
- Shell: apt-get install apache2
- Shell: sudo /etc/init.d/webmin start
- WebMin > Checking Configuration (should be fine now)
- 2) Problem: WebMin>Module Updates Fail to install or Virtualmin complains "... module is missing" when working with virtual hosts.
- module/security updates have dependency issues related to older versions of webmin (webmin-virtual-server 3.69 or less).
- 2) Fix: manually download/update latest webmin_1.xxx_all.deb
- Shell: apt-get install perl5 libnet-ssleay-perl
- (if errors try this) Shell: apt-get install libnet-ssleay-perl
- Shell: wget http://downloads.sourceforge.net/sourceforge/webadmin/webmin_1.500_all.deb
- Shell: dpkg --install webmin_1.500_all.deb
- Restart Webmin if needed
- WebMin > Refresh Available Packages
- WebMin > Update Selected Packages
- Note: you may need to re-run the Update process several times before all modules are updated properly.
- Shell: apt-get install perl5 libnet-ssleay-perl
- 3) Problem: WGET missing
- 3) Fix: install manually
- Shell: apt-get install wget
- or follow this guide: http://nobluescreens.com/solutions/wget_install.php
- 1) Problem: Webmin > Checking Configuration:
This kind of community documentation effort will make it easier for us to build a virtualmin appliance because it communicates this is something users want, confirms that there are no major issues, and provides some useful information regarding the integration details that will cut down how much time it takes to usually put together an appliance.
If it's not too much trouble it would help if could upload your virtualmin appliance prototype to a free file hosting service such as DropBox and share it with us. That way we'll have a live system to use as reference.