I haven't confirmed this, but I think you have to install oauth using pecl now. "pecl install oauth"
What does the apache log say? What error are you getting? Blank page? Is the default apache site the one that loads?
Yeah, BotQueue is linked to the hostname for security issues. So if the config.php file has the hostname as something besides what you connected it as, it will redirect.
Hmm. The apache config doesn't have a line that it should. There should be an AllowOverride line in apache.conf. Change it to "AllowOverride All".
The default file is technically .htaccess which redirects to the needed file.
When go to the website I now get:. */ define("START_TIME", microtime(true)); try { include("../extensions/global.php"); include(EXTENSIONS_DIR . "session.php"); //are we in the right place? if ($_SERVER['HTTP_HOST'] != SITE_HOSTNAME) header("Location: http://" . SITE_HOSTNAME . $_SERVER['REQUEST_URI']); // If page requires SSL, and we're not in SSL mode, // redirect to the SSL version of the page if (FORCE_SSL && $_SERVER['SERVER_PORT'] != 443) { header("HTTP/1.1 301 Moved Permanently"); header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); exit(); } //get our stuff. $mode = $_GET['mode']; $controller = $_GET['controller']; $view = $_GET['view']; //figure out what mode we're looking at. if (!$mode) { // //do we have a cookie based mode? // if ($_COOKIE['viewmode']) // { // switch ($_COOKIE['viewmode']) // { // case 'iphone': // $mode = 'iphone'; // break; // // case 'html': // default: // $mode = 'html'; // break; // } // } // else // { // //figure out if we're iphone or not. // if (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false) // $mode = 'iphone'; // else // $mode = 'html'; // // //save it for later! // setcookie('viewmode', $mode, time()+60*60*24*30, '/'); // } $mode = 'html'; } //what controller to show? //If the user hasn't supplied a controller (e.g. item), then use either the iphone or main controllers (which display the home page) if (!$controller) { // if ($mode == 'iphone') // $controller = 'iphone'; // else $controller = 'main'; } if (!$view) $view = 'home'; //load the content. //Create a new object of a subclass of the controller class //$main is an object derived from the Controller class, e.g. iphoneController, mainController, itemController, etc. $main = Controller::byName($controller); //call the renderView function (within the Controller class), passing it only the name of the view (e.g. newest) //The renderView function does the following: // - Sets the the property, $main->data['items'], equal to an array containing one page worth of object (e.g item) data read in from MySQL // - Includes the appropriate view file {controller}.{view}.php file, e.g. item.newest.php // - Returns the output of the Controller->renderview (note: this is not displayed to the screen, rather it's stored in the $content variable) $content = $main->renderView($view); //now draw it in our template. //Does the following: // - Create a new instance of a controller, e.g. htmltemplatecontroller.php (see controllers/htmltemplate.php) // - Call the renderView function on that new controller object, telling it to render the 'main' view with the arguments: content, title and sidebar // - Echo all of that to the screen //Note that $mode often is not defined echo Controller::byName("{$mode}Template")->renderView('main', array( 'content' => $content, 'title' => $main->get('title'), 'area' => $main->get('area'), 'sidebar' => $main->get('sidebar') )); } catch (Exception $ex) { echo "Something bad happened: " . $ex->getMessage(); }
There is no default app on servers. You have to go to the apps page and create one. Then run "python config-setup.py", provide it your url (with https), and the key and secret that the app page shows you.
--
Hmm, interesting. I could have sworn I fixed that. I hope the print turned out well.
I'm curious about your decision to use a private server. I'm trying to find more and more about my target users to see how I can help them improve.
Congratulations on getting the server set up!
--
Hi.
--You received this message because you are subscribed to the Google Groups "BotQueue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to botqueue+u...@googlegroups.com.
The next version will be a while. I think you added my on g+, can you discuss it on Google hangouts?
--