Magento Forum

   
Page 1 of 3
Installing on 1and1 Shared Hosting Server
 
mixedrealitystudio.com
Jr. Member
 
Total Posts:  7
Joined:  2007-12-07
UK
 

Hi Guys,
Just thought I would add this to the forum. I spent a while trying to workout how to install Magento to my shared hosting account. I had many hiccups and problems but finally got it working.

Let me explain what i have done to achieve this:

I unzipped all the files and uploaded them to a directory on my server, in this case called magento.

When I uploaded I edited the .htaccess

I added the line:
AddType x-mapp-php5 .php

The notes for this are found here:
http://faq.oneandone.co.uk/scripting/php/using_php5/1.html

also on the line that says:
#RewriteBase /dev/magento/

replace with
RewriteBase /magento/

This uncomments the RewriteBase and points to the magento folder on your server. This folder can be changed to what ever you wish.

<IfModule mod_php5.c>
    
php_flag magic_quotes_gpc off
    php_flag short_open_tag on
</IfModule>

AddType x-mapp-php5 .php

DirectoryIndex index
.php

RewriteEngine on

RewriteBase 
/magento/

RewriteCond %{REQUEST_URI} !^/media/
RewriteCond %{REQUEST_URI} !^/skin/
RewriteCond %{REQUEST_URI} !^/js/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteCond 
%{REQUEST_FILENAME} !-l

RewriteRule 
.* index.php

Now go to your web browser and type in the url with the directory at the end.

http://www.mywebsite.com/magento/

or you can go to your domain names in your control panel and point a domain to this folder. This can take upto 3 hours. Then go to your site, http://www.mywebsite.com

That should be it.
If you have not done so before hand make sure you setup a new database as you will need the details from this to fill in the install form.

I hope this helps anyone out there that is searching the forums.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sticky
Sr. Member
 
Avatar
Total Posts:  76
Joined:  2007-09-05
UK
 

Nice one! smile

Maybe you can give Roy a nudge and get this added to the Installation thread:
http://www.magentocommerce.com/boards/viewthread/1647/

 
Magento Community Magento Community
Magento Community
Magento Community
 
andrewfogarty
Jr. Member
 
Total Posts:  7
Joined:  2007-11-21
 

I also installed on a 1and1 server, after much trial and error i got it to work, great job on explaining it so concisely.

a not on my install was that uploading from a mac i had two choices i will briefly describe the process with both from a mac.

Free Software method.
using one button ftp i uploaded files, but was unable to change permissions to files and folders, so i did this in The get info palette. i then re-uploaded the appropriate files. using tinker tool i was able to see the .htaccess file, opened with smultron to edit. re-uploaded and installed

Pay Software method
the only difference from the above method is using captain FTP i was able to edit the permissions once the files were on the server, but did still use smultron to edit.

with my hosting i have the plan that allows 3 domain names. as a result i did create a folder and pointed a subdomain to my install of magento, but it is set up that way to serve as a testing environment. since i knew i wanted to set up magento this way i had set the subdomain up prior to the start of the whole process.

 
Magento Community Magento Community
Magento Community
Magento Community
 
poisoner
Jr. Member
 
Avatar
Total Posts:  5
Joined:  2007-08-31
 

Very helpful - thanks wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
poisoner
Jr. Member
 
Avatar
Total Posts:  5
Joined:  2007-08-31
 

Another point to note for 1 & 1 shared servers…

Once you get to the point where you have to enter your database details you may get all sorts or errors unless it’s an empty database, i.e. the database must not have any other tables in it or magento won’t install.

Be sure to drop all existing tables (assuming you don’t need them of course), or create a new database just for magento.

Also change https to http (port 80) & it should install fine grin

Hope that helps!

 
Magento Community Magento Community
Magento Community
Magento Community
 
FireIslandMan
Jr. Member
 
Total Posts:  10
Joined:  2007-12-20
 

The new .htaccess file with Magento 0.7.14800 is quite different. Anyone able to install 0.7.14800 on a 1and1 shared server? I just get Error 500 - Internal server error.

 
Magento Community Magento Community
Magento Community
Magento Community
 
BeautyHer
Jr. Member
 
Total Posts:  1
Joined:  2008-01-07
 

If possible, just move away from 1&1;.
Besides that there site and control panel is so slooow to use, they have some of the most non-technical support guys ever

 
Magento Community Magento Community
Magento Community
Magento Community
 
Josue4ever
Sr. Member
 
Avatar
Total Posts:  138
Joined:  2007-10-03
Mexico DF
 

Well im installing from the begining (i had the 6.311) and i saw he file .htaccess diferent

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

<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag short_open_tag on
</IfModule>

DirectoryIndex index.php

RewriteEngine on

RewriteBase /carrito
RewriteRule !\.(js|ico|txt|gif|jpg|png|css)$ index.php

RewriteCond %{REQUEST_URI} !^/media/
RewriteCond %{REQUEST_URI} !^/skin/
RewriteCond %{REQUEST_URI} !^/js/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php

that was my file but now i dont know how to change. I obtain a Invalid PHP version

 
Magento Community Magento Community
Magento Community
Magento Community
 
quistissme
Jr. Member
 
Total Posts:  3
Joined:  2007-11-06
 

Thanks very much for that, however, frontend is working, backend never retrieved, HTTP 404 Not Found all the times trying to go to http://mydomain.com/magento/admin .

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

@quistissme: on frontend, any other page besides home page is working?

 
Magento Community Magento Community
Magento Community
Magento Community
 
mixedrealitystudio.com
Jr. Member
 
Total Posts:  7
Joined:  2007-12-07
UK
 

Need a little help here with the .httaccess file.

Since the new version I downloaded magento-0.7.14800

No matter what I do to change the .httaccess file I cannot seem to get it to work.

1and1 say that to activate PHP5 all you have to do is add: AddType x-mapp-php5 .php

When I add this line and change the directory of the RewriteBase and go to that url on my server it brings up the url

http://www.mysite.ext/mymagentofolder/index.php/install

When this page finally loads it is unstyled and the continue button cannot be pressed.

Any suggestions? I am trying to install a new theme to showcase and it would be great if i could get over this hurdle.

Dom

 
Magento Community Magento Community
Magento Community
Magento Community
 
dell
Member
 
Avatar
Total Posts:  61
Joined:  2008-01-01
 

You might want to visit thread: http://www.magentocommerce.com/boards/viewthread/2389/P15/ as it also addresses installation problems on the 1 & 1 server.

 
Magento Community Magento Community
Magento Community
Magento Community
 
mixedrealitystudio.com
Jr. Member
 
Total Posts:  7
Joined:  2007-12-07
UK
 

Thank you, that seems to be of benefit. I see you are using 1and1 aswell?

 
Magento Community Magento Community
Magento Community
Magento Community
 
dell
Member
 
Avatar
Total Posts:  61
Joined:  2008-01-01
 

Yes, currently I’m removing 0.7.148 so I can go back and try a fresh install from the git-go......

 
Magento Community Magento Community
Magento Community
Magento Community
 
mixedrealitystudio.com
Jr. Member
 
Total Posts:  7
Joined:  2007-12-07
UK
 

I just installed it taken me 4 hours to work it all out so thanks for your quick reply.

Only one thing I noticed is that it dont come with sample data anymore pah :(

I wish you well with your fresh install

 
Magento Community Magento Community
Magento Community
Magento Community
 
Josue4ever
Sr. Member
 
Avatar
Total Posts:  138
Joined:  2007-10-03
Mexico DF
 

If any could install n 1and1 and it gave no error plz tell me how it works. I cannot upgrade to the newest version

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