Fonts, fonts, fonts
Jul 3 5:24:15
EU antitrust finding against Intel
May 14 4:48:53
Project Management Applications
Feb 27 10:11:17
System sequence diagrams
Jan 28 23:37:45
Life in User Land
Jan 21 22:38:15
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.