john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

drupal 01 install

drupal-6-install (2009-12-30, updated 2010-03-24, updated 2010-05-08)

drupal wants to use the root directory of your website (assuming that it manages all content - not just sitting in a sub directory?)

LOTS OF MINI "PRE" STEPS TO MAKE IT EASIER...

  1. make a subdomain (wait 1 hour for DNS to propogate?) Your DOMAIN REGISTRAR is where you've leased domain.com for X years. That is where you can update what NAMESERVER to use, if your WEB HOST is separate from REGISTRAR then you may have to create subdomains using the WEB HOST'S configuration (e.g. cpanel)

  2. make a Mysql database for that drupal installation

CPANEL or something like that from your webhost, just create the database name, username, and password

write down: databasename, username, password, database host
    -weird that it may be a private ip 10.0.0... via TCP/IP?
(or some long name = drupaluser.db.2.hostedresource.com )

ok ok ok... here's the command line way: mysqladmin -u username -p create databasename mysql -u username -p

  1. Add a user (if necessary) that has ALL Privileges over that database

    CPANEL / phpMyAdmin makes this easy... but manually:

    GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password';

  2. download drupal files from the drupal.org website

  3. uncompress / unpack and upload all of the drupal files to your site (I recommend using filezilla ftp mode, but preferrably using sftp mode ) NOTE: for "sub domains" you may have to create a sub directory and upload the files there.

  4. download /DRUPAL-ROOT/sites/default/default.settings.php from your site

  5. settings.php needs to be edited so the database connection can be made:

$db_url = 'mysql://mysqluser:password@localhost/databasename';

  1. upload settings.php to /DRUPAL-ROOT/sites/default

  2. ensure that settings.php on your site is "writeable" ... meaning chmod 666 in linux or in filezilla right click and choose "file permissions"

  3. FINALLY, there's a script by the Drupal Peoples which does automagic

http://website.com/install.php or http://subdomain.website.org/install.php

Automatic MYSQL table creation AND eventually even change the writeable permissions on your settings.php back to read only! (444)


Note that Godaddy creates the Databasename the same as the username? so advanced settings should include database name (may be auto created the same as the username) username password 10.6.166.224 (may be some local ip address for the webhost database server)


configure your drupal admin user (don't pick a name like admin/administrator) user@website.com

ERROR! CAN'T USE CLEAN URL (grayed out option!)

Actually, it's because the default .htaccess file from Drupal.org has commented out

If your site is running in a VirtualDocumentRoot at http://example.com/,

# uncomment the following line: RewriteBase /

so remove the # and upload again! (note they have instructions for a /drupal subdir too!)

RewriteBase /drupal


Now for the fun part, download from http://drupal.org/project/modules

admin menu , advanced help, captcha , cck, filefield , imageapi, imagecache, image (imagefield), pathauto, token, views

? recaptcha, transliteration , video , tagadelic SEO: page_title, xmlsitemap, google analytics ,

create the folder DRUPAL-ROOT/sites/all/modules

extract the archives into folders and then upload them to the new modules folder

Then go to Administer -> Modules and see if your new ones are available

Then check each sub module to ensure it's enabled and click Save configuration


ADMINISTER

gives you a warning message about STATUS REPORT

cronjobs - can be run manually, when the Status Reports gives you a warning just click on "run manually"

Unfortunately the image_import module has a weird bug and "can't find" /tmp/images In the configuration type in an existing temporary directory:

sites/default/files/images/temp

FINALLY you'll stop getting messages about STATUS REPORT... then read the doc about actually laying out your site and creating content...


UPDATE.PHP

this nice page tells you everything you should do before running an update (e.g. backup, set site to "offline under construction message", etc.)

will automatically update your drupal version and or modules


MANUAL METHOD to create MYSQL database...

mysqladmin -u username -p create databasename

MySQL will prompt for the 'username' database password and then create the initial database files. Next you must login and set the access database rights:

mysql -u username -p

Again, you will be asked for the 'username' database password. At the MySQL prompt, enter following command:

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password';

'username@localhost' is the username of your MySQL account


going to subdomain.domain.com gave an Error "register_globals is enabled. Drupal requires this configuration directive to be disabled. "

2 possible solutions:

Modify the .htaccess file and re-upload into subdomain root

php_flag register_globals off (3 different lines in the default .hataccess)

OR upload a file named php.ini with contents in the subdomain root directory register_globals = false (you can try substituting off instead of false)


  • « embed wmv or swf into wss 3
  • drupal 06 login block menu »

Published

Aug 1, 2010

Category

drupal

~744 words

Tags

  • 01 3
  • drupal 43
  • install 58