Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 1 of 4
Barebones Guide: 1and1.com Shared Hosting Installation (North America)
 
Airforce111
Sr. Member
 
Avatar
Total Posts:  100
Joined:  2008-01-31
 

Barebones Guide: 1and1.com Shared Hosting Installation (North America)

[As of Mar. 31th, 2008 - Using Magento Version 1.0]

Hello everybody!

I thought I’d write up a ‘for dummies’ guide for those using the 1and1.com shared hosting based in North America. This is to consolidate everything into one thread and in the simpliest way possible, for those needing a step by step guide.

First, a disclaimer. This is mostly from my own personal experience in setting up Magento in the outlined environment for my client. I may have taken pieces of information from all over the boards and stuff so, my apologies if somebody has already mentioned it first and thank you for doing so. If I have missed something or there is another way to do something, just reply below to say so. Now, let’s begin.

--- FRESH INSTALL GUIDE (NOT UPGRADE) ---

[1. Basic Requirements]

Hosting
- 1and1 Beginner/Home/Business/Developer
Note: 1and1 Dedicated Managed is UNSUPPORTED due to platform MySQL 4.0.97! http://www.magentocommerce.com/boards/viewthread/4970/

PHP 5.2.0 or newer
- To test your version, create a file named .htaccess
- Place the following in it:
AddType x-mapp-php .php4
AddType x-mapp-php5 .php
- Save and upload to your root directory. It should be located at http://www.your_domain.com/.htaccess, however, you will not be able to access it directly via the web browser.
- Next, create a file named info.php
- Place the following in it:
<?php phpinfo();?>
- Save and upload to your root directory as above.
- Go to http://www.your_domain.com/info.php and it will list your PHP Version number at the top left corner (Should be 5.2.0 or greater)

PDO/MySQL, mcrypt, simplexml, DOM
- Accessing http://www.your_domain.com/info.php will show you which extensions are installed and all of those should be listed already.

Final Check
- If all of the above checks out, let’s set up your MySQL Database.

[2. Set Up MySQL Database]

- Go to admin.1and1.com
- Login with your site project credentials
- Go to the Section “Web Space & Access” -> “MySQL Administration”
- Click on the “New Database” Button in Blue.
- Type in a Description and Select “MySQL 5.0” -> “Set Up”, followed by “Go to Overview”
- Set Up will take a while, either sit back and wait or continue on.
- Fair Warning! Status should be “ready” and not “setup started” BEFORE you can use the database!

[3. Download, Upload and Unpack Magento]

Download
- Go to MagentoCommerce.com -> Download -> Download Magento
- Choose latest 1.x.xxxxx.zip and Click the Orange “Download Now” Button
- Save the File on your Computer somewhere you can find it.

