Hello:
I'm testing several different CMSs in my computer. It is running Windows OS and XAMPP. Already I've installed Xoops, Tikiwiki, Mambo, Typo3, PostNuke, CPG Dragonfly etc.
I followed carefully the instructions to install Drupal, that is:
I´ve created the database.
I've populated it using the SQL script provided with drupal
I've modified the settings in the settings.php
When I tried to open Drupal in the broser what appears is the contents of the settings.php!
Any help?
Regards.
Martin

Comments

venkat-rk’s picture

I use XAMPP and don't have this issue. Are you sure you are using this url to access drupal?
http://localhost or http://localhost/drupal

andre75’s picture

My guess is you have your settings wrong.
I copied drupal in my xampp/htdocs/drupaldirectory (or whatever) folder and changed the settings like this:
$db_url = 'mysql://root@localhost/drupaldatabase';

$base_url = 'http://localhost/drupaldirectory';

Then go to:
http://localhost/phpmyadmin
create the database (drupaldatabase) and upload the database.mysql file.
Then type in your browser http://localhost/drupaldirectory

This worked just fine for me. I have a couple of drupal installs running on my usb stick.

I did switch my xampp to php4 but it also works with php5.
No other adjustments should be necessary to get this working.
I did not use the xampp installer (just the zip file, unzipped and ready to go).

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

lu5dx’s picture

Thanks guys for your notes. I'll do the installation again and I'll let you know what happens.
Regards to all.
Martin - Argentina

Brian@brianpuccio.net’s picture

Problem solved. Glad you figured it out, lu5dx!

saivert’s picture

You must run this using mysql console:

GRANT ALL PRIVILEGES ON drupal.*
TO nobody@localhost IDENTIFIED BY 'password';

If you do not do this, the Drupal installation will be broken!

pengi’s picture

Phew, I've also installed a bunch of cms' but this one has been the most troublesome to config so far.

I have the latest xampp running vers 5 of php and mysql. Apache is on port 8008 because I need IIS on port 80.

I've seen the instruction to run
GRANT ALL PRIVILEGES ON drupal.*
TO nobody@localhost IDENTIFIED BY 'password';
and took that literally, ie ran just like that.

The expanded drupal files and dirs are in a folder called drupal in htdocs.

In settings.php I have lines like these, which are probably the issue but I've twiddeled them and no luck so far:

$db_url = 'mysql://root:myrootpswd@localhost/drupal';
(have also tried $db_url = 'mysql://root:myrootpswd@localhost:8008/drupal';)

$base_url = 'http://localhost:8008/drupal';
(and variations on that)

I open the site, get a half built page ("_BLOCK" scripts like below) fill out form to create the first admin user, then see

{head} {styles} {_BLOCK_.header.logo} {_BLOCK_.header.site_name} {secondary_links}
{primary_links}
{_BLOCK_.header.title}
Welcome to Drupal. You are user #1, which gives you full and immediate access. All future registrants will receive their passwords via e-mail, so please configure your e-mail settings using the Administration pages.

Your password is blahblah. You may change your password on the next page.

Please login below.

When I try to login, I get either no permissions, or what seems like a loop, ie 'opening page' msg that never goes anywhere

It's trying to nav to
http://localhost:8008/drupal/?q=user/1
or /register (depending)
at that point.

Hope this misconfig is obvious to someone?

sepeck’s picture

I've seen the instruction to run
GRANT ALL PRIVILEGES ON drupal.*
TO nobody@localhost IDENTIFIED BY 'password';
and took that literally, ie ran just like that.

If you ran this then your base url should be
$db_url = 'mysql://nobody:password@localhost/drupal';

Unless you've set a root password on your mysql db (XAMMP comes blank by default) using root won't work. Using root also not a good idea. Drupal doesn't work well with a blank password.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

pengi’s picture

I have set a pswd for root but see that does not matter if I use the line as you've indicated:

$db_url = 'mysql://nobody:password@localhost/drupal';

(and I did run the 'nobody' sql). But still get the same result. The user '1' has been created, because when I have to

http://localhost:8008/drupal/?q=user/1

I see

{head} {styles} {_BLOCK_.header.logo} {_BLOCK_.header.site_name} {secondary_links}
{primary_links}
{_BLOCK_.header.blocks} {_BLOCK_.header.title}
History
Member for:
2 hours 39 min

But something is still amiss. I've seen the reglar drupal first page after a successful install (via fantastico) but I'm sure not there yet. Thanks for the reply.

Heine’s picture

See Junk {head} {styles} codes as output from the Troubleshooting FAQ for information & solution.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

pengi’s picture

Thanks to the two of you it's now working.

I see that PHPTemplate is the wave of the future...I hope someone does a port of pushbutton, that's a very nice one.

Also, I renamed the orig bluemarine to bluemarinex, and then moved the phptemplate port of bluemarine to the themes dir, but while a refresh of the list does show bluemarinex, it does not show the new bluemarine (the phptemplate version). I'll be able to figure this out but just in case someone reads this and can give me a pointer that'd be great.

sepeck’s picture

Pushbutton is a core theme. All core themes have been ported to 4.7.
Now go have some fun. :)

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

walterbyrd’s picture

It's not working for me either.

Xampp now comes with PHP5, not PHP4.

Supposedly, drupal 4.6.5 will work with PHP5. But does it really?

sepeck’s picture

Did you not read this comment http://drupal.org/node/39745#comment-73393 regarding it being solved?

-sp
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

Heine’s picture

XAMPP comes both with a PHP5 and a PHP4 on board. An easy switch is even proved.

I'd advice anyone first to switch to PHP4 then add drupal as an alias to httpd.conf. That way drupal doesn't have to be in the xampp htdocs and all xampp functions will work.

A previous comment has more info: http://drupal.org/node/43330#comment-80519

--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

Walt Esquivel’s picture

Helpful links & discussions on XAMPP & Drupal:

http://drupal.org/node/43330#comment-80514
http://drupal.org/node/43330#comment-80519
http://drupal.org/node/39745
http://drupal.org/node/45421#comment-98410
http://drupal.org/node/29581#comment-75442
http://drupal.org/node/29581#comment-93966

-----
Walt Esquivel, MBA, MA, Captain - U.S. Marine Corps (Veteran)
President, Wellness Corps, LLC
-----
Drupal Users and Developers by Geographical Location
http://drupal.org/node/46659