The Second Post (Paradoxically my notes about installation)

strict warning: Declaration of views_handler_filter_node_status::operator_form() should be compatible with views_handler_filter::operator_form(&$form, &$form_state) in /home/chaosmin/secure_html/sites/all/modules/views/modules/node/ on line 13.


From a fresh install of OS X (preferably the latest update of either 10.5 or 10.6), turn on Apache by visiting the "Sharing" System Preference panel. Grab the latest Drupal, and unpack it into /Library/WebServer/Documents. As of this writing, the latest is Drupal 6.22; make sure to rename the containing folder to simply "drupal", so you don't have the version number in your URL, or better yet, unpack the contents of the Drupal folder into your webserve root.


Go to Marc's site and grab PHP: save a file called test.php into ~/Sites <?php phpinfo() ?>


The following steps are optional, but really quite useful if you have an old install of MySQL on your Mac for which you can't remember the root password! Type the following directions to clean out old installs of MySQL:

  • sudo rm /usr/local/mysql
  • sudo rm -rf /usr/local/mysql*
  • sudo rm -rf /Library/StartupItems/MySQLCOM
  • sudo rm -rf /Library/PreferencePanes/My*
  • edit /etc/hostconfig and remove the line MYSQLCOM=-YES-
  • sudo rm -rf /Library/Receipts/mysql*
  • sudo rm -rf /Library/Receipts/MySQL*

Begin anew.  Go to and grab MySQL Community Server (5.1.48), binary installer.  Go to and grab the latest mysql-gui-tools.  root password is initially null, use MySQL Administrator to change to something useful.


Now follow the Drupal install docs. Most important steps:

  • cd /Library/Webserver/Documents/drupal-6.22/
  • cp sites/default/default.settings.php sites/default/settings.php
  • chmod o+w sites/default/settings.php
  • chmod o+w sites/default

I would modify these last two steps: there seem to be a lot of problems if you keep the website pages' owner to be your user, or root.  I find that once you have copied the default.settings.php to settings.php, that it is best to cd to the parent directory and change the owner of the entire site to apache's owner (which is _www on MacOS X and www-data on Ubuntu).  [IMPORTANT AMENDMENT: This is a security risk!! Only do this to the Sites folder!!]] So, one of the following two lines:

  • chown -R _www drupal-6.22/sites
  • chown -R www-data drupal-6.22/sites

now visit MySQL Administrator to create a "drupal" database, or do the same with phpmyadmin.

http://localhost/drupal-6.22/ (follow directions on-screen until asked for a "files" directory...)

  • mkdir sites/default/files
  • chmod o+w sites/default/files  (continue to follow directions until install is finished, then clean up...)
  • chmod a-w sites/default/settings.php
  • chmod a-w sites/default


We are going to begin with admin menu:

mkdir /Library/Webserver/Documents/drupal-6.22/sites/all/modules

unpack downloaded tarball into that directory

Visit Administer: Site building: Modules to enable's just that easy!


Your very next step might be installing drush.  Until I put in a tutorial, here's a link to my presentation.