By michrid on
HI
So far I have found the following explanation of setting up Drupal locally the most simple for myself who has little experience.
http://www.robcottingham.ca/20060830/how-to-install-drupal-on-your-mac-i...
So I have been following these simple instructions, entering the correct username, password etc, but I am being confronted with a white screen as opposed to Drupel's setup page.
I've spent a couple days going through various explanations of the setup process using MAMP in detail, changed the version of php back and fourth. I'm at my wit's end.
Has anyone experienced this problem before? I hope it's very simple.
Thank you for your time,
Mike
Comments
A white screen may mean a
A white screen may mean a lot of things. While I haven't encountered the problem you are facing (I run Drupal with MAMP), here is some information you should provide that will be useful if others want to answer your question:
What version of MAMP and PHP are you using?
What version of Drupal are you using?
Are you able to open MAMP start page?
I'm using drupal-4.7.3 and
I'm using drupal-4.7.3 and MAMP 1.3.1. The MAMP start page works fine, I've been able to setup the database etc.
memory limit
Hey michrid,
Your memory limit is probably too steep. You can check how to fix that in the Troubleshooting Handbook:
My page is blank.
memory limit
I've just tried that and still no luck. I increased the limit to 24MB. Is that enough?
Check your error logs and
Check your error logs and post them if you don't understand them. Just the last few lines that have similar time stamps. Do it right after triggering the white page with drupal.
Located:
/Applications/MAMP/logs/apache_error.log & php_error.log
And make sure your MAMP install is located inside yoru applications folder. It's not common to have this restriction on the Mac OS but I think MAMP does.
–joon
Thank you for this!
Thank you for this! Unfortunately I don't understand the error log so I'd really appreciate it if you could tell what's wrong from these...
From Apache error Log
[Thu Oct 12 15:45:27 2006] [notice] Digest: generating secret for digest authentication ...
[Thu Oct 12 15:45:27 2006] [notice] Digest: done
[Thu Oct 12 15:45:28 2006] [notice] Apache/2.0.55 (Unix) PHP/5.1.4 DAV/2 mod_ssl/2.0.55 OpenSSL/0.9.7i configured -- resuming normal operations
From php error log
query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'drupaldb.sessions' doesn't exist\nquery: SELECT sid FROM sessions WHERE sid = '4be7328c9c281c6bb708640284a3ed8c' in /Applications/MAMP/htdocs/drupal-4.7.3/includes/database.mysql.inc on line 120.', 2, '', 'http://localhost:8888/drupal-4.7.3/', 'http://localhost:8888/', '::1', 1160664346) in /Applications/MAMP/htdocs/drupal-4.7.3/includes/database.mysql.inc on line 120
[12-Oct-2006 15:45:46] PHP Notice: Undefined property: stdClass::$uid in /Applications/MAMP/htdocs/drupal-4.7.3/includes/bootstrap.inc on line 644
[12-Oct-2006 15:45:46] PHP Warning: Table 'drupaldb.watchdog' doesn't exist
query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'drupaldb.sessions' doesn't exist\nquery: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES ('4be7328c9c281c6bb708640284a3ed8c', 0, 0, '::1', 'messages|a:1:{s:5:\\"error\\";a:15:{i:0;s:292:\\"user warning: Table 'drupaldb.system' doesn't exist\\nquery: SELECT name, filename, throttle, bootstrap FROM system WHERE type = 'module' AND status = 1 ORDER BY weight ASC, filename ASC in /Applications/MAMP/htdocs/drupal-4.7.3/includes/database.mysql.inc on line 120.\\";i:1;s:246:\\"user warning: Table 'drupaldb.system' doesn't exist\\nquery: SELECT filename FROM system WHERE name in /Applications/MAMP/htdocs/drupal-4.7.3/includes/database.mysql.inc on line 120
mysql error log is empty. I'm hope I'm pasting the right sections? They seem to be the most recent times when I've tried opening the page again.
Go back to those
Go back to those instructions and redo steps 3, 4 and 5. This is a new install, right? So go into phpMyAdmin and select the database you created for drupal in the drop down menu at the left column. The main section will reload with the database. At the top of the main section you'll see a "Drop" tab. Click it to delete the database.
From there try the instructions again. Whatever you did before didn't work so follow the instructions closely. It looks like the database didn't install at all. A common thing that's over looked is assigning a user to a database. The intructions tell you how. Follow it to the word.
Your aware that your trying to install an unstable release..? CVS is going to be Drupal 5. Keep in mind that 4.7 installs very differently if you decide to use that.
–joon
Hi Joon, I've done
Hi Joon,
I've done everything you instructed yet I'm still getting the same result.
Do you suggest I should try another version of Drupal? An earlier version?
Here is the new php error log. I'm not sure if it's any different from the last one.
[12-Oct-2006 17:52:35] PHP Warning: Table 'drupaldb.watchdog' doesn't exist
query: INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (0, 'php', 'Table 'drupaldb.sessions' doesn't exist\nquery: INSERT INTO sessions (sid, uid, cache, hostname, session, timestamp) VALUES ('4be7328c9c281c6bb708640284a3ed8c', 0, 0, '::1', 'messages|a:1:{s:5:\\"error\\";a:15:{i:0;s:292:\\"user warning: Table 'drupaldb.system' doesn't exist\\nquery: SELECT name, filename, throttle, bootstrap FROM system WHERE type = 'module' AND status = 1 ORDER BY weight ASC, filename ASC in /Applications/MAMP/htdocs/drupal-4.7.3/includes/database.mysql.inc on line 120.\\";i:1;s:246:\\"user warning: Table 'drupaldb.system' doesn't exist\\nquery: SELECT filename FROM system WHERE name in /Applications/MAMP/htdocs/drupal-4.7.3/includes/database.mysql.inc on line 120
It looks like it's trying to
It looks like it's trying to access a database that isn't there. The setup file might have been misconfigured. From previous install attempts maybe?
Forgot to mention it but try it again with a fresh download of Drupal.
There's a file inside /drupal-install/sites/default/settings.php .. It has to be reset so get a fresh copy and try again. This is because Drupal 5 -cvs shows the install page when it's not modified.
If you don't have a good reason for using CVS then work with 4.7.x.
Some instructions for 4.7..
video: http://www.lullabot.com/videocast/installing-drupal-4.7
handbook: http://drupal.org/node/260
–joon
Resolved!
Thank you so much for your help!! It was actually the videocast that pointed out my mistake. The instructions I was initially following failed to mention (or didn't explain clearly enough for a newbie) how to import mysql 4.1 like the video did.
Thank you Thank you Thank you!
Well, Drupal 5 has an auto
Well, Drupal 5 has an auto installer that imports the database for you while 4.7 does not. That's why it's not shown in the instructions. You still have to prepare a database in v.5.
Glad it worked out.
–joon