Wednesday, April 28, 2010

A Guide to Installing Magento on 1and1 Shared Hosting.


Hopefully you are aware that there limitations when using a sharedhosting 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 its 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.

7 comments:

  1. If i already have developed site on some other server then how to solve this issue?

    ReplyDelete
  2. Very good guide,

    i have a small problem now.
    When i try to install magento on 1und1 hosting i can see the installation page but without cssor js script and in the console i read:

    http://www.my_domain.com/magento/js/scriptaculous/effects.js Failed to load resource: the server responded with a status of 403 (Forbidden).

    Do you know why?
    Thank Giordano

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Great Read! I am impressed on how you make your article easy to understand. I'll come back for more :D

    offshore magento development

    ReplyDelete
  5. Thank you for this great tutorial.

    Can you please help me in installing Magento 2 using composer? I am new to the Magento and during research I have found this guide: https://www.cloudways.com/blog/install-magento-2-composer/

    ReplyDelete
  6. i never know the use of adobe shadow until i saw this post. thank you for this! this is very helpful. Web Hosting

    ReplyDelete

With Vision and Solution