Author: buildbot
Date: Mon Jul 30 01:26:18 2012
New Revision: 827370
Log:
Staging update by buildbot for shindig
Added:
websites/staging/shindig/trunk/content/documentation_building_php.html
Modified:
websites/staging/shindig/trunk/content/ (props changed)
Propchange: websites/staging/shindig/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Jul 30 01:26:18 2012
@@ -1 +1 @@
-1366979
+1366981
Added: websites/staging/shindig/trunk/content/documentation_building_php.html
==============================================================================
--- websites/staging/shindig/trunk/content/documentation_building_php.html
(added)
+++ websites/staging/shindig/trunk/content/documentation_building_php.html Mon
Jul 30 01:26:18 2012
@@ -0,0 +1,267 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<!DOCTYPE html>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <title>Shindig - Building and running Apache Shindig for PHP</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="description" content="">
+ <meta name="author" content="">
+
+ <!-- Le styles -->
+ <link href="bootstrap/css/bootstrap.css" rel="stylesheet">
+ <style type="text/css">
+ body {
+ padding-top: 60px;
+ padding-bottom: 40px;
+ }
+ </style>
+ <link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
+
+ <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
+ <!--[if lt IE 9]>
+ <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
+
+ <!-- Le fav and touch icons -->
+ <link rel="shortcut icon" href="images/favicon.ico">
+ <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
+ <link rel="apple-touch-icon" sizes="72x72"
href="images/apple-touch-icon-72x72.png">
+ <link rel="apple-touch-icon" sizes="114x114"
href="images/apple-touch-icon-114x114.png">
+ </head>
+
+ <body>
+
+ <div class="navbar navbar-fixed-top">
+ <div class="navbar-inner">
+ <div class="container">
+ <a class="btn btn-navbar" data-toggle="collapse"
data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </a>
+ <a class="brand" href="index.html">Apache Shindig</a>
+ <!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<div class="nav-collapse">
+ <ul class="nav">
+ <li class="dropdown">
+ <a class="dropdown-toggle" data-toggle="dropdown"
href="#menu1">
+ Get Shindig
+ <b class="caret"></b>
+ </a>
+ <ul class="dropdown-menu">
+ <li><a href="download.html">Download</a></li>
+ <li><a href="license.html">License</a></li>
+ </ul>
+ </li>
+ <li class="dropdown">
+ <a class="dropdown-toggle" data-toggle="dropdown"
href="#menu1">
+ About Shindig
+ <b class="caret"></b>
+ </a>
+ <ul class="dropdown-menu">
+ <li><a href="about_shindig_overview.html">Overview</a></li>
+ <li><a href="about_shindig_getting_started.html">Getting
Started</a></li>
+ <li><a href="faq.html">FAQ</a></li>
+ <li><a href="resources.html">Resources</a></li>
+ <li><a href="powered-by.html">Powered By</a></li>
+ </ul>
+ </li>
+ <li class="dropdown">
+ <a class="dropdown-toggle" data-toggle="dropdown"
href="#menu1">
+ Documentation
+ <b class="caret"></b>
+ </a>
+ <ul class="dropdown-menu">
+ <li><a href="documentation_centre.html">Center</a></li>
+ <li><a href="documentation_java.html">Java</a></li>
+ <li><a href="#">PHP</a></li>
+ <li><a href="#">Features</a></li>
+ </ul>
+ </li>
+ <li class="dropdown">
+ <a class="dropdown-toggle" data-toggle="dropdown"
href="#menu1">
+ Community
+ <b class="caret"></b>
+ </a>
+ <ul class="dropdown-menu">
+ <li><a href="community_overview.html">Overview</a></li>
+ <li><a href="getting-help.html">Getting Help</a></li>
+ <li><a href="issue-tracking.html">Issue Tracking</a></li>
+ <li><a href="source-repository.html">Source
Repository</a></li>
+ <li><a
href="https://cwiki.apache.org/confluence/display/SHINDIG/Index">Wiki</a></li>
+ <li><a href="#">The Shindig Team</a></li>
+ </ul>
+ </li>
+ <li class="dropdown">
+ <a class="dropdown-toggle" data-toggle="dropdown"
href="#menu1">
+ Misc
+ <b class="caret"></b>
+ </a>
+ <ul class="dropdown-menu">
+ <li><a href="http://www.apache.org/">Apache</a></li>
+ <li><a
href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
+ <li><a
href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+ </ul>
+ </li>
+ <li class="dropdown">
+ <a class="dropdown-toggle" data-toggle="dropdown"
href="#menu1">
+ Project Doc
+ <b class="caret"></b>
+ </a>
+ <ul class="dropdown-menu">
+ <li><a href="#">Project Information</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div><!--/.nav-collapse -->
+
+ </div>
+ </div>
+ </div>
+
+ <div class="container">
+ <h1 id="building-and-running-apache-shindig-for-php">Building and
running Apache Shindig for PHP</h1>
+<p>This is the PHP steps on how to build and run Apache Shindig.</p>
+<ul>
+<li>Prequisites</li>
+<li>Get the code</li>
+<li>Running Apache Shindig</li>
+<li>Additonal reading</li>
+</ul>
+<h2 id="prequisites-before-building-apache-shindig-for-php">Prequisites before
building Apache Shindig for PHP</h2>
+<p>In order to build and run Apache Shindig for PHP, you must have the
following:</p>
+<ul>
+<li>A Subversion client installed in order to checkout the code.<ul>
+<li>Instructions for downloading and installing Subversion can be found <a
href="http://subversion.tigris.org/">here</a>.</li>
+</ul>
+</li>
+<li>Apache with mod_rewrite enabled.<ul>
+<li>PHP 5.2.x with the <a href="http://us.php.net/json">json</a>, <a
href="http://us.php.net/simplexml">simplexml</a>,
+ <a href="http://us2.php.net/mcrypt">mcrypt</a> and <a
href="http://us3.php.net/curl">curl</a> extentions enabled.</li>
+</ul>
+</li>
+</ul>
+<h2 id="getting-the-code">Getting the code</h2>
+<p>Create a subdirectory in your web document root, e.g. /var/www/html and
checkout the
+Apache Shindig code from its Subversion repository.</p>
+<ol>
+<li>mkdir /var/www/html/shindig</li>
+<li>cd /var/www/html/shindig</li>
+<li>svn co http://svn.apache.org/repos/asf/shindig/trunk/</li>
+</ol>
+<h2 id="running-apache-shindig">Running Apache Shindig</h2>
+<p>With PHP There is no need to build anything - the source code is already
built.</p>
+<p>To run the code, you have several options:</p>
+<h3 id="a-create-a-new-virtual-host">a. Create a new virtual host</h3>
+<p>Point your apache to the php dir with a virtual host like:</p>
+<pre>
+ <VirtualHost your_ip:your_port>
+ ServerName your.host
+ DocumentRoot /var/www/html/shindig/php
+ ... other normal settings in vhosts...
+ </VirtualHost>
+</pre>
+
+<p>Restart apache, and point your browser to:</p>
+<p>http://your.host/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml</p>
+<div class="row-fluid">
+ <div class="span6">
+ <ul class="thumbnails">
+ <li class="span4">
+ <div class="thumbnail">
+ <img src="images/task.png" alt="">
+ </div>
+ </li>
+ </ul>
+ </div>
+</div>
+
+<h3 id="b-run-with-an-existing-host">b. Run with an existing host</h3>
+<p>If you cannot/don't want to create a virtual host, you can edit the file
php/config.php and
+change the web_prefix setting to '/shindig/php'.</p>
+<p>Then you can run the gadget by pointing your browser to:</p>
+<p>http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml</p>
+<div class="row-fluid">
+ <div class="span6">
+ <ul class="thumbnails">
+ <li class="span4">
+ <div class="thumbnail">
+ <img src="images/task.png" alt="">
+ </div>
+ </li>
+ </ul>
+ </div>
+</div>
+
+<h2 id="additional-reading">Additional reading</h2>
+<p>Read <a
href="http://svn.apache.org/repos/asf/shindig/trunk/php/README">php/README</a>
for original instructions on
+how to start up the php Apache Shindig server.</p>
+ <hr>
+
+ <footer>
+ <p>Copyright © 2007-2012 <a href="http://www.apache.org">The
Apache Software Foundation</a>. All Rights Reserved.</p>
+ </footer>
+
+ </div> <!-- /container -->
+
+ <!-- Le javascript
+ ================================================== -->
+ <!-- Placed at the end of the document so the pages load faster -->
+ <script src="jquery/js/jquery-1.7.1.min.js"></script>
+ <script src="bootstrap/js/bootstrap.min.js"></script>
+
+ </body>
+</html>