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/views_handler_filter_node_status.inc on line 13.

DRUPAL DOCS

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.

PHP

Go to Marc's site and grab PHP: http://www2.entropy.ch/download/Entropy%20PHP%205.3.0-3.pkg save a file called test.php into ~/Sites <?php phpinfo() ?>

MySQL

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: http://steveno.wordpress.com/2009/03/26/uninstall-mysql-on-mac-os-x/

  • 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 mysql.com and grab MySQL Community Server (5.1.48), binary installer.  Go to macupdate.com and grab the latest mysql-gui-tools.  root password is initially null, use MySQL Administrator to change to something useful.

DRUPAL

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

MODULES

http://drupal.org/getting-started/install-contrib

We are going to begin with admin menu:

http://drupal.org/node/508148

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

unpack downloaded tarball into that directory

Visit Administer: Site building: Modules to enable

...it's just that easy!

DRUSH

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