Hey everyone, I've used drush on several other sites but for my dreamhost account it outputs like so

I am getting this when using it, like its trying to load a page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<title>Site off-line | Drupal</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/misc/favicon.ico" type="image/x-icon" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/defaults.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/system-menus.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/modules/system/maintenance.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/themes/garland/style.css?0" />
<link type="text/css" rel="stylesheet" media="all" href="/themes/garland/minnelli/minnelli.css?0" />
<link type="text/css" rel="stylesheet" media="print" href="/themes/garland/print.css?0" />
<!--[if lt IE 7]>
<link type="text/css" rel="stylesheet" media="all" href="/themes/garland/fix-ie.css" /> <![endif]-->
</head>
<body>

<!-- Layout -->
<div id="header-region" class="clear-block"></div>

<div id="wrapper">
<div id="container" class="clear-block">

<div id="header">
<div id="logo-floater">
<h1><a href="/" title="Drupal"><img src="/themes/garland/minnelli/logo.png" alt="Drupal" id="logo" /><span>Drupal</span></a></h1> </div>

</div> <!-- /header -->


<div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
<h2>Site off-line</h2> <div class="clear-block">
<p>The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.</p><hr /><p><small>If you are the maintainer of this site, please check your database settings in the settings.php file and ensure that your hosting provider's database server is running. For more help, see the <a href="http://drupal.org/node/258">handbook</a>, or contact your hosting provider.</small></p><p><small>The <em>mysqli</em> error was: <em>Unable to use the MySQLi database because the MySQLi extension for PHP is not installed. Check your &lt;code&gt;php.ini&lt;/code&gt; to see how you can enable it.</em>.</small></p> </div>
<div id="footer"></div>
</div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->


</div> <!-- /container -->
</div>
<!-- /layout -->

</body>
</html>

I have drush enabled in D6? Its going to suck if drush doesn't work w/ dreamhost... HOW COULD ANYONE POSSIBLY LIVE WITHOUT DRUSH?!? :) ... Its just so beautiful

P.S. I added the php ( ... ) tags to it because < code > was fighting with it.

Comments

john bickar’s picture

I had this same problem and it was because I was using the wrong syntax (mysqli instead of mysql) in my settings.php file. I had:

$db_url = 'mysqli://username:password@localhost/databasename';

instead of:

$db_url = 'mysql://username:password@localhost/databasename';
that0n3guy’s picture

That fixed it. Thanks!

Whats the 'i' stand for anyways? and what does it do?

that0n3guy’s picture

Nevermind...

If I use this command:

/usr/local/php5/bin/php drush.php

instead of just plain'ol

./drush.php

It works with mysqli

jorgeegomez’s picture

Status: Active » Fixed

that0n3guy: Your solution works. By default Dreamhost uses php4 in the command line (/usr/local/bin/php -v), unless you specifically use the complete path to php5 (/usr/local/php5/bin/php).

Macronomicus’s picture

@that0n3guy

THANKYOU!!!!!!
That worked perfectly.
I had a hell of a time recompiling php and installing e-accelerator on Dreamhost, by the time I got to drush, I didnt have any patience left, I was just about to freak and I found your post, thank you for saving my sanity. lol!

^_^

Still even though its working I cant help but wonder why?..............

ln -s /mysite.com/sites/all/modules/drush/drush.php /usr/local/php5/bin/php
doesn't work!...........

After creating that link; are you not supposed to be able to just type?.........
drush ............//from within the sites root dir
and get the same effect as................
/usr/local/php5/bin/php drush.php
??????

So for instance when typing.... drush help .... I get the following error
Could not open input file: /mysite.com/sites/all/modules/drush/drush.php

But when I type....
/usr/local/php5/bin/php drush.php help

I get whats expected!!! Wierdness....
-----------------------------------------------
Oh well at least its working right?!!
I'll look into it later I guess...
Did the two of you have a similar issue?
Or am I just creating the link wrong?

jorgeegomez’s picture

@macrocosm: Instead of a link, you should create an alias. Add this to your .bash_profile file:

alias drush='/usr/local/php5/bin/php /home/«your_account»/«your_drupal_dir»/sites/all/modules/drush/drush.php'
Macronomicus’s picture

@somnoliento

for some strange reason my file upload of drush was corrupted
it was missing a ton of files and well it was just plain sad. lol
all is well now, and I am using the alias in my .bash_profile too, thanks for the tip on that.

^_^

voipfc’s picture

I came across this error and copied php5 to my bin directory and the above problem went way.

Now it complains

None of the given projects exists or has releases that are compatible with your Drupal version.

Looking at the code it appears to be the result of the failure of an xmlrpc call to drupal.org, any ideas?

 // Get the module info from drupal.org via xml-rpc
  $releases = drush_pm_get_project_info($requests);
  if (!$releases) {
    drush_die(dt("None of the given projects exists or has releases that are compatible with your Drupal version."));
  }
voipfc’s picture

The update module is also coming up with this error in the logs

Unable to fetch any information about available new releases and updates

so there is probably some problem some where

cozzi’s picture

Wow, did this post ever save me from pulling what's left of my hair.

Thanks everyone!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Macronomicus’s picture

Title: Dreamhost outputting HTML? » Dreamhost outputting HTML? Drush not happy.
Status: Closed (fixed) » Active

Ok im back now on a different dreamhost server, this time I didnt custom compile my own php but did the import of the dreamhost php setup so I could tweak the php.ini

Now the problem is that drush only works when I type
/usr/local/php5/bin/php /home/myusername/drush/drush.php
Typing drush gives...
-bash: drush: command not found

I have added the alias to my bash_profile as follows...
alias drush='/usr/local/php5/bin/php /home/myusername/drush/drush.php'

Im totally stumped. How can the first command work but not the alias? ... there both essentially the same thing!

Yeearrrrggg!! lol

anarcat’s picture

Status: Active » Closed (fixed)

This is a different issue, and not related with drush, please do not reopend old issues with unrelated problems.

Macronomicus’s picture

Sorry ... it was just because I had previously spoken in this issue with the other guys about the same problem with Dreamhost and drush... which resurfaced slightly different, so by using this issue they could see in their tracker that there was a new comment. At any rate I am moving the client to my real server, problem solved as of today!

Sorry for the bother >_<