I just migrated a site from Drupal 4.0 to Drupal 4.1, here's how I did it. For me this means DebianLinux, Apache, MySql and PHP 4.1.2
- Setup a new Apache virtual host, I used:
<VirtualHost 10.11.16.11:80> ServerName dev.pixelworkers.com DocumentRoot /var/www/www.pixelworkers.com ServerAdmin administrator@pixelworks.com ServerAlias www.pixelworkers.com pixelworkers.com DirectoryIndex index.html index.php CustomLog /var/log/apache/www.pixelworkers.com-access.log combined ErrorLog /var/log/apache/www.pixelworkers.com-error.log <Directory /var/www/www.pixelworkers.com> AllowOverride All </Directory> </VirtualHost> - Get the latest version of Drupal 4.1 and contribution theme/modules from CVS (the CVS password is "anonymous").
# cvs -d :pserver:anonymous@cvs.drupal.org:/cvs/drupal login
# cvs -d :pserver:anonymous@cvs.drupal.org:/cvs/drupal co -r DRUPAL-4-1-0 drupal
# cvs logout
# mv drupal www.pixelworkers.com
# cd www.pixelworkers.com
# cvs -d :pserver:anonymous@cvs.drupal.org:/cvs/drupal-contrib login
# cvs -d :pserver:anonymous@cvs.drupal.org:/cvs/drupal-contrib co -r DRUPAL-4-1-0 contributions/themes
# cvs -d :pserver:anonymous@cvs.drupal.org:/cvs/drupal-contrib co -r DRUPAL-4-1-0 contributions/modules
Load the default MySql database and configure Drupal to use it (note: drupal-db is the name of your database). You'll need to make sure that a user is created with appropriate permissions etc to access the database. If you don't know how to do all that I find PhpMyAdmin (a web based front end to MySql immensely helpful and easy to install):
# mysql -u root -p drupal-db < database/database.mysql # vi include/conf.php (set the $db_url line appropriately)
- You should now be able to go to your Drupal web site in a browser and create an admin account. If that doesn't work something has gone wrong and you need to figure that out before you carry on.
- Load in whatever modules you need from the contributions repository (note: the reason I do use symbolic links to the contributions directory, rather then just copy the files to the modules directory, is so that I can keep the entire contributions directory sync'd up via CVS).
# cd modules
# ln -s ../contributions/modules/weblink/weblink.module weblink.module
# mysql -u root -p drupal-pw < ../contributions/modules/weblink/weblink.mysql
#
#