I am having problems installing the Bot module, obviously. lol. I have managed to get to the point where i run the SSH command to run the file bot_start.php. Here is what im running on
Dreamhost Shared hosting
Linux Server (Debian)
PHP 5.x
Drupal 6.3
Bot module 6.x-1.0
PuTTY 0.60 (SSH for windows)(windows vista)
Here is what i have done so far...
My server already came with the Pear installed (though the bear minimums) and installed the entire package (via support page from my server) by running the following command in my web root folder
$ pear config-create $HOME .pearrc
then
$ pear install -o PEAR
Pear installed without any visible errors. afterwards i installed NetSmartIRC with the folloeing command. seemed to install properly with no errors
$ pear list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.2 stable
Console_Getopt 1.2.3 stable
Net_SmartIRC 1.0.0 stable
PEAR 1.7.2 stable
Structures_Graph 1.0.2 stable
I already had the bot module in my modules folder so at this point i enabled all the bot modules. I cd'd into the bot directory where the bot_start.php file is located and ran the following command:
$ php bot_start.php --root home/.gallows/bigmack83/example.com --url http://www.example.com
and i get the folowing output:
<!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="" lang="" 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 <code>settings.phpfile and ensure that your hosting provider's database server is running. For more help, see the handbook, or contact your hosting provider.
The mysqli error was: 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..
and so im totally confused. lol. i had some help in IRC chat and changed the command to this:
$ php home/.gallows/bigmack83/example.com/sites/all/modules/bot_start.php --root home/.gallows/bigmack83/example.com --url http://www.example.com
and got this:
Could not open input file: home/.gallows/bigmack83/example.com/sites/all/modules/bot_start.php
so i changed it back. I tried changing the root line to "--root home/.gallows/bigmack83/example.com/sites/all/modules/bot"
$ php bot_start.php --root /home/.gallows/bigmack83/example.com/sites/all/modules/bot --url http://www.example.com
and i get this output:
Warning: main(./includes/bootstrap.inc): failed to open stream: No such file or directory in /home/.gallows/bigmack83/example.com/sites/all/modules/bot/bot_start.php on line 38
Fatal error: main(): Failed opening required './includes/bootstrap.inc' (include_path='.:/usr/local/lib/php') in /home/.gallows/bigmack83/example.com/sites/all/modules/bot/bot_start.php on line 38
if i add theabsolute path to both
$ php /home/.gallows/bigmack83/example.com/sites/all/modules/bot/bot_start.php --root /home/.gallows/bigmack83/example.com/sites/all/modules/bot --url http://www.example.com
i get this
-bash: /home/.gallows/bigmack83/example.com/sites/all/modules/bot/bot_start.php: Permission denied
I had some help from some people in #drupal-support but they said it should work. I am totally unable to figure out whats going on and cant figure it out. Im new to using command line/SSH so i wouldn't be surprised if i was missing something. Any help would be greatly appreciated. Thanks ahead of time
-Shawn
Comments
oops...
the lines below the large html output in the code tags...
are supposed to be inside the code section above it.my bad...
-----------------------------------------------------------------------------------------------------------
"The level of our success is limited only by our imagination" -Aesop
I have exactly same problem
an solved including correct path on a ini_set in settings.php :D
Could you please post the
Could you please post the ini_set options you added?