{"node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "revisions": [{"id": "f294058f-2f95-11f1-a39a-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": null, "author": null, "data": " http://www.rxmarket.net/ accutane purchase =[[[ http://www.effectivemedcare.com/ phentermine diet pills mezm ", "source_format": "rst", "revision_number": 35, "created": 1290634829000}, {"id": "f293ffa6-2f95-11f1-96e8-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": null, "author": null, "data": " http://www.rxmarket.net/ accutane purchase =[[[ http://www.effectivemedcare.com/ phentermine diet pills mezm ", "source_format": "rst", "revision_number": 34, "created": 1290634825000}, {"id": "f293f912-2f95-11f1-ba88-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: apache\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nConfigure Pylowiki - prod.ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ paster make-config Pylowiki prod.ini\r\n\r\nOpen prod.ini for editing and make changes to reflect your environment.  Database settings, public wiki registration, all the tweak-able settings are declared in the ini.\r\n\r\nPrepare mySQL Database\r\n=============================\r\n\r\nLogin to mySQL as root.  \r\n\r\n.. code-block:: mysql \r\n\r\n  mysql -u root -p\r\n\r\n  mysql>\r\n\r\n  CREATE DATABASE mysite\r\n\r\n  GRANT ALL PRIVILEGES ON mysite.* TO username@localhost IDENTIFIED BY 'passw0rd' WITH GRANT OPTION\r\n\r\nNow make sure the prod.ini reflects these database settings:\r\n\r\n.. code-block:: ini\r\n\r\n  sqlalchemy.url = mysql://username:password@127.0.0.1/mysite?charset=utf8\r\n  sqlalchemy.pool_recycle = 3600\r\n\r\n\r\nNow we can let Pylowiki create all the database tables by issuing the following command:\r\n\r\n.. code-block:: php\r\n\r\n   (virtpy)user@host$ paster setup-app prod.ini\r\n\r\n\r\n  \r\n\r\nConfigure mod_wsgi dispatch file\r\n=====================================\r\n\r\nFirst step is to create the mod_wsgi dispatch file.\r\n\r\nFrom the root directory of the Pylowiki project, create a *dispatch.wsgi* file with the following content:\r\n\r\n.. code-block:: python\r\n\r\n # Add the virtual Python environment site-packages directory to the path\r\n import sys\r\n sys.stdout = sys.stderr\r\n\r\n import site\r\n site.addsitedir('/absolute/path/to/virtpy/lib/python2.6/site-packages')\r\n\r\n # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages\r\n import os\r\n os.environ['PYTHON_EGG_CACHE'] = '/absolute/path/to/pylowiki/egg-cache'\r\n\r\n # Load the Pylons application\r\n from paste.deploy import loadapp\r\n application = loadapp('config:/absolute/path/to/pylowiki/prod.ini')\r\n\r\n\r\nConfigure apache2 virtualhost\r\n================================\r\n\r\nCreate a domain file under /etc/apache2/sites-enabled.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo vi 002-mysite\r\n\r\n #mysite.net\r\n\r\n #pylons embeded mod_wsgi\r\n <VirtualHost *:80>\r\n        ServerName www.mysite.net\r\n        ServerAlias mysite.net\r\n        ServerAdmin admin@mysite.com\r\n\r\n\t# ReWrite URL to WWW\r\n        RewriteEngine On\r\n        RewriteCond %{HTTP_HOST} ^mysite.net\r\n        RewriteRule (.*) http://www.mysite.net$1 [R=301,L]\r\n\r\n        # Log Files\r\n        ErrorLog /var/log/apache2/error-mysite.log\r\n        CustomLog /var/log/apache2/access-mysite.log combined\r\n\r\n        # Setup mod_wsgi\r\n        WSGIScriptAlias / /absolute/path/to/pylowiki/dispatch.wsgi\r\n </VirtualHost>\r\n\r\nRestart the apache2 service:\r\n\r\n.. code-block:: apache\r\n\r\n  sudo service apache2 restart\r\n\r\n", "source_format": "rst", "revision_number": 33, "created": 1289340931000}, {"id": "f293f334-2f95-11f1-aa81-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": null, "author": null, "data": "9pEjly  <a href=\"http://jgsdiqqpgbxf.com/\">jgsdiqqpgbxf</a>, [url=http://tcrwttkhhmdp.com/]tcrwttkhhmdp[/url], [link=http://hzowoqpptwpm.com/]hzowoqpptwpm[/link], http://mpkxtpcyutyr.com/", "source_format": "rst", "revision_number": 32, "created": 1289319997000}, {"id": "f293ecb2-2f95-11f1-a807-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": null, "author": null, "data": "9pEjly  <a href=\"http://jgsdiqqpgbxf.com/\">jgsdiqqpgbxf</a>, [url=http://tcrwttkhhmdp.com/]tcrwttkhhmdp[/url], [link=http://hzowoqpptwpm.com/]hzowoqpptwpm[/link], http://mpkxtpcyutyr.com/", "source_format": "rst", "revision_number": 31, "created": 1289319994000}, {"id": "f293e69f-2f95-11f1-88b6-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": null, "author": null, "data": "Enw5f9  <a href=\"http://kxjqfxwiswjm.com/\">kxjqfxwiswjm</a>, [url=http://oupozstuabji.com/]oupozstuabji[/url], [link=http://cqsjpbryausk.com/]cqsjpbryausk[/link], http://xvutgrtnilut.com/", "source_format": "rst", "revision_number": 30, "created": 1289276815000}, {"id": "f293dd0f-2f95-11f1-84c0-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": null, "author": null, "data": "Enw5f9  <a href=\"http://kxjqfxwiswjm.com/\">kxjqfxwiswjm</a>, [url=http://oupozstuabji.com/]oupozstuabji[/url], [link=http://cqsjpbryausk.com/]cqsjpbryausk[/link], http://xvutgrtnilut.com/", "source_format": "rst", "revision_number": 29, "created": 1289276775000}, {"id": "f293d1f6-2f95-11f1-8ea0-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: apache\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nConfigure Pylowiki - prod.ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ paster make-config Pylowiki prod.ini\r\n\r\nOpen prod.ini for editing and make changes to reflect your environment.  Database settings, public wiki registration, all the tweak-able settings are declared in the ini.\r\n\r\nPrepare mySQL Database\r\n=============================\r\n\r\nLogin to mySQL as root.  \r\n\r\n.. code-block:: mysql \r\n\r\n  mysql -u root -p\r\n\r\n  mysql>\r\n\r\n  CREATE DATABASE mysite\r\n\r\n  GRANT ALL PRIVILEGES ON mysite.* TO username@localhost IDENTIFIED BY 'passw0rd' WITH GRANT OPTION\r\n\r\nNow make sure the prod.ini reflects these database settings:\r\n\r\n.. code-block:: ini\r\n\r\n  sqlalchemy.url = mysql://username:password@127.0.0.1/mysite?charset=utf8\r\n  sqlalchemy.pool_recycle = 3600\r\n\r\n\r\nNow we can let Pylowiki create all the database tables by issuing the following command:\r\n\r\n.. code-block:: php\r\n\r\n   (virtpy)user@host$ paster setup-app prod.ini\r\n\r\n\r\n  \r\n\r\nConfigure mod_wsgi dispatch file\r\n=====================================\r\n\r\nFirst step is to create the mod_wsgi dispatch file.\r\n\r\nFrom the root directory of the Pylowiki project, create a *dispatch.wsgi* file with the following content:\r\n\r\n.. code-block:: python\r\n\r\n # Add the virtual Python environment site-packages directory to the path\r\n import sys\r\n sys.stdout = sys.stderr\r\n\r\n import site\r\n site.addsitedir('/absolute/path/to/virtpy/lib/python2.6/site-packages')\r\n\r\n # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages\r\n import os\r\n os.environ['PYTHON_EGG_CACHE'] = '/absolute/path/to/pylowiki/egg-cache'\r\n\r\n # Load the Pylons application\r\n from paste.deploy import loadapp\r\n application = loadapp('config:/absolute/path/to/pylowiki/prod.ini')\r\n\r\n\r\nConfigure apache2 virtualhost\r\n================================\r\n\r\nCreate a domain file under /etc/apache2/sites-enabled.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo vi 002-mysite\r\n\r\n #mysite.net\r\n\r\n #pylons embeded mod_wsgi\r\n <VirtualHost *:80>\r\n        ServerName www.mysite.net\r\n        ServerAlias mysite.net\r\n        ServerAdmin admin@mysite.com\r\n\r\n\t# ReWrite URL to WWW\r\n        RewriteEngine On\r\n        RewriteCond %{HTTP_HOST} ^mysite.net\r\n        RewriteRule (.*) http://www.mysite.net$1 [R=301,L]\r\n\r\n        # Log Files\r\n        ErrorLog /var/log/apache2/error-mysite.log\r\n        CustomLog /var/log/apache2/access-mysite.log combined\r\n\r\n        # Setup mod_wsgi\r\n        WSGIScriptAlias / /absolute/path/to/pylowiki/dispatch.wsgi\r\n </VirtualHost>\r\n\r\nRestart the apache2 service:\r\n\r\n.. code-block:: apache\r\n\r\n  sudo service apache2 restart\r\n\r\n", "source_format": "rst", "revision_number": 28, "created": 1288036168000}, {"id": "f293cafc-2f95-11f1-8fbd-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: apache\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nConfigure Pylowiki - prod.ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ paster make-config Pylowiki prod.ini\r\n\r\nOpen prod.ini for editing and make changes to reflect your environment.  Database settings, public wiki registration, all the tweak-able settigns are declared in the ini.\r\n\r\nPrepare mySQL Database\r\n=============================\r\n\r\nLogin to mySQL as root.  \r\n\r\n.. code-block:: mysql \r\n\r\n  mysql -u root -p\r\n\r\n  mysql>\r\n\r\n  CREATE DATABASE mysite\r\n\r\n  GRANT ALL PRIVILEGES ON mysite.* TO username@localhost IDENTIFIED BY 'passw0rd' WITH GRANT OPTION\r\n\r\nNow make sure the prod.ini reflects these database settings:\r\n\r\n.. code-block:: ini\r\n\r\n  sqlalchemy.url = mysql://username:password@127.0.0.1/mysite?charset=utf8\r\n  sqlalchemy.pool_recycle = 3600\r\n\r\n\r\nNow we can let Pylowiki create all the database tables using the following command:\r\n\r\n.. code-block:: php\r\n\r\n   (virtpy)user@host$ paster setup-app prod.ini\r\n\r\n\r\n  \r\n\r\nConfigure mod_wsgi dispatch file\r\n=====================================\r\n\r\nFirst step is to create the mod_wsgi dispatch file.\r\n\r\nFrom the root directory of the Pylowiki project, create a *dispatch.wsgi* file with the following content:\r\n\r\n.. code-block:: python\r\n\r\n # Add the virtual Python environment site-packages directory to the path\r\n import sys\r\n sys.stdout = sys.stderr\r\n\r\n import site\r\n site.addsitedir('/absolute/path/to/virtpy/lib/python2.6/site-packages')\r\n\r\n # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages\r\n import os\r\n os.environ['PYTHON_EGG_CACHE'] = '/absolute/path/to/pylowiki/egg-cache'\r\n\r\n # Load the Pylons application\r\n from paste.deploy import loadapp\r\n application = loadapp('config:/absolute/path/to/pylowiki/prod.ini')\r\n\r\n\r\nConfigure apache2 virtualhost\r\n================================\r\n\r\nCreate a domain file under /etc/apache2/sites-enabled.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo vi 002-mysite\r\n\r\n #mysite.net\r\n\r\n #pylons embeded mod_wsgi\r\n <VirtualHost *:80>\r\n        ServerName www.mysite.net\r\n        ServerAlias mysite.net\r\n        ServerAdmin admin@mysite.com\r\n\r\n\t# ReWrite URL to WWW\r\n        RewriteEngine On\r\n        RewriteCond %{HTTP_HOST} ^mysite.net\r\n        RewriteRule (.*) http://www.mysite.net$1 [R=301,L]\r\n\r\n        # Log Files\r\n        ErrorLog /var/log/apache2/error-mysite.log\r\n        CustomLog /var/log/apache2/access-mysite.log combined\r\n\r\n        # Setup mod_wsgi\r\n        WSGIScriptAlias / /absolute/path/to/pylowiki/dispatch.wsgi\r\n </VirtualHost>\r\n\r\nRestart the apache2 service:\r\n\r\n.. code-block:: apache\r\n\r\n  sudo service apache2 restart\r\n\r\n", "source_format": "rst", "revision_number": 27, "created": 1286638334000}, {"id": "f293c39b-2f95-11f1-b24b-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: apache\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nConfigure Pylowiki - prod.ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ paster make-config Pylowiki prod.ini\r\n\r\nOpen prod.ini for editing and make changes to reflect your environment.  Database settings, public wiki registration, all the tweak-able settigns are declared in the ini.\r\n\r\nCreate mySQL Database\r\n=============================\r\n\r\nLogin to mySQL as root.  \r\n\r\n.. code-block:: mysql \r\n\r\n  mysql -u root -p\r\n\r\n  mysql>\r\n\r\n  CREATE DATABASE mysite\r\n\r\n  GRANT ALL PRIVILEGES ON mysite.* TO username@localhost IDENTIFIED BY 'passw0rd' WITH GRANT OPTION\r\n\r\nNow make sure the prod.ini reflects these database settings:\r\n\r\n.. code-block:: ini\r\n\r\n  sqlalchemy.url = mysql://username:password@127.0.0.1/mysite?charset=utf8\r\n  sqlalchemy.pool_recycle = 3600\r\n\r\n\r\nNow we can let Pylowiki create all the database tables using the following command:\r\n\r\n.. code-block:: php\r\n\r\n   (virtpy)user@host$ paster setup-app prod.ini\r\n\r\n\r\n  \r\n\r\nConfigure mod_wsgi dispatch file\r\n=====================================\r\n\r\nFirst step is to create the mod_wsgi dispatch file.\r\n\r\nFrom the root directory of the Pylowiki project, create a *dispatch.wsgi* file with the following content:\r\n\r\n.. code-block:: python\r\n\r\n # Add the virtual Python environment site-packages directory to the path\r\n import sys\r\n sys.stdout = sys.stderr\r\n\r\n import site\r\n site.addsitedir('/absolute/path/to/virtpy/lib/python2.6/site-packages')\r\n\r\n # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages\r\n import os\r\n os.environ['PYTHON_EGG_CACHE'] = '/absolute/path/to/pylowiki/egg-cache'\r\n\r\n # Load the Pylons application\r\n from paste.deploy import loadapp\r\n application = loadapp('config:/absolute/path/to/pylowiki/prod.ini')\r\n\r\n\r\nConfigure apache2 virtualhost\r\n================================\r\n\r\nCreate a domain file under /etc/apache2/sites-enabled.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo vi 002-mysite\r\n\r\n #mysite.net\r\n\r\n #pylons embeded mod_wsgi\r\n <VirtualHost *:80>\r\n        ServerName www.mysite.net\r\n        ServerAlias mysite.net\r\n        ServerAdmin admin@mysite.com\r\n\r\n\t# ReWrite URL to WWW\r\n        RewriteEngine On\r\n        RewriteCond %{HTTP_HOST} ^mysite.net\r\n        RewriteRule (.*) http://www.mysite.net$1 [R=301,L]\r\n\r\n        # Log Files\r\n        ErrorLog /var/log/apache2/error-mysite.log\r\n        CustomLog /var/log/apache2/access-mysite.log combined\r\n\r\n        # Setup mod_wsgi\r\n        WSGIScriptAlias / /absolute/path/to/pylowiki/dispatch.wsgi\r\n\r\n        <Directory /absolute/path/to/pylowiki>\r\n        Order deny,allow\r\n        Allow from all\r\n        </Directory>\r\n </VirtualHost>\r\n\r\nRestart the apache2 service:\r\n\r\n.. code-block:: apache\r\n\r\n  sudo service apache2 restart\r\n\r\n", "source_format": "rst", "revision_number": 26, "created": 1286638229000}, {"id": "f293bd03-2f95-11f1-bff8-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: apache\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nConfigure Pylowiki - prod.ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ paster make-config Pylowiki prod.ini\r\n\r\nOpen prod.ini for editing and make changes to reflect your environment.  Database settings, public wiki registration, all the tweak-able settigns are declared in the ini.\r\n\r\nCreate mySQL Database\r\n=============================\r\n\r\nLogin to mySQL as root.  \r\n\r\n.. code-block:: mysql \r\n\r\n  mysql -u root -p\r\n\r\n  mysql>\r\n\r\n  CREATE DATABASE mysite\r\n\r\n  GRANT ALL PRIVILEGES ON mysite.* TO username@localhost IDENTIFIED BY 'passw0rd' WITH GRANT OPTION\r\n\r\nNow make sure the prod.ini reflects these database settings:\r\n\r\n.. code-block:: ini\r\n\r\n  sqlalchemy.url = mysql://username:password@127.0.0.1/mysite?charset=utf8\r\n  sqlalchemy.pool_recycle = 3600\r\n\r\n\r\nNow we can let pylowiki create all the database tables using the following command:\r\n\r\n.. code-block:: php\r\n\r\n   (virtpy)user@host$ paster setup-app prod.ini\r\n\r\n\r\n  \r\n\r\nConfigure mod_wsgi dispatch file\r\n=====================================\r\n\r\nFirst step is to create the mod_wsgi dispatch file.\r\n\r\nFrom the root directory of the Pylowiki project, create a *dispatch.wsgi* file with the following content:\r\n\r\n.. code-block:: python\r\n\r\n # Add the virtual Python environment site-packages directory to the path\r\n import sys\r\n sys.stdout = sys.stderr\r\n\r\n import site\r\n site.addsitedir('/absolute/path/to/virtpy/lib/python2.6/site-packages')\r\n\r\n # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages\r\n import os\r\n os.environ['PYTHON_EGG_CACHE'] = '/absolute/path/to/pylowiki/egg-cache'\r\n\r\n # Load the Pylons application\r\n from paste.deploy import loadapp\r\n application = loadapp('config:/absolute/path/to/pylowiki/prod.ini')\r\n\r\n\r\nConfigure apache2 virtualhost\r\n================================\r\n\r\nCreate a domain file under /etc/apache2/sites-enabled.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo vi 002-mysite\r\n\r\n #mysite.net\r\n\r\n #pylons embeded mod_wsgi\r\n <VirtualHost *:80>\r\n        ServerName www.mysite.net\r\n        ServerAlias mysite.net\r\n        ServerAdmin admin@mysite.com\r\n\r\n\t# ReWrite URL to WWW\r\n        RewriteEngine On\r\n        RewriteCond %{HTTP_HOST} ^mysite.net\r\n        RewriteRule (.*) http://www.mysite.net$1 [R=301,L]\r\n\r\n        # Log Files\r\n        ErrorLog /var/log/apache2/error-mysite.log\r\n        CustomLog /var/log/apache2/access-mysite.log combined\r\n\r\n        # Setup mod_wsgi\r\n        WSGIScriptAlias / /absolute/path/to/pylowiki/dispatch.wsgi\r\n\r\n        <Directory /absolute/path/to/pylowiki>\r\n        Order deny,allow\r\n        Allow from all\r\n        </Directory>\r\n </VirtualHost>\r\n\r\nRestart the apache2 service:\r\n\r\n.. code-block:: apache\r\n\r\n  sudo service apache2 restart\r\n\r\n", "source_format": "rst", "revision_number": 25, "created": 1286638195000}, {"id": "f293b6a3-2f95-11f1-8039-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: apache\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nConfigure Pylowiki - prod.ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n\r\nOpen prod.ini for editing and make changes to reflect your environment.  Database settings, public wiki registration, all the tweak-able settigns are declared in the ini.\r\n\r\nCreate mySQL Database\r\n=============================\r\n\r\nLogin to mySQL as root.  \r\n\r\n.. code-block:: mysql \r\n\r\n  mysql -u root -p\r\n\r\n  mysql>\r\n\r\n  CREATE DATABASE mysite\r\n\r\n  GRANT ALL PRIVILEGES ON mysite.* TO username@localhost IDENTIFIED BY 'passw0rd' WITH GRANT OPTION\r\n\r\nNow make sure the prod.ini reflects these database settings:\r\n\r\n.. code-block:: ini\r\n\r\n  sqlalchemy.url = mysql://username:password@127.0.0.1/mysite?charset=utf8\r\n  sqlalchemy.pool_recycle = 3600\r\n\r\n\r\n  \r\n\r\n\r\n  \r\n\r\nConfigure mod_wsgi dispatch file\r\n=====================================\r\n\r\nFirst step is to create the mod_wsgi dispatch file.\r\n\r\nFrom the root directory of the Pylowiki project, create a *dispatch.wsgi* file with the following content:\r\n\r\n.. code-block:: python\r\n\r\n # Add the virtual Python environment site-packages directory to the path\r\n import sys\r\n sys.stdout = sys.stderr\r\n\r\n import site\r\n site.addsitedir('/absolute/path/to/virtpy/lib/python2.6/site-packages')\r\n\r\n # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages\r\n import os\r\n os.environ['PYTHON_EGG_CACHE'] = '/absolute/path/to/pylowiki/egg-cache'\r\n\r\n # Load the Pylons application\r\n from paste.deploy import loadapp\r\n application = loadapp('config:/absolute/path/to/pylowiki/prod.ini')\r\n\r\n\r\nConfigure apache2 virtualhost\r\n================================\r\n\r\nCreate a domain file under /etc/apache2/sites-enabled.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo vi 002-mysite\r\n\r\n #mysite.net\r\n\r\n #pylons embeded mod_wsgi\r\n <VirtualHost *:80>\r\n        ServerName www.mysite.net\r\n        ServerAlias mysite.net\r\n        ServerAdmin admin@mysite.com\r\n\r\n\t# ReWrite URL to WWW\r\n        RewriteEngine On\r\n        RewriteCond %{HTTP_HOST} ^mysite.net\r\n        RewriteRule (.*) http://www.mysite.net$1 [R=301,L]\r\n\r\n        # Log Files\r\n        ErrorLog /var/log/apache2/error-mysite.log\r\n        CustomLog /var/log/apache2/access-mysite.log combined\r\n\r\n        # Setup mod_wsgi\r\n        WSGIScriptAlias / /absolute/path/to/pylowiki/dispatch.wsgi\r\n\r\n        <Directory /absolute/path/to/pylowiki>\r\n        Order deny,allow\r\n        Allow from all\r\n        </Directory>\r\n </VirtualHost>\r\n\r\nRestart the apache2 service:\r\n\r\n.. code-block:: apache\r\n\r\n  sudo service apache2 restart\r\n\r\n", "source_format": "rst", "revision_number": 24, "created": 1286637267000}, {"id": "f293b02f-2f95-11f1-b202-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: apache\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nConfigure Pylowiki - prod.ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n\r\nOpen prod.ini for editing and make changes to reflect your environment.  Database settings, public wiki registration, all the tweak-able settigns are declared in the ini.\r\n\r\nCreate mySQL Database\r\n=============================\r\n\r\nLogin to mySQL as root.  \r\n\r\n.. code-block:: mysql \r\n\r\n  mysql -u root -p\r\n\r\n  mysql>\r\n\r\n  CREATE DATABASE mysite\r\n\r\n  GRANT ALL PRIVILEGES ON mysite.* TO username@localhost IDENTIFIED BY 'p@ssw0rd' WITH GRANT OPTION\r\n\r\nNow make sure the prod.ini reflects these database settings:\r\n\r\n.. code-block:: ini\r\n\r\n  sqlalchemy.url = mysql://username:password@127.0.0.1/mysite?charset=utf8\r\n  sqlalchemy.pool_recycle = 3600\r\n\r\n\r\n  \r\n\r\n\r\n  \r\n\r\nConfigure mod_wsgi dispatch file\r\n=====================================\r\n\r\nFirst step is to create the mod_wsgi dispatch file.\r\n\r\nFrom the root directory of the Pylowiki project, create a *dispatch.wsgi* file with the following content:\r\n\r\n.. code-block:: python\r\n\r\n # Add the virtual Python environment site-packages directory to the path\r\n import sys\r\n sys.stdout = sys.stderr\r\n\r\n import site\r\n site.addsitedir('/absolute/path/to/virtpy/lib/python2.6/site-packages')\r\n\r\n # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages\r\n import os\r\n os.environ['PYTHON_EGG_CACHE'] = '/absolute/path/to/pylowiki/egg-cache'\r\n\r\n # Load the Pylons application\r\n from paste.deploy import loadapp\r\n application = loadapp('config:/absolute/path/to/pylowiki/prod.ini')\r\n\r\n\r\nConfigure apache2 virtualhost\r\n================================\r\n\r\nCreate a domain file under /etc/apache2/sites-enabled.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo vi 002-mysite\r\n\r\n #mysite.net\r\n\r\n #pylons embeded mod_wsgi\r\n <VirtualHost *:80>\r\n        ServerName www.mysite.net\r\n        ServerAlias mysite.net\r\n        ServerAdmin admin@mysite.com\r\n\r\n\t# ReWrite URL to WWW\r\n        RewriteEngine On\r\n        RewriteCond %{HTTP_HOST} ^mysite.net\r\n        RewriteRule (.*) http://www.mysite.net$1 [R=301,L]\r\n\r\n        # Log Files\r\n        ErrorLog /var/log/apache2/error-mysite.log\r\n        CustomLog /var/log/apache2/access-mysite.log combined\r\n\r\n        # Setup mod_wsgi\r\n        WSGIScriptAlias / /absolute/path/to/pylowiki/dispatch.wsgi\r\n\r\n        <Directory /absolute/path/to/pylowiki>\r\n        Order deny,allow\r\n        Allow from all\r\n        </Directory>\r\n </VirtualHost>\r\n\r\nRestart the apache2 service:\r\n\r\n.. code-block:: apache\r\n\r\n  sudo service apache2 restart\r\n\r\n", "source_format": "rst", "revision_number": 23, "created": 1286637226000}, {"id": "f293a97c-2f95-11f1-8aae-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: c\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nConfigure Pylowiki - prod.ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n\r\nOpen prod.ini for editing and make changes to reflect your environment.  Database settings, public wiki registration, all the tweak-able settigns are declared in the ini.\r\n\r\nCreate mySQL Database\r\n=============================\r\n\r\nLogin to mySQL as root.  \r\n\r\n.. code-block:: mysql \r\n\r\n  mysql -u root -p\r\n\r\n  mysql>\r\n\r\n  CREATE DATABASE mysite\r\n\r\n  GRANT ALL PRIVILEGES ON mysite.* TO username@localhost IDENTIFIED BY 'p@ssw0rd' WITH GRANT OPTION\r\n\r\nNow make sure the prod.ini reflects these database settings:\r\n\r\n.. code-block:: ini\r\n\r\n  sqlalchemy.url = mysql://username:password@127.0.0.1/mysite?charset=utf8\r\n  sqlalchemy.pool_recycle = 3600\r\n\r\n\r\n  \r\n\r\n\r\n  \r\n\r\nConfigure mod_wsgi dispatch file\r\n=====================================\r\n\r\nFirst step is to create the mod_wsgi dispatch file.\r\n\r\nFrom the root directory of the Pylowiki project, create a *dispatch.wsgi* file with the following content:\r\n\r\n.. code-block:: python\r\n\r\n # Add the virtual Python environment site-packages directory to the path\r\n import sys\r\n sys.stdout = sys.stderr\r\n\r\n import site\r\n site.addsitedir('/absolute/path/to/virtpy/lib/python2.6/site-packages')\r\n\r\n # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages\r\n import os\r\n os.environ['PYTHON_EGG_CACHE'] = '/absolute/path/to/pylowiki/egg-cache'\r\n\r\n # Load the Pylons application\r\n from paste.deploy import loadapp\r\n application = loadapp('config:/absolute/path/to/pylowiki/prod.ini')\r\n\r\n\r\nConfigure apache2 virtualhost\r\n================================\r\n\r\nCreate a domain file under /etc/apache2/sites-enabled.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo vi 002-mysite\r\n\r\n #mysite.net\r\n\r\n #pylons embeded mod_wsgi\r\n <VirtualHost *:80>\r\n        ServerName www.mysite.net\r\n        ServerAlias mysite.net\r\n        ServerAdmin admin@mysite.com\r\n\r\n\t# ReWrite URL to WWW\r\n        RewriteEngine On\r\n        RewriteCond %{HTTP_HOST} ^mysite.net\r\n        RewriteRule (.*) http://www.mysite.net$1 [R=301,L]\r\n\r\n        # Log Files\r\n        ErrorLog /var/log/apache2/error-mysite.log\r\n        CustomLog /var/log/apache2/access-mysite.log combined\r\n\r\n        # Setup mod_wsgi\r\n        WSGIScriptAlias / /absolute/path/to/pylowiki/dispatch.wsgi\r\n\r\n        <Directory /absolute/path/to/pylowiki>\r\n        Order deny,allow\r\n        Allow from all\r\n        </Directory>\r\n </VirtualHost>\r\n\r\nRestart the apache2 service:\r\n\r\n.. code-block:: apache\r\n\r\n  sudo service apache2 restart\r\n\r\n", "source_format": "rst", "revision_number": 22, "created": 1286637208000}, {"id": "f293a28d-2f95-11f1-a6cd-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: c\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nConfigure Pylowiki - prod.ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n\r\nOpen prod.ini for editing and make changes to reflect your environment.  Lots of choices. : )\r\n  \r\n\r\nConfigure mod_wsgi dispatch file\r\n=====================================\r\n\r\nFirst step is to create the mod_wsgi dispatch file.\r\n\r\nFrom the root directory of the Pylowiki project, create a *dispatch.wsgi* file with the following content:\r\n\r\n.. code-block:: python\r\n\r\n # Add the virtual Python environment site-packages directory to the path\r\n import sys\r\n sys.stdout = sys.stderr\r\n\r\n import site\r\n site.addsitedir('/absolute/path/to/virtpy/lib/python2.6/site-packages')\r\n\r\n # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages\r\n import os\r\n os.environ['PYTHON_EGG_CACHE'] = '/absolute/path/to/pylowiki/egg-cache'\r\n\r\n # Load the Pylons application\r\n from paste.deploy import loadapp\r\n application = loadapp('config:/absolute/path/to/pylowiki/prod.ini')\r\n\r\n\r\nConfigure apache2 virtualhost\r\n================================\r\n\r\nCreate a domain file under /etc/apache2/sites-enabled.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo vi 002-mysite\r\n\r\n #mysite.net\r\n\r\n #pylons embeded mod_wsgi\r\n <VirtualHost *:80>\r\n        ServerName www.mysite.net\r\n        ServerAlias mysite.net\r\n        ServerAdmin admin@mysite.com\r\n\r\n\t# ReWrite URL to WWW\r\n        RewriteEngine On\r\n        RewriteCond %{HTTP_HOST} ^mysite.net\r\n        RewriteRule (.*) http://www.mysite.net$1 [R=301,L]\r\n\r\n        # Log Files\r\n        ErrorLog /var/log/apache2/error-mysite.log\r\n        CustomLog /var/log/apache2/access-mysite.log combined\r\n\r\n        # Setup mod_wsgi\r\n        WSGIScriptAlias / /absolute/path/to/pylowiki/dispatch.wsgi\r\n\r\n        <Directory /absolute/path/to/pylowiki>\r\n        Order deny,allow\r\n        Allow from all\r\n        </Directory>\r\n </VirtualHost>\r\n\r\nRestart the apache2 service:\r\n\r\n.. code-block:: apache\r\n\r\n  sudo service apache2 restart\r\n\r\n", "source_format": "rst", "revision_number": 21, "created": 1286633964000}, {"id": "f2939b5a-2f95-11f1-9704-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: c\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nConfigure Pylowiki - prod.ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n\r\nOpen prod.ini for editing and make changes to reflect your environment.  Lots of choices. : )\r\n  \r\n\r\nConfigure mod_wsgi dispatch file\r\n=====================================\r\n\r\nFirst step is to create the mod_wsgi dispatch file.\r\n\r\nFrom the root directory of the Pylowiki project, create a *dispatch.wsgi* file with the following content:\r\n\r\n.. code-block:: python\r\n\r\n # Add the virtual Python environment site-packages directory to the path\r\n import sys\r\n sys.stdout = sys.stderr\r\n\r\n import site\r\n site.addsitedir('/absolute/path/to/virtpy/lib/python2.6/site-packages')\r\n\r\n # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages\r\n import os\r\n os.environ['PYTHON_EGG_CACHE'] = '/absolute/path/to/pylowiki/egg-cache'\r\n\r\n # Load the Pylons application\r\n from paste.deploy import loadapp\r\n application = loadapp('config:/absolute/path/to/pylowiki/prod.ini')\r\n\r\n\r\nConfigure apache2 virtualhost\r\n================================\r\n\r\nCreate a domain file under /etc/apache2/sites-enabled.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo vi 002-mysite\r\n\r\n #mysite.net\r\n\r\n #pylons embeded mod_wsgi\r\n <VirtualHost *:80>\r\n        ServerName www.mysite.net\r\n        ServerAlias mysite.net\r\n        ServerAdmin admin@mysite.com\r\n\r\n\t# ReWrite URL to WWW\r\n        RewriteEngine On\r\n        RewriteCond %{HTTP_HOST} ^mysite.net\r\n        RewriteRule (.*) http://www.mysite.net$1 [R=301,L]\r\n\r\n        # Log Files\r\n        ErrorLog /var/log/apache2/error-mysite.log\r\n        CustomLog /var/log/apache2/access-mysite.log combined\r\n\r\n        # Setup mod_wsgi\r\n        WSGIScriptAlias / /absolute/path/to/pylowiki/dispatch.wsgi\r\n\r\n        <Directory /absolute/path/to/pylowiki>\r\n        Order deny,allow\r\n        Allow from all\r\n        </Directory>\r\n </VirtualHost>\r\n\r\n", "source_format": "rst", "revision_number": 20, "created": 1286633916000}, {"id": "f29394b4-2f95-11f1-b8b7-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: c\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nConfigure Pylowiki - prod.ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n\r\nOpen prod.ini for editing and make changes to reflect your environment.  Lots of choices. : )\r\n  \r\n\r\nConfigure apache2 and mod_wsgi\r\n=====================================\r\n\r\nFirst step is to create the mod_wsgi dispatch file.\r\n\r\nFrom the root directory of the Pylowiki project, create a *dispatch.wsgi* file with the following content:\r\n\r\n.. code-block:: python\r\n\r\n # Add the virtual Python environment site-packages directory to the path\r\n import sys\r\n sys.stdout = sys.stderr\r\n\r\n import site\r\n site.addsitedir('/absolute/path/to/virtpy/lib/python2.6/site-packages')\r\n\r\n # Avoid ``[Errno 13] Permission denied: '/var/www/.python-eggs'`` messages\r\n import os\r\n os.environ['PYTHON_EGG_CACHE'] = '/absolute/path/to/pylowiki/egg-cache'\r\n\r\n # Load the Pylons application\r\n from paste.deploy import loadapp\r\n application = loadapp('config:/absolute/path/to/pylowiki/prod.ini')\r\n\r\n\r\n", "source_format": "rst", "revision_number": 19, "created": 1286633158000}, {"id": "f2938e06-2f95-11f1-a7c2-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: c\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nCreate a Pylowiki configuration .ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n\r\nOpen prod.ini for editing and make changes to reflect your environment.  Lots of choices. : )\r\n  \r\n\r\n", "source_format": "rst", "revision_number": 18, "created": 1286632545000}, {"id": "f293877d-2f95-11f1-a512-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: c\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nInstall your Pylowiki application\r\n========================================\r\n\r\nMake sure your currently inside your virtual python environment.  Your shell should look like this:\r\n\r\n.. code-block:: php\r\n\r\n  (virtpy)user@host$ python setup.py develop\r\n\r\nNotice the (virtpy)?  The above command will install Pylowiki and all its dependencies into your virtual pythons site-lib.\r\n\r\nCreate a Pylowiki configuration .ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n  \r\n\r\n", "source_format": "rst", "revision_number": 17, "created": 1286631959000}, {"id": "f29380b9-2f95-11f1-88bd-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the Pylowiki sourcecode\r\n=================================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFix file permissions\r\n=======================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: c\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nCreate a Pylowiki configuration .ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n  \r\n\r\n", "source_format": "rst", "revision_number": 16, "created": 1286631328000}, {"id": "f2937a2b-2f95-11f1-80ee-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFile permissions\r\n====================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: c\r\n\r\n  mkdir egg-cache data\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nCreate a Pylowiki configuration .ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n  \r\n\r\n", "source_format": "rst", "revision_number": 15, "created": 1286631250000}, {"id": "f293731f-2f95-11f1-acd3-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFile permissions\r\n====================\r\n\r\nThe web server account only needs access to a few directories.  All the other files may be owned by your id.\r\n\r\nRun the following commands from the root of your Pylowiki project directory to correct permissions.\r\n\r\n\r\n.. code-block:: c\r\n\r\n  sudo chgrp -R www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chgrp -R www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chgrp -R www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nCreate a Pylowiki configuration .ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n  \r\n\r\n", "source_format": "rst", "revision_number": 14, "created": 1286631068000}, {"id": "f2936cc1-2f95-11f1-870a-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n...................................\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFile permissions\r\n====================\r\n\r\nDo the following commands from the root pylowiki project directory, user should be replaced with your unix id.\r\n\r\n.. code-block:: c\r\n\r\n  sudo chown -R user:www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chown -R user:www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chown -R user:www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nCreate a Pylowiki configuration .ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n  \r\n\r\n", "source_format": "rst", "revision_number": 13, "created": 1286630503000}, {"id": "f2936635-2f95-11f1-851f-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n========================================\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\n.. contents::\r\n\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFile permissions\r\n====================\r\n\r\nDo the following commands from the root pylowiki project directory, user should be replaced with your unix id.\r\n\r\n.. code-block:: c\r\n\r\n  sudo chown -R user:www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chown -R user:www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chown -R user:www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\nCreate a Pylowiki configuration .ini\r\n========================================\r\n\r\nThe following command should be run in the root of your pylowiki project.  This will create a configuration ini named prod.ini:\r\n\r\n.. code-block:: apache\r\n\r\n  paster make-config Pylowiki prod.ini\r\n  \r\n\r\n", "source_format": "rst", "revision_number": 12, "created": 1286630441000}, {"id": "f2935f9b-2f95-11f1-9937-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n========================================\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFile permissions\r\n====================\r\n\r\nDo the following commands from the root pylowiki project directory, user should be replaced with your unix id.\r\n\r\n.. code-block:: c\r\n\r\n  sudo chown -R user:www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chown -R user:www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chown -R user:www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\n", "source_format": "rst", "revision_number": 11, "created": 1286630003000}, {"id": "f29358a7-2f95-11f1-96f3-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n========================================\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFile permissions\r\n====================\r\n\r\nDo the following commands from the root pylowiki project directory, user should be replaced with your unix id.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo chown -R user:www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chown -R user:www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chown -R user:www-data data\r\n  sudo chmod -R 774 data\r\n\r\nGet a Pylons virtual environment\r\n====================================\r\n\r\nOfficial Pylons setup notes: http://pylonshq.com/docs/en/1.0/gettingstarted/\r\n\r\n.. code-block:: apache \r\n\r\n wget http://www.pylonshq.com/download/1.0/go-pylons.py\r\n\r\n python go-pylons.py virtpy\r\n\r\nTo enable the virtual environment run:\r\n\r\n.. code-block:: apache \r\n\r\n source virtpy/bin/activate\r\n \r\n\r\n", "source_format": "rst", "revision_number": 10, "created": 1286629828000}, {"id": "f29351e7-2f95-11f1-9923-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n========================================\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* on ubuntu linux\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFile permissions\r\n====================\r\n\r\nDo the following commands from the root pylowiki project directory, user should be replaced with your unix id.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo chown -R user:www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chown -R user:www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chown -R user:www-data data\r\n  sudo chmod -R 774 data\r\n\r\n\r\n", "source_format": "rst", "revision_number": 9, "created": 1286617386000}, {"id": "f2934aa7-2f95-11f1-b1d1-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n========================================\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFile permissions\r\n====================\r\n\r\nDo the following commands from the root pylowiki project directory, user should be replaced with your unix id.\r\n\r\n.. code-block:: apache\r\n\r\n  sudo chown -R user:www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chown -R user:www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chown -R user:www-data data\r\n  sudo chmod -R 774 data\r\n\r\n\r\n", "source_format": "rst", "revision_number": 8, "created": 1286617327000}, {"id": "f29343e1-2f95-11f1-9d93-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n========================================\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFile permissions\r\n====================\r\n\r\nDo the following commands from the root pylowiki project directory\r\n\r\n.. code-block:: apache\r\n\r\n  sudo chown -R user:www-data pylowiki/public/attachment\r\n  sudo chmod -R 774 pylowiki/public/attachment\r\n\r\n  sudo chown -R user:www-data egg-cache\r\n  sudo chmod -R 774 egg-cache\r\n\r\n  sudo chown -R user:www-data data\r\n  sudo chmod -R 774 data\r\n\r\n\r\n", "source_format": "rst", "revision_number": 7, "created": 1286565734000}, {"id": "f2933d2c-2f95-11f1-8a97-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n========================================\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n\r\nFile permissions\r\n====================\r\n\r\nDo the following commands from the root pylowiki project directory\r\n\r\n.. code-block:: apache\r\n\r\n  sudo chown -R www-data:www-data pylowiki/public/attachment\r\n  sudo chmod -R 744 pylowiki/public/attachment\r\n\r\n  sudo chown -R www-data:www-data egg-cache\r\n  sudo chmod -R 744 egg-cache\r\n\r\n  sudo chown -R www-data:www-data data\r\n  sudo chmod -R 744 data\r\n\r\n\r\n", "source_format": "rst", "revision_number": 6, "created": 1285883619000}, {"id": "f2933659-2f95-11f1-9fe0-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n========================================\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  \r\n\r\nIf you are interested in running a demo or local version of pylowiki, check out the `minimal pylowiki setup instructions </pylowiki#installation-and-setup>`_.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n", "source_format": "rst", "revision_number": 5, "created": 1284929337000}, {"id": "f2932f0c-2f95-11f1-b70e-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n========================================\r\n\r\nThis page will outline the steps needed to setup a production pylowiki site.  If you are interested in running a demo or local PC version of pylowiki, check out `minimal pylowiki install instructions </pylowiki#install>`_\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n", "source_format": "rst", "revision_number": 4, "created": 1284929161000}, {"id": "f293269f-2f95-11f1-a373-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n========================================\r\n\r\nThis page will outline the steps needed to setup a pylowiki site.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode is hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n", "source_format": "rst", "revision_number": 3, "created": 1284927520000}, {"id": "f2931eb9-2f95-11f1-8512-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n========================================\r\n\r\nThis page will outline the steps needed to setup a pylowiki site.\r\n\r\nIn this tutorial we will be configuring pylowiki to run:\r\n\r\n* as a wsgi application\r\n* with an apache2 webserver\r\n* in a python virtualenv\r\n* with a mysql database backend\r\n\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite\r\n\r\nNow you should have the sourcecode in local filesystem.  You might want to come up with a workflow to maintain your changes and still accept revisions from the upstream pylowiki repository.  I'll leave that up to you.\r\n\r\n", "source_format": "rst", "revision_number": 2, "created": 1284927461000}, {"id": "f2931382-2f95-11f1-9e7c-e86a64d24d78", "node_id": "f2924939-2f95-11f1-8a03-e86a64d24d78", "user_id": "edc3f576-2f95-11f1-900f-e86a64d24d78", "author": "foxhop", "data": "Setting up a pylowiki site\r\n========================================\r\n\r\nThis page will outline the steps needed to setup a pylowiki site.\r\n\r\nGet the sourcecode\r\n=========================\r\n\r\nThe pylowiki sourcecode hosted at bitbucket.org.  You will need mecurial (hg) revision control to download the source.\r\n\r\nFor debian or ubuntu\r\n\r\n.. code-block:: shell\r\n\r\n    sudo apt-get install mercurial\r\n\r\nOnce you have mercurial you need to clone the pylowiki sourcecode\r\n\r\n.. code-block:: shell\r\n    \r\n    hg clone http://bitbucket.org/russellballestrini/pylowiki\r\n\r\n    mv pylowiki mysite", "source_format": "rst", "revision_number": 1, "created": 1284926956000}], "count": 35}