VMWare Virtual Machine with Magento and Ubuntu Server 7.04
Last modified: October 16th, 2007
Magento is an open source ecommerce platform with complete design flexibility, modular architecture, and rich functionality. Currently the beta version is available. Try the Magento Demo Store and/or the Admin.
To get Magento installed on a server can be a challenge. That’s why I’ve created a virtual machine with Magento installed.
I used VMWare to create a virtual machine. I used the linux distribution Ubuntu Server 7.04 in VMWare. I installed and configured Ubuntu to meet the system requirements. The only thing I haven’t installed is a Sendmail-compatible Mail Transfer Agent (MTA), so you can install your own MTA.
The installation and configuration of Magento didn’t went smoothly. Eventually, after a lot of tryouts, configuration, use of the Magento forum and Googling, I managed to install it. I will soon post a guide how to create your own VMWare virtual machine with Magento and Ubuntu Server 7.04.
Download
Download from MegaUpload.
Download from The Pirate Bay.
Virtual Machine: VMWare
Magento Beta Version: 0.6.12840
Filename: Filename: vmware_magento_ubuntu_server704.zip
File size: 292.55 MB
Extracted file size: 820 MB
Using the Virtual Machine
Extract the zip file and open the vmx file in VMWare Player/VMWare Workstation/VMWare Server. VMWare Player and Server are free, except for the Workstation. For Linux all the VMWare products are free.
The virtual machine will now boot into Ubuntu Server 7.04. When you see the message “* Running local boot scripts (/etc/rc.local)” then click in e.g. VMWare Player to give it focus. Then press ENTER. Now the login screen appears. If you want to use your keyboard/mouse outside of the virtual machine, press CTRL + ALT.
Login with the following:
user: magento
password: magento
Type ifconfig to see your ip address. If e.g. your ip address is 192.168.1.64 then open http://192.168.1.64/magento in your browser. If you don’t have an ip address, then type the command dhclient and Ubuntu will give you an ip address. Magento is installed in /var/www/magento/.
I installed Magento with the static ip address 192.168.1.33. So if you’ve received the ip from dhcp 192.168.1.64 and you open it in a browser you will see the root directory of /var/www. But if you try to open /magento it won’t work because it tries to open http://192.168.1.33/magento. You have to assign Ubuntu the static ip adress 192.168.1.33.
If you want to use a sudo command, then use the password “magento”.
Assign static ip address
cd /etc/networksudo cp interfaces interfaces.backupsudo vi interfaces- Change
iface eth1 inet dhcptoiface eth1 inet static - Below this line enter the following:
address 192.168.1.33
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.254 - Save and close interfaces:
escape :x sudo vi /etc/resolv.conf- Change the code to:
#search lan
nameserver 192.168.1.254 - Restart the networking service:
sudo /etc/init.d/networking restart - Check if you have the static ip address 192.168.1.33:
ifconfig eth1 - If it worked, then go to http://192.168.1.33/magento/
MySQL
You can use mysql -u root to login to mysql. The root account has no password. I’ve created a mysql user “magentouser” with the password “magentopasswd”.
Login as a magentouser with mysql -u magentouser -p.
The database name is “magentodb”.
Magento Admin
To login to the Magento Admin go to http://192.168.1.33/magento/admin/.
Login with the following:
username: anandgraves
password: 0pzouten@ (0 is zero)
After your login you can change your username/password/email by going to System > My Account.
SSH
You can also login with SSH into Ubuntu Server 7.04 instead of using the VMWare Virtual Machine interface.
sudo apt-get install ssh openssh-server- Go to the putty download page and download PuTTY (putty.exe).
- Start up PuTTY and choose
192.168.1.33as the hostname - Choose port 22 (this is default)
- Click open and fill in the username: “magento” and password “magento”.