Installing Magento on a Linode VPS with Ubuntu 9.10

4 11 2009

Magento is an interesting and emerging player in the e-commerce space. I wanted to get a feel for the application so I thought I’d install a copy of the community edition in a Linode VPS.

NOTE:

Although you can run all of the following as the root user, it is strongly recommended to create a non-root account and run the following commands using sudo.

  1. Become a Linode customer and create an instance in the Linode Manager using the Ubuntu 9.10 profile.
  2. SSH into your VPS instance using the root account and the password that you configured when provisioning your Linode.
  3. Install the core software for a LAMP Server (Apache, MySQL, PHP) by running the following command:
    sudo tasksel install lamp-server
    A blue installation progress screen will appear, you’ll be asked to provide certain configuration parameters (like a root password for MySQL.
    When the blue screen disappears the installation of Apache, MySQL and PHP will be complete.
  4. Edit /etc/apt/sources.list and uncomment the ‘universe’ repsoitories.
  5. Update apt so that it is aware of the new repositories by running the following command:
    sudo apt-get update
  6. Install mcrypt by running the following command:

    $ sudo apt-get install php5-mcrypt

  7. Enable mcrypt by editing the php.ini file by editing /etc/php5/apache2/php.ini and adding the following line to
    the extensions section of the php.ini file:
    extension=mcrypt.so
  8. Generate new Symlinks in /etc/apache2/mods-enabled so that Apache 2 enable the extension for URL rewriting by running the following
    command:
    $ sudo a2enmod rewrite
  9. Next the following lines need to be put at the end of /etc/apache2/apache2.conf:

    <Directory "/var/www/magento">
    AllowOverride All
    </Directory>
    (Assuming that Magento is going to be installed in /var/www/magento otherwise, edit the path accordingly)
  10. Next install the additional software required for the installation with the following commands:

    $ sudo apt-get install php5-curl php5-gd subversion
  11. Restart Apache for the PHP settings and the Apache settings to take affect:

    $ sudo /etc/init.d/apache2 restart

  12. Create a MySQL database for the installation with the following command:
    $ sudo mysqladmin -u root -p create 'magento'

  13. Install Magento from subversion using the following commands:

    $ cd /var/www
    $ sudo svn checkout http://svn.magentocommerce.com/source/branches/1.3
    $ sudo mv 1.3 magento
  14. Set the correct permissions for the installation wizard with the following commands:

    $ sudo chown -R www-data.www-data /var/www/magento/app
    $ sudo chown -R www-data.www-data /var/www/magento/var
    $ sudo chown -R www-data.www-data /var/www/magento/media
    $ sudo chmod 770 /var/www/magento/app/etc
    $ sudo chmod 770 /var/www/magento/var
    $ sudo chmod 770 /var/www/magento/media
    $ sudo chmod 770 /var/www/magento/media/downloadable
    $ sudo chmod 770 /var/www/magento/media/import
  15. You should now be able to run the Magento Installation Wizard by pointing your browser at http://hostname/magento/ .

Your mileage may vary but the above steps worked for me.

This post was inspired by Installing Magento on Slicehost with Ubuntu.





pywebdev for Ubuntu v9.10 released

31 10 2009

I’ve posted a release of the pywebdev Python Web Developer package for Ubuntu that has been updated for compatibility with the recently released Ubuntu v9.10 Karmic Koala .

Version 2.6 (updated to the recently released 2.6.4) is the default Python environment in Karmic.   For compatibility and flexibility pywebdev also includes complete environments for Python versions 2.4 and 2.5.

A small number of packages have changed since the v9.04 release:

Packages Added in v9.10
=========================
libevent-1.4-2
libevent-dev
vim-gnome
vim-gtk
vim-nox

Packages Removed in v9.10
=========================
linux-headers-server
libevent1
pypy
pypy-dev
python-xml
python-libgmail
zope3
zope-common
vim-python




Installing Ubuntu 9.10 Beta under VMware Fusion 2.06

11 10 2009

This evening I installed the recently released Ubuntu 9.10 Beta in virtual machine under VMware Fusion version 2.06 on OS X 10.6 (Snow Leopard).

I downloaded the “Alternate Install” ISO so that I would have an image that will work for the widest variety of hardware and situations.

The installation went fine and operationally the system appears to run just fine, but the installation of the VMware Tools consistently gave a “black screen” upon reboot. I tried a couple (1 2 ) of the proposed workarounds with no success.

So at this point I’d suggest not installing the VMware Tools or at a minimum creating a Snapshot of the system prior to installing the tools to allow for an easy recovery.





VMware Fusion 2.0.5 now includes support for Ubuntu 9.04

26 06 2009

The recently released VMware Fusion 2.0.5 now officially supports Ubuntu 9.04. In addition over 80 bugs have been fixed.

Workarounds like this install tools hack and this keyboard, mouse, and shared folders tip are no longer necessary.

After removing the previous version of the VMwareTools, installing the version that ships with 2.0.5 (7.9.6-173382), and rebooting, all is well.





MarkLogic Server on Ubuntu 9.04

14 06 2009

Recently I’ve been taking a look at the MarkLogic Server platform.

Of the available Linux distributions it is officially only supported on RedHat Enterprise Linux.

Since my Linux distribution of choice recently is Ubuntu I was happy to find that Donnie Cameron had documented how to install and run the MarkLogic Server platform on Ubuntu v8.10.

I’m pleased to report that the procedure also works for Ubuntu 9.04.

One item to note is that the step that uses alien to perform a conversion from an rpm package to a deb takes a bit of time and if you’re not patient you might think the process has hung.

Below are the steps that I used to install MarkLogic Server on Ubuntu 9.04 which are a slight change from the steps outlined by Donnie Cameron.

  1. Create a temporary directory for staging the creation of the new deb file and cd into that directory
  2. $ sudo apt-get install rpm alien
  3. $ wget http://ftp.us.debian.org/debian/pool/main/l/lsb/lsb-base_3.2-22_all.deb ( the reason for using an updated lsb package )
  4. Get the appropriate Mark Logic server RPM file from here: http://developer.marklogic.com/download
  5. $ sudo gdebi lsb-base_3.2-22_all.deb
  6. $ sudo alien –to-deb –verbose MarkLogic-4.0-5.i686.rpm (patience)
  7. $ sudo dpkg -i marklogic_4.0-5_i386.deb (using the actual .deb name)
  8. $ sudo mkdir /var/lock/subsys
  9. $ sudo /etc/init.d/MarkLogic start

The MarkLogic init scripts are in /etc/init.d/ and work in the expected fashion.

I’m looking forward to working with MarkLogic Server and even more specifically using XQuery and anticipate reporting my findings in future entries.





pywebdev for Ubuntu v9.04 released

19 04 2009

I’ve posted a release of the pywebdev Python Web Developer package for Ubuntu update for the soon to be released v9.04-Jaunty Jackalope.

Version 2.6 (updated to the recently released 2.6.2) is the default Python environment in Ubuntu v9.04.   For compatibility and flexibility pywebdev also includes complete environments for Python versions 2.4 and 2.5.

A small number of packages have changed since the v8.10 release:

Packages Added in v9.04
=========================
python2.6
python2.6-dev
python2.6-examples
python2.6-minimal
python2.6-doc
python-cherrypy3
python-sphinx 
libapache2-mod-python-doc
pypy
pypy-dev
python-django-lint
python-git

Packages Removed in v9.04
=========================
python-urljr




Installing Ubuntu 9.04 beta Under VMware Fusion

28 03 2009

This morning I installed the recently released Ubuntu 9.04 Beta in virtual machine under VMware Fusion on OS X.

I usually download the “Alternate Install” ISO so that I have an image that will work for the widest variety of hardware and situations.

The installation went fine, but after the first boot following the installation the automatic installation of the VMware tools did not work and continued to fail. Initiating the “Install VMware Tools” function from the menu caused an ever increasing number of instances of Nautilus file browser windows to be opened. (Note: If this is happening to on your system use the “Cancel Install of VMware Tools” function from the menu.)

The first thing I tried was to run the Update Manager to apply any updates since the beta ISO was released. Sadly, despite applying about 165MB in updates the problem remained.

Next, I opened a Terminal session and ran the following command to ensure that I had an adequate minimal build environment for the installation of the tools. I thought that perhaps a build component was missing that VMware Tools was expecting to find.
$ sudo apt-get install build-essential

When that did not work I decided to try manually installing the tools.

I started by initiating the “Install VMware Tools” function from the VMware Tools menu, and then opened a Terminal window and performed the following actions:

  • $ df -v (to see the mount point of the virtual cdrom image that contains the install tools archive)
  • $ cd /media/cdrom (use the actual mount point on your system)
  • $ cp VMwareTools-7.9.3-146107.tar.gz ~/Desktop (use the actual filename on your system)
  • Clicked “Cancel the VMware Tools Installation” from the VMware Tools menu and went back to the Terminal
  • $ cd ~/Desktop
    $ tar xvfz VMwareTools-7.9.3-146107.tar.gz
    $ cd vmware-tools-distrib
    $ sudo ./vmware-install.pl
    and take the defaults to each question.

So far everything else seems to be functioning normally.

The next step is to begin working on a 9.04 release of pywebdev package.

Ubuntu v9.04 Beta under VMware Fusion

Ubuntu v9.04 Beta under VMware Fusion








Follow

Get every new post delivered to your Inbox.