1and1 Meet Magento

Posted by on Feb 24, 2010 in Bits, Blog | 12 comments

1and1 Meet Magento

A Guide to Installing Magento on 1and1 Shared Hosting.

Hopefully you are aware that there are limitations when using a shared hosting provider, often implemented to allow the provider to keep the server secure. Luckily with 1and1 we are able to work around this and allow Magento access to PHP 5.2 (Please note this guide is just for using with 1and1’s shared hosting solutions). Enjoy!

Getting Started

  • Setup your MySQL database
  1. Navigate to your 1and1 Administration tab in your 1and1 control panel
  2. Using the 1and1 MySQL Administration page click New Database, start a fresh one just for Magento
  3. Make sure it’s set to use MySQL version 5.0, fill in YOUR details as shown below

  • Download the latest Magento installation package (full release, not installer)-> http://www.magentocommerce.com/download (at time of writing its version 1.4.0.1)
  • Upload this to your server (yes, upload the Magento zipped folder)
  • In your 1and1 control panel, navigate to your web space explorer and right click on the .zip file you just uploaded and extract it. You are able to move/rename the folder if you need to.
  • Now you need to go back to your favourite FTP program and CHMOD the following files and folders to 777
  1. magento/var/.htaccess (file)
  2. magento/app/etc (folder)
  3. magento/var (folder)
  4. magento/media (folder)
  • Download the .htaccess file found in the root directory of your Magento install.
  • Edit the file, removing the comments from:

############################################
## this line is specific for 1and1 hosting

AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

############################################

  • This allows you to use PHP 5.0
  • You will also need to un-comment “#RewriteBase /magento/” and edit it if you changed the location of your install
  • Re-upload the .htaccess file
  • Make sure the MySQL database is READY, this is shown in the 1and1 control panel under MySQL Administration
  • Now you can begin the install goto http://www.you_domain.com/magento/index.php/install
  • From here you just need to add the details requested by the installation program, copying and pasting from the 1and1 control panel as needed
  • To enter the adming section of magento just point your browser to http://www.you_domain.com/magento/index.php/admin (or whatever you alter admin to in the installation)

I hope you have found this 1and1 Magento setup guide useful, its been put together by myself after having issues setting up Magento on my shared 1and1 account. Info has been taken from a number of installation guides from the net and reworded by myself.

12 Comments

  1. Nice guide man – keep it up with this stuff

  2. Great guide. Straightforward and surprisingly fast. Thanks!

  3. Thanks for the quick fix.

  4. Andy: Have you run into issues with a lot of 500 errors with Magento and 1and1? Base install with sample data and it crashes like crazy…

  5. Just about to do this. I hope it turns out as clear cut as your article

  6. this is great. I have client hosted at 1and1 and was if magento could be loaded on a shared account. do you have a link to the site you set up? magento crawls on a “non-optimized” server. I’d like to see if it’s just my dev server that’s “non-optized” for magento.

    thanks!
    vinh

  7. Thanks for putting this together Andy! I had to refresh the installer a few times, but it installed great!

  8. This is great to have a tutorial like this. It really helps to make installing magento even easier. If You are having any troubles with your install I would suggest having a professional magento installer help you.

  9. I am a novice…..

    Got to the begin install step and got an error:

    “Error 500 – Internal server error

    An internal server error has occured!
    Please try again later.”

    What did I do wrong? How can I fix

    • I get the server 500 errors all the time. You just have to keep hitting refresh and it returns to normal.

      I am however have strange validation issues on ie9 that are not responding to the header fix… Like if you mess up a form, it wont allow you to submit until you refresh the page…

  10. drop me an email, or fill in my contact form and i will be able to give you a hand

    • Restoring the .htaccess file to it’s defaults cleared up the “Error 500″ error for me. I’d image this has to do with PHP5 being the default now.

      Thanks for the write-up. Very helpful.

Trackbacks/Pingbacks

  1. 1and1 Meet Magento | Andy Fielder | Magento News - [...] 1and1 Meet Magento | Andy Fielder [...]
  2. Magento – friendly URLs on 1&1 - Divine Web Design - The Web Devign Studio - Ali Blackwell Web Design - [...] post continues the excellent write-up by Andy Fielder about installing Magento on a 1&1 Shared Server. Following his guide …
  3. 1and1 Meet Magento | Andy Fielder | e-commerce News - [...] 1and1 Meet Magento | Andy Fielder [...]
  4. » 1and1 Meet Magento | Andy Fielder|荷包蛋博客 - [...] View the original article here Categories: magento Tags: 1and1, bMagentob, Fielder …

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>