Solar Polar

Dave Walker, Malton, North Yorkshire. Blog, Music, Web and OpenEdge

Blog

Installing Magento on Heart Internet Shared Server2

Posted on May 27th, 2010 in Web Stuff

Installing Magento on Heart Internet Shared Servers

Caveat 1

These are my own notes for my install procedures. I’m posting them here as a reminder to myself.  If they’re any use to you then all the better.

Caveat 2

I recently read that Heart Internet do not suggest that Magento is installed the shared server because it’s too CPU hungry.  I’ll give it a go with this latest version but may have to shift to a dedicated server to ensure performance.

Installation

To install the files you can upload the zip file to the folder you require and using the Heart Internet Control Panel File Manager – right click the zip file to unzip it.

When I searched the Magento forums for information a chap called Jeremy had already written these notes below.  I’ve amended them slightly for my purposes.  Kudos to him for writing them down and sharing.  I’m doing the same here so I never lose them!

Heart Internet are a shared hosting provider in the UK (heartinternet.co.uk). I’ve been using them now for around 3 years and can thoroughly recommend them.

These are the steps to a (hopefully!) successful install:

  1. download the latest version of magento from http://www.magentocommerce.com/download . I used magento-0.8.16100.zip
  2. follow the instructions in http://www.magentocommerce.com/knowledge-base/entry/magento-installation-guide
    • Check system requirements – Heart Internet have all the relevant versions and extensions installed so no problem there.
    • Transfer the zip file to your site and unzip them using the Heart Internet Control Panel File Manager – right click the zip file to unzip it.  If you want the site in your root domain then unzip the file into the public_html directory.
    • Create a brand new mySQL database within the HI control panel. During the magento install wizard you’ll need the host (localhost), user id, password and db name (probably the same as the user id but can be checked by editing the db in control panel).
    • Contact HI and ask them to allow “CREATE TEMP TABLE” permissions on your database.  Heart stop this by default for security reasons
    • Set the following permissions against the install files.
  3. They are reproduced below:

    In your FTP  program (I use Filezilla) you right click on the
    remote file  and hit  properties, you can then change the
    permissions of each file or directory (other ftp programs will be
    similar).
    
    Permission 777 for;
    file
    /public_html/magento/var/.htaccess,
    directories
    /public_html/magento/app/etc
    /public_html/magento/var,
    /public_html/magento/media
    (and all folders under media)
    
    Permission 755 for;
    file
    /public_html/magento/index.php 
    folder
    the magento directory (e.g. /public_html/magento/ or /public_html)
    
  4. Edit the file /public_html/magento/.htaccess and add the following:
  5. #############################
     ## For heart internet
     SetEnv DEFAULT_PHP_VERSION 5
     php_flag short_open_tag on
  6. Create a new text file within /public_html/magento/ called php5.ini
    put the following in this file:
  7.  php_flag short_open_tag on
    
  8. If you want to install the demo store data then you should now load in the SQL statements in against the MySQL database – before the installation process

Double check everything then go to http://www.yoursite.com/magento/ and you should see the installation wizard. It’s pretty obvious from there on, just enter the db details and localisation etc.

Now I want to install the Modern Theme.

I go to the Admin menu.  Choose Magento Connect. Change the settings to Beta. Then install the extension key magento-core/Interface_Frontend_Default_Modern (it’s free).

It should be that simple but I am noticing that this step frequently buggers up my install.

It seems to have installed and my update page displays all this:

