Few notes about how to set up an EBS AMI UBUNTU 10.04 on AMAZON EC2 with Webmnin/Virtualmin.
This is not a comprehensive how-to but may help some people.
UBUNTU 10.04
pick your ami @ http://uec-images.ubuntu.com/releases/10.04/release/
ami-3e02f257
ssh -i /.ssh/yourkeypair.pem ubuntu@your-ip-address
sudo apt-get update
sudo tasksel --section server
tab select
basic ubuntu server, dns server, lamp server, mail server, openssh server, ubuntu entreprise cloud, virtual machine host
**password**
**if you need to change php5 eg:
sudo aptitude install php5-imap
sudo /etc/init.d/apache2 restart
sudo apt-get install phpmyadmin
**password**
WEBMIN
http://www.kelvinwong.ca/2010/05/22/installing-webmin-on-ubuntu-server-10-04-lts-lucid/
sudo aptitude -y install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl apt-show-versions libapt-pkg-perl
wget http://ftp.debian.org/pool/main/libm/libmd5-perl/libmd5-perl_2.03-1_all.deb
sudo dpkg -i libmd5-perl_2.03-1_all.deb
wget http://sourceforge.net/projects/webadmin/files/webmin/1.530/webmin_1.530_all.deb/download
sudo dpkg -i webmin_1.530_all.deb
OR (if not working) sudo dpkg -i download
sudo /usr/share/webmin/changepass.pl /etc/webmin root PASSWORD
sudo /etc/init.d/webmin start
LOGIN WEBMIN
IMPORTANT UPDATE WEBMIN BEFORE ANYTHING ELSE**********************
WEBMIN CONFIGURATION
install virtualmin (install via webmin modules install from computer)
save on desktop:
http://download.webmin.com/download/virtualmin/virtual-server-3.83.gpl.wbm.gz
http://download.webmin.com/download/virtualmin/virtual-server-theme-7.9.wbt.gz
Configure Postfix:
sudo vi /etc/postfix/main.cf
and add:
virtual_alias_maps = hash:/etc/postfix/virtual
sudo /etc/init.d/postfix reload
sudo vi /etc/dhcp3/dhclient.conf
uncomment #prepend domain-name-servers 127.0.0.1;
Webmin->networking->Hostname and DNS Client
Swap Resolution order as 127.0.0.1 should be first
sudo vi /etc/hosts
replace 127.0.0.1 localhost
by
127.0.0.1 localhost.localdomain localhost
ip domain.com domain
sudo vi /etc/hostname
domain.com
APACHE MOD SUEXE OFF
Virtualmin (Server Templates:Apache Website:Automatically add appropriate SuExec directive? set it to "No")
CLICK "CUSTOM" & no
check ftpdpro server module is on
**Good to have a look to
Webmin->Apache Webserver->Global-configuration->configure Apache modules
*************************************
if error "pma_tracking" in phpmyadmin
*************************************
editing /etc/phpmyadmin/config.inc.php and added
$cfg['Servers'][$i]['tracking'] = 'pma_tracking';
to the $cfg['Servers'][$i] section
*********************
CURL
******************
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl php5-mcrypt
sudo /etc/init.d/apache2 restart
When you set up a website/domain you need to do as following:
Virtualmin->Create virtual server
Now the server is almost ready.
Virtualmin->Services->DNS Domain
create two A records
Click on Address
Name: ns1.yourdomain.com
Address: Your Elastic IP
Name: ns2.yourdomain.com
Address: Your Elastic IP / or you can register to a service like www.dyndns.com www.opendns.com
Back on Edit Master Zone->Click on Name server
(you can edit the existing one)
Name: your domain.com
Name server: ns1.yourdomain.com
Name: your domain.com
Name server: ns2.yourdomain.com /or something else.
****************************************
Last thing: create an image when it works ;-)
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment