Closed (fixed)
Project:
Drush
Version:
6.x-1.2
Component:
Interoperability
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jan 2009 at 17:45 UTC
Updated:
8 May 2009 at 09:48 UTC
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 <code>php.ini</code> 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
Comment #1
john bickar commentedI 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:
instead of:
Comment #2
that0n3guy commentedThat fixed it. Thanks!
Whats the 'i' stand for anyways? and what does it do?
Comment #3
that0n3guy commentedNevermind...
If I use this command:
instead of just plain'ol
It works with mysqli
Comment #4
jorgeegomez commentedthat0n3guy: 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).
Comment #5
Macronomicus commented@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?
Comment #6
jorgeegomez commented@macrocosm: Instead of a link, you should create an alias. Add this to your .bash_profile file:
Comment #7
Macronomicus commented@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.
^_^
Comment #8
voipfc commentedI came across this error and copied php5 to my bin directory and the above problem went way.
Now it complains
Looking at the code it appears to be the result of the failure of an xmlrpc call to drupal.org, any ideas?
Comment #9
voipfc commentedThe update module is also coming up with this error in the logs
so there is probably some problem some where
Comment #10
cozzi commentedWow, did this post ever save me from pulling what's left of my hair.
Thanks everyone!
Comment #12
Macronomicus commentedOk 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.phpTyping drush gives...
-bash: drush: command not foundI 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
Comment #13
anarcat commentedThis is a different issue, and not related with drush, please do not reopend old issues with unrelated problems.
Comment #14
Macronomicus commentedSorry ... 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 >_<