Upload
- Now, Upload the Whole Single ZIP file to your root directory. (eg. http://www.your_domain.com/zip_file.zip)
- In the 1and1.com Control Panel, go to “Web Space & Access” -> “WebspaceExplorer” (note: you may prefer to use SSH if you use the business or developer package)
- It should load up a 2 column panel. If it doesn’t, try clicking once on the “/” icon.
- “magento-0.x.xxxxx.zip” should be listed on the right column.

Unpack
- Right Click on “magento-0.x.xxxxx.zip” and Select “Unzip”.
- It will ask you where to place the files, Select the “/” (aka Root) -> “OK”. After a while, it will complete. (You may select a custom path if you’re comfortable with it)
- After it completes, you should see the folder “magento”

[4. CHMOD Magento]

- If you use Windows Hosting, skip this and go to Part 5.
- You need to CHMOD the following files and directories to 777.
[file] magento/var/.htaccess
[dir] magento/app/etc
[dir] magento/var
[dir] magento/media
- To do that, you can use “WebspaceExplorer” -> “Change Permissions” OR use your favorite FTP/CHMOD tool.

[5. Configure Magento .htaccess]

- Download the file located at magento/.htaccess
- Open it up and edit it as follows:

Change (If you plan to use SSL, check post below, then continue from here):
#AddType x-mapp-php5 .php

To:
AddType x-mapp-php .php4
AddType x-mapp-php5 .php
AddHandler x-mapp-php .php4
AddHandler x-mapp-php5 .php

Change:
#RewriteBase /magento/

To (If you placed it somewhere else, update it here):
RewriteBase /magento/

- Save and Upload the file to replace the file located at magento/.htaccess

[6. Installing Magento]

Accessing Install Wizard
- Make sure your MySQL Database in Part 2 (above) is now saying “ready”.
- Go to http://www.your_domain.com/magento/index.php/install OR http://www.your_domain.com/magento/install (Directories may change depending on where you placed your files)
- It should now load up the Magento Installation Wizard.

Setup
- Read and Agree to the License Agreement -> Continue
- Select the “Locale”, “Time Zone” and “Default Currency” -> Continue
- Using the MySQL 5.0 Database you created earlier, just copy and paste in the information.
- Host (Host Name), Database Name (Database Name), User Name (User Name), User Password (Password)
- Tables Prefix can be left as blank.
- Under “Web Access Options” -> Select “Use Web Server (Apache) Rewrites”
- Under “Use Secure URLs (SSL)”, only select IF YOU HAVE SSL CERTIFICATE INSTALLED.
- Click Continue and Wait for it to generate your database tables. (aka grab a drink)
- Create your Admin Account and Type in an Encryption Key if you like (it will be automatically generated if you don’t. I assume this would be the seed value, to prevent rainbow tables or whatnot)
- Write down and keep the Encryption Key as noted.

[7. Running Magento]
- FrontEnd: http://www.your_domain.com/magento
- Backend: http://www.your_domain.com/magento/admin (or without rewrite, http://www.your_domain.com/magento/index.php/admin)

Everything should be working now.
CONGRATULATIONS!

- Mike.

 
Magento Community Magento Community
Magento Community
Magento Community
 
RoyRubin
Enthusiast
 
Avatar
Total Posts:  968
Joined:  2007-08-07
Los Angeles, CA
 

Mike - great post. Thanks for sharing smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Airforce111
Sr. Member
 
Avatar
Total Posts:  100
Joined:  2008-01-31
 

np, thx for the great product. smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Airforce111
Sr. Member
 
Avatar
Total Posts:  100
Joined:  2008-01-31
 

[5. Configure Magento .htaccess - APPENDED]

If you plan to enable SSL, use this instead:

Change:
#AddType x-mapp-php5 .php

To:
AddType x-mapp-php .php4
AddType x-mapp-php5 .php
AddHandler x-mapp-php .php4
AddHandler x-mapp-php5 .php

To (Alternative):
AddHandler x-mapp-php .php4
AddHandler x-mapp-php5 .php

Reference: http://www.magentocommerce.com/boards/viewthread/2019/P15/
Re: Thx 4Alarm Games & jjackson02

Now Continue where you left off in the guide above.

 
Magento Community Magento Community
Magento Community
Magento Community
 
roberthjr
Jr. Member
 
Total Posts:  8
Joined:  2007-08-31
 

Thanks for the guide, it was very helpful!

Re:  Changing the htaccess file.  I deleted everything in there and just added the 3 lines you posted and it seems to work fine, but is that the right way to ammend the file?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Airforce111
Sr. Member
 
Avatar
Total Posts:  100
Joined:  2008-01-31
 

You shouldn’t delete every line in the .htaccess file… only change the lines mentioned.

Best,
Mike

 
Magento Community Magento Community
Magento Community
Magento Community
 
Airforce111
Sr. Member
 
Avatar
Total Posts:  100
Joined:  2008-01-31
 

[6. Installing Magento - APPENDED]

If you DO NOT want to use SVN Installation and DO want to use PEAR, follow the instructions below.
!!! Works only for 1&1;Shared Hosting Business/Developer OR with SSH Access !!!

[NOTE] If you are reading this without reading the initial guide above, your .htaccess must have the following in it:
AddType x-mapp-php .php4
AddType x-mapp-php5 .php
AddHandler x-mapp-php .php4
AddHandler x-mapp-php5 .php

[OLD] In the Guide Above, DO NOT do the following:

- Under “SVN Installation” -> Click “Continue SVN Installation”

[NEW] Follow this Instead:

Initial Setup
- Log into your 1&1;web account through SSH (eg. PuTTY)
- Navigate into your Magento Directory (eg: /magento) [Command to navigate into a directory is: cd <directory>]
- You should find a file named “pear” [Command: dir pear] should allow you to see the file and associated permissions.
- You need to chmod it to 744. [Command: chmod 744 pear]

Determine PEAR and PHP Versions
- You need to see what versions the command line is using by the command on the right, don’t miss the period. [Command: ./pear -V]
- You should see a PEAR Version that is at least 1.4.x+.
- You should see PHP Version is 4.x or 5.x.

A. PHP Version is 5.x
- Congratulations, Manual PEAR Installations and Upgrades should continue without problem for you.
- Enter the following commands in order and wait for each to be processed:
./pear mage-setup
./pear install mage-core/Mage_Pear_Helpers mage-core/Lib_ZF mage-core/Lib_Varien
./pear install mage-core/Mage_All mage-core/Interface_Install_Default
./pear install mage-core/Interface_Frontend_Default mage-core/Interface_Adminhtml_Default
- You may now continue the installation in the above guide by going to the section “Manual Downloads and Upgrades” -> “Continue After Manual Download” (aka, ignore everything below here smile)

B. PHP Version is 4.x
- If you see a version 4.x, then you need to do some extra work.
- First, initilize the Manual PEAR Script via [Command: ./pear mage-setup]
- Secondly, you need to determine your php5 bin path. [Command: which php5]
- This should list “/usr/local/bin/php5”, if it lists another path for you, use your path from now on.
- You need to now update the php_bin path of Magento’s PEAR via [Command: ./pear config-set php_bin /usr/local/bin/php5]
- To confirm if you have set the path correctly, use [Command: ./pear config-get php_bin]

Now Some PEAR File Modifications
- Now here comes the tricky part, we now need to edit the pear file located at /magento/pear. Note that file has no file extensions.
- If your php5 path was “/usr/local/bin/php5” then you’re in good hands because I edited the file for you already and is attached in this post, just grab it. You need to remove the .txt extension after you have downloaded the file, mainly because this forum won’t let me upload the file otherwise.
- If your php5 path was something else, then you need to edit the file physically. Open up the pear file using NOTEPAD (Fair Warning Here!!! You need to use a text editor that does not add/remove extra invisible characters within the file, hence why I noted Notepad. TURN OFF WORD WRAP!). MAKE A BACKUP!!! Locate and change the following:
PHP="$MAGE_PEAR_PHP_BIN" else PHP=php
To (Substitute your path):
PHP="/usr/local/bin/php5" else PHP="/usr/local/bin/php5"
- Save the File

Upload the PEAR File Modifications
- Save the pear file you modified/downloaded and upload it to overwrite the file at /magento/pear
- You need to chmod it to 744. [Command: chmod 744 pear]
- Confirm the file works via [Command: ./pear -V]
- If the file is corrupt, it will complain about no file or directory found. Only thing you can do is try modifying the file again. lol.
- If the file works, you should be greeted with Version numbers for PEAR and PHP. You PHP Version should now be PHP 5.x+.

Perform the Manual PEAR Installs and Upgrades
- You are now ready to attempt the PEAR scripts.
- Run the following command and WAIT till it finishes:
./pear install mage-core/Mage_Pear_Helpers mage-core/Lib_ZF mage-core/Lib_Varien
- Once it finishes, you need to again upload the pear file to overwrite /magento/pear, followed by a [Command: chmod 744 pear]
- Run the following second command and WAIT till it finishes:
./pear install mage-core/Mage_All mage-core/Interface_Install_Default
- Once it finishes, you need to again upload the pear file to overwrite /magento/pear, followed by a [Command: chmod 744 pear]
- Run the following last command and WAIT till it finishes:
./pear install mage-core/Interface_Frontend_Default mage-core/Interface_Adminhtml_Default

Final Checks
- You need to chmod the pear file at /magento/pear back to 644. [Command: chmod 644 pear]
- You may now continue the installation in the above guide by going to the section “Manual Downloads and Upgrades” -> “Continue After Manual Download”

Enjoy smile
- Mike

Reference: http://www.magentocommerce.com/boards/viewthread/2913/P15/
Re: Thx Moshe for pear file edit tip, Catia for AddHandler fix for Wrong PHP Version.

File Attachments
pear.txt  (File Size: 3KB - Downloads: 832)
 
Magento Community Magento Community
Magento Community
Magento Community
 
jjackson02
Jr. Member
 
Total Posts:  7
Joined:  2007-08-31
Dallas, Tx
 

Hey Mike I’m able to do everything except this part

- First, initilize the Manual PEAR Script via [Command: ./pear mage-setup]

My php version is 4.4.7
Pear version 1.5.0
Zend Engine Version: 1.3.0

when I type in

pear mage-setup

I get command ‘mage-setup’ is not valid

any suggestions?

Thanks
JJ

 
Magento Community Magento Community
Magento Community
Magento Community
 
Airforce111
Sr. Member
 
Avatar
Total Posts:  100
Joined:  2008-01-31
 

Make sure your are cd’ed into the correct directory. You should be within the main magento folder. (eg: /magento/)

Then you issue the command: ./pear mage-setup
Make sure you type in the “period” and “/” otherwise it will access your actual pear installation and not the script which is also named pear.

If “./pear help” without quotes doesn’t return a list of help commands or “./pear -V” for version info, then either the pear file is corrupt or you haven’t navigated into the proper directory. mage-setup is part of a command built into the pear file Magento packaged, so it won’t be accessible if you tried it on the regular pear installation.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ncbavenew
Jr. Member
 
Total Posts:  2
Joined:  2007-12-06
 

grin thank you - this worked great!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Airforce111
Sr. Member
 
Avatar
Total Posts:  100
Joined:  2008-01-31
 

Updated for Version 0.8.17240. smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
shamblix
Jr. Member
 
Total Posts:  6
Joined:  2008-03-15
 

How long does the configuration process actually take? I think mine has been going for a good half-hour maybe more. Just wondering smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
Airforce111
Sr. Member
 
Avatar
Total Posts:  100
Joined:  2008-01-31
 

Which configuration process are you referring to? The longest to setup here is really just creating the DB (~1-3 minutes) and running the PEAR installs (~1-5 minutes).

Also note, I haven’t had a chance to verify all the installation steps here (since 1and1 recently upgraded all/most their shared hosting servers.) It was tested before 1and1 did their platform upgrades with magento 0.8.17240. I’m currently working on a totally different project and I probably won’t be able to test magento until magento releases their next version. smile I hope this helps in a way.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Airforce111
Sr. Member
 
Avatar
Total Posts:  100
Joined:  2008-01-31
 

Note: Magento 0.9.17740

Since the platform upgrades done by 1and1 to their shared hosts and the latest release from Varien, the installation process is currently returning a “Error 500 - Internal server error” after the DB table creations.

Note #2:

I closed the browser, waited a few minutes and reaccessed the installation url from the beginning again and it worked by allowing me to respecify all the information. Not 100% sure if anybody else will get the same results.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Airforce111
Sr. Member
 
Avatar
Total Posts:  100
Joined:  2008-01-31
 

[Magento Release 1.0 - March 31st, 2008]

Follow the guide above and everything should work. Here is an abbreviated install guide with some notes:

1. Check Magento Requirements (Check PHP Version, Extensions and MySQL Version Number)
2. Setup a MySQL 5 Database
3. Download, Upload and Unpack Latest Magento Package (Use full package if possible, not the installer)
4. Move the Magento Folders & Files to appropriate location (eg: http://www.your_domain.com/magento OR http://www.your_domain.com)
5. CHMOD 777 the following: [file] magento/var/.htaccess [dir] magento/app/etc [dir] magento/var [dir] magento/media
6. Configure .htaccess located at magento/.htaccess with the following:

AddType x-mapp-php .php4
AddType x
-mapp-php5 .php
AddHandler x
-mapp-php .php4
AddHandler x
-mapp-php5 .php
Configure the RewriteBase as well according to the following rules:
eg: http://www.your_domain.com
RewriteBase /
eg: http://www.your_domain.com/magento
RewriteBase /magento/
7. Run the installation by going to: http://www.your_domain.com/magento/index.php/install or http://www.your_domain.com/index.php/install or etc.
8. Setup is very easy.
- Select locale settings.
- Type in MySQL DB Info.
- Checkmark “Use Web Server (Apache) Rewrites”.
- Checkmark “Use Secure URLs (SSL)”...IF YOU HAVE SSL CERTIFICATE INSTALLED (eg: https:// access)
- NOTE: AFTER THIS IT MAY GIVE AN ERROR 500, JUST HIT THE BACK BUTTON AND CONTINUE AS NORMAL. (You can double check the DB to ensure all the tables are in, which it should be. There should be a ton of tables all the way down to tables starting with a ‘w’).
- Type in Admin Information and Create Encryption Key.
9. Access (depending on where you installed it):
- Frontend: http://www.your_domain.com/magento OR http://www.your_domain.com
- Backend: http://www.your_domain.com/magento/admin OR http://www.your_domain.com/admin

Congrats!
- Mike.

 
Magento Community Magento Community
Magento Community
Magento Community
 
risource
Jr. Member
 
Total Posts:  2
Joined:  2008-03-31
 

Tthanks for the details and especially the shared SSL mods.

For the SSL encryption form field, I entered the 1and1 shared SSL url https://ssl.perfora.net/mydomain.com, and magento now looks for the admin interface at https://ssl.perfora.net/mydomain.com/admin instead of the correct https://ssl.perfora.net/mydomain.com/basedir/admin.

Oops.

I’d love to redo the entire install wink but if someone could help me locate the config file that contains the SSL link I’d be willing to just edit it and be one my way.

I’ll setup putty and lookup my old grep commands in an hour if everybody’s at dinner or something. THAAANKS.

(and yes, I asked for secure admin so no, I can’t just edit it in the admin console :-(

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 1 of 4