Hi,

It seems all the posts for install and run Drupal on 1and1 are a bit out of date, and hence too complicated.

Everything is much, much easier from the info I see on the posts. Hence this topic.

So, to start off with the installation

1. Buy a domain name (if you haven't done so already; takes 24 hours for 1and1 to set up)

2. Using FTP client, create a folder in your web-space, naming it with your domain name

3. Using 1and Control Panel => Domains => select your domain and click on Destination => Edit Destination (Select Destination Type=Home Directory; Home Directory => Existing Directory (click the button and find your newly created folder; takes a few hours to finish)

4. Using 1and Control Panel => MySQL Administration => Create new database (3 hrs for 1and1 to setup)

5. Download & unzip Drupal 5.7)

6. Using FTP, upload the content of your Drupal directory into the new domain folder

7. Control Panel => MySQL Admin = make sure you have all the database info at hand

8. Type the new domain name url on your browser - this will open the so called 'installation screen' on Drupal

9. On the Drupal screen, enter all the relevant database info (database name, username and password)

10. Now click 'Advanced' button below and in the first field replace the 'localhost' with the database url (given as 'Host name' in 1and1; it should look something like this: db1234.oneandone.co.uk)

You're done (should be)

Comments

viktor.mastoridis’s picture

Installation error message on 1and1:
Incompatible environment
The following error must be resolved before you can continue the installation process:
register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings. (Currently using PHP register globals Enabled ('1'))

is solved the following way:
In a simple text editor, sopy and paste the following data:
register_globals = Off
memory_limit = 12M

and save it as php.ini
in your Drupal 5.7 directory on your hard disk.

Upload the php.ini file on your online Drupal directory, in the root folder

viktor.mastoridis’s picture

INSTALL DRUPAL MULTI-SITES ON 1AND1 USING SINGLE DATABASE

Example: installing sub.example.com in the main, example.com Drupal 5.7 site (you can add as many sites as you like)

1. In your Drupal up and running online site, example.com, using FTP client, find the folder 'sites' and enter it. You'll see two folders: 'all' and 'default'. Create new folder naming it 'sub.example.com'

2. Into this folder, create 4 folders, naming them: files, modules, themes and temp

3. also, from your Drupal folder on your hard disk, upload the file settings.php (found in /sites/default directory); this is a fresh 'settings.php' file, thus unmodified

4. In the 1and1 Control Panel => Domains => select (click the box on the left) the sub.example.com domain name, and on the top of the page select 'Edit Destination'

5. (still on 1and1) On the next screen there are two options: Select Destination Type (=home directory) and 'Home Directory'. There are two buttons in Home Directory: select 'Existing directory' in the top button; in the lower button, click and find the 'example.com' directory; click OK; this step is the crucial - don't forward your sub.example.com site, but let it point to your main installation, main Drupal site.

6. Navigate your browser to sub.example.com & the familiar Drupal installer should appear. Put the same MySQL Database info (as in example.com), and click the Advanced button: put the database url AND the Database prefix (this is crucial step - just invent any prefix, any name and put it there, in the last field.)

viktor.mastoridis’s picture

This article is for enabling the clean Urls to work on 1and1 server. To understand and enable clean urls, click here: http://drupal.org/node/15365

1. In you Drupal directory, on your hard disk, open the ".htaccess" file using a simple text editor.

find the following place:

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /

Now, uncomment the last line. Meaning, delete the hash in front of the # RewriteBase /

So, the code should look like this:

# Modify the RewriteBase if you are using Drupal in a subdirectory or in a
# VirtualDocumentRoot and the rewrite rules are not working properly.
# For example if your site is at http://example.com/drupal uncomment and
# modify the following line:
# RewriteBase /drupal
#
# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
RewriteBase /

Save the file, and upload it to your Drupal web-folder, replacing the .htaccess file found there

Test the clean urls - they should now work.

johnk_lpl’s picture

Anyone have any recommendations as to what install files you can delete once the install is complete?
I was going to delete the INSTALL files before making the site live, during devt i managed to get the install page back up when i messed things up on more than one occassion.

John K

viktor.mastoridis’s picture

1and1.co.uk DOESN'T let you access and modify Cron. Other solutions seem too complicated. Best bet is http://webcron.org.
It's initially in French, but there's English version (click on the small flag at the bottom).

Works perfectly!

Swift Arrow’s picture

What other solutions? The only one I found was accessing the Cron from SSH, which I cannot do.
But there is also the poormanscron module for drupal

funbahai’s picture

Until I spend time to find a long-term solution, I just bookmarked my site's cron page as a tab when I open Firefox.

For example: www.example.com/cron.php

Now every time I open Firefox (several times a day) my site gets updated and I just close the tab when it is done.

Minimum of fuss and hassle. It isn't elegant, but its functional.