How to Design XML Documents
Aug 27 2:51:29
Back online!
Jul 30 16:17:53
Response to "Knowledge Management 2.0"
Jul 18 2:45:52
Drupal Apps
Jun 3 7:17:00
Google Sites and the AJAX universe
May 21 1:18:39
Often when people hear about Drupal, they want to get things up and running as quickly as possible. Unfortunately, Drupal is not the most friendly package to getting running "out of the box".
While a lot of the installation wrinkles have been smoothed out with the recently released Drupal 5.0, here is my quick guide to getting Drupal 4.6.x installed. I still have a soft spot for this release, since it was a nice mix of features and simplicity. Some may find it useful, if only as a historical reference:
Drupal install
NB: when running commands or editing files, I have placed the type of action to perform in [square brackets]. Normally the context should be self-explanatory -- for example [find] means to find the line with the indicated text and [change to] indicates that you should modify the previously found text as shown.
[find]
display_errors = on
[change to]
display_errors = off
[find]
log_errors = off
[change to]
log_errors = on
[find]
;html_errors = off
[change to]
html_errors = off
[find]
;error_log = filename
[change to]
error_log = C:\IndigoPerl\logs\php-errors.log
[find]
SMTP = localhost
[change to]
; host to use when sending mail -- for a local install, use your ISP's mail server, eg:
SMTP = smtp.host.com
[find]
sendmail_from = me@localhost
[change to]
; From e-mail address to use for all outgoing email sent by the PHP mail function
sendmail_from = webmaster@host.com
[cmd]
set PATH=%PATH%;C:\Program Files\MySQL\MySQL Server 4.1\bin
mysqladmin -u root -p create drupal
[prompt]
Enter password: sqlpwd
[cmd]
mysql -u root -p
[prompt]
Enter password: sqlpwd
[mysql]
GRANT ALL PRIVILEGES ON drupal.* TO drupal@localhost IDENTIFIED BY 'drupalpwd';
flush privileges;
\q
[cmd]
c:
cd "\IndigoPerl\apache\htdocs\database"
mysql -u drupal -p drupal < database.mysql
This will take around 20 seconds to upload the default Drupal database.
Edit the $db_url line to match the database defined in the previous steps:
$db_url = "mysql://drupal:drupalpwd@localhost/drupal";
Set $base_url to match the address to your Drupal site (replace localhost with your hostname for a production server):
$base_url = "http://localhost";
[find]
DirectoryIndex index.html index.html.var
[change to]
DirectoryIndex index.php index.html.var
[mysql]
SET PASSWORD FOR drupal@localhost = OLD_PASSWORD('drupalpwd');
flush privileges;
\q
Click create the first account
Username: admin
E-mail: username@domain.com
A password will be displayed. You will be required to change it on first logon.