magento-core/Mage_Core_Modules requires package  "magento-core/Lib_Google_Checkout" (version >= 1.4.0.0, version <=  1.4.1, excluded versions: 1.4.1)
magento-core/Mage_Core_Modules  requires package "magento-core/Lib_Js_Calendar" (version >= 1.51.0,  version <= 1.52, excluded versions: 1.52)
magento-core/Interface_Frontend_Default_Modern  requires package "magento-core/Mage_Core_Modules" (version >=  1.4.0.0, version <= 1.4.1, excluded versions: 1.4.1)
downloading  Lib_Varien-1.4.0.0.tgz ...
Starting to download  Lib_Varien-1.4.0.0.tgz (126,181 bytes)
. . . . . . . . . . . . . . . .  . . . . . . . . . ...done: 126,181 bytes
downloading  Lib_Js_Mage-1.4.0.1.tgz ...
Starting to download  Lib_Js_Mage-1.4.0.1.tgz (87,791 bytes)
...done: 87,791 bytes
downloading  Lib_PEAR-1.4.0.0.tgz ...
Starting to download Lib_PEAR-1.4.0.0.tgz  (118,829 bytes)
...done: 118,829 bytes
downloading  Lib_ZF-1.9.6.0.tgz ...
Starting to download Lib_ZF-1.9.6.0.tgz  (1,763,063 bytes)
...done: 1,763,063 bytes
downloading  Lib_Js_Prototype-1.6.0.3.0.tgz ...
Starting to download  Lib_Js_Prototype-1.6.0.3.0.tgz (222,617 bytes)
...done: 222,617 bytes
downloading  Mage_Pear_Helpers-1.0.18800.tgz ...
Starting to download  Mage_Pear_Helpers-1.0.18800.tgz (9,225 bytes)
...done: 9,225 bytes
downloading  Lib_ZF_Locale-1.9.6.0.tgz ...
Starting to download  Lib_ZF_Locale-1.9.6.0.tgz (1,522,612 bytes)
...done: 1,522,612 bytes
downloading  PEAR-1.9.0.tgz ...
Starting to download PEAR-1.9.0.tgz (291,634  bytes)
...done: 291,634 bytes
downloading Archive_Tar-1.3.6.tgz  ...
Starting to download Archive_Tar-1.3.6.tgz (17,600 bytes)
...done:  17,600 bytes
downloading Structures_Graph-1.0.3.tgz ...
Starting  to download Structures_Graph-1.0.3.tgz (30,191 bytes)
...done: 30,191  bytes
downloading Console_Getopt-1.2.3.tgz ...
Starting to  download Console_Getopt-1.2.3.tgz (4,011 bytes)
...done: 4,011 bytes
downloading  XML_Util-1.2.1.tgz ...
Starting to download XML_Util-1.2.1.tgz  (17,729 bytes)
...done: 17,729 bytes
install ok:  channel://connect.magentocommerce.com/core/Lib_PEAR-1.4.0.0
install  ok: channel://pear.php.net/Archive_Tar-1.3.6
install ok:  channel://pear.php.net/Structures_Graph-1.0.3
install ok:  channel://pear.php.net/Console_Getopt-1.2.3
install ok:  channel://pear.php.net/XML_Util-1.2.1
install ok:  channel://pear.php.net/PEAR-1.9.0
install ok:  channel://connect.magentocommerce.com/core/Mage_Pear_Helpers-1.0.18800
install  ok:  channel://connect.magentocommerce.com/core/Lib_Js_Prototype-1.6.0.3.0
install  ok: channel://connect.magentocommerce.com/core/Lib_ZF_Locale-1.9.6.0
install  ok: channel://connect.magentocommerce.com/core/Lib_Js_Mage-1.4.0.1
install  ok: channel://connect.magentocommerce.com/core/Lib_ZF-1.9.6.0
install  ok: channel://connect.magentocommerce.com/core/Lib_Varien-1.4.0.0
PEAR:  Optional feature webinstaller available (PEAR's web-based installer)
PEAR:  Optional feature gtkinstaller available (PEAR's PHP-GTK-based  installer)
PEAR: Optional feature gtk2installer available (PEAR's  PHP-GTK2-based installer)
PEAR: To install optional features use  "pear install pear/PEAR#featurename"

When you visit the front page again we still have the same Theme. We need to change the theme from the Admin Menu.

Choose System / Configuration / General / Design

Set the following:

Templates : default

Themes : modern

Now when you look at your store you’ll see the the new theme but probably still in the wrong format.  This is because you’ll need to edit the Front Page makeup in the CMS section.

The Modern theme needs just the 1 column Home Page enabled.  Go to the CMS menu, select the Pages option, then the Home Page 2 Column with right bar and choose the disable option and save it.  Then choose the Home Page 1 Column option and “Enable” then save it.

The Modern Theme should now be fully active.

Note : Because I tried to enter the demo data after the shop was configured I got an error – but the error was surpressed with the message Exception printing is disabled by default for security reasons.

To reset that I changed the file errors/local.xml.sample to local.xml.

2 Comments
  1. Hi, theres something wrong with the permissions settings in this tutorial.

    Ive recreated it with the missing steps on my blog

    http://www.markrushworth.com/install-magento-heart-internet/

Leave a Reply