I have installed Drupal 4.6.3 on my Mac OSX 10.3.9 and want to host my site on my computer. I have followed all installation instructions but when I go to http://localhost/drupal it shows me all files/folders in that location, not Drupal. I assume that means I have it in the correct location since it shows the index, but that there must be some problem recognizing Drupal... right?

I've seen comments that it may be caused by Apache issues.. they say my version of OSX should automatically have Apache, but how do I know if Apache is working? Is Apache a program I need to start? When I go to http://localhost it says

"If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page."

Please offer any help! This is important and haven't been able to figure it out for almost 2 weeks!

Thanks

Comments

asimmonds’s picture

Add a AllowOverride to your apache httpd.conf
see:
http://drupal.org/node/5338

This will add a few other things by including the .htaccess file in Drupal's directory, most importantly the DirectoryIndex change that you need.

DriesK’s picture

Do you have PHP running? You can test this by making a small file, e.g. info.php, with the following in it, and run it in your browser:

phpinfo();

If you don't have PHP running, you should enable it. (This tutorial is for Tiger, but it should work in Panther as well).

novice23’s picture

I copied this text and pasted into BBEdit and saved as info.php but how do I run it in my browser? When I double-clicked to open it went immediately into BBedit. So then I told it to open the document in Safari and all it did was open a blank page in Safari then jump back to the finder. I also followed the directions for enabling php and then opening but opening info.php doesn't seem to work

novice23’s picture

I added "AllowOverride All" to my httpd.conf file, restarted Apache, but now I'm not even seeing the Index of that directory. Now when I go to http://localhost/drupal I get a page with this:

"

// $Id: index.php,v 1.82 2004/08/21 06:42:34 dries Exp $

/**
 * @file
 * The PHP page that serves all page requests on a Drupal installation.
 *
 * The routines here dispatch control to the appropriate handler, which then
 * prints the appropriate page.
 */

include_once 'includes/bootstrap.inc';
drupal_page_header();
include_once 'includes/common.inc';

fix_gpc_magic();

$status = menu_execute_active_handler();
switch ($status) {
  case MENU_NOT_FOUND:
    drupal_not_found();
    break;
  case MENU_ACCESS_DENIED:
    drupal_access_denied();
    break;
}

drupal_page_footer();

"

I also went through the steps to enable PHP and restarted Apache, but still got this message. What now?

novice23’s picture

Wait, I just tried going to http://localhost/drupal again and now I get this..

"Warning: mysql_connect(): Client does not support authentication protocol requested by server; consider upgrading MySQL client in /Library/WebServer/Documents/drupal/includes/database.mysql.inc on line 31
Client does not support authentication protocol requested by server; consider upgrading MySQL client"

Is this progress?

andre75’s picture

I am runing xampp on linux:
http://www.apachefriends.org/en/xampp.html
It works like a charm. I have my local site in
http://localhost/drupal and I dont see any problems.
Just make sure you start apache and php (for me lampp start does the trick).
Simply download xampp unzip it, copy your files into the htdocs/drupal directory under your xampp install and go.
The first step should be to load the DB
http://localhost/phpMyadmin
Then check your site configuration file.

xampp was configured correctly. I did not have to modify anything to get started. Maybe it works for you too.

Andre

-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

mmiyashiro’s picture

I've got the same problem, I'm trying every possible solution, though nothing seems to solve it. Can anyone please help? I installed manually Apache 2.2., MySQL 5.1 and PHP 5. I prefer not using xampp or wampp to be able to learn.