{"id":227,"date":"2011-10-03T12:54:34","date_gmt":"2011-10-03T11:54:34","guid":{"rendered":"http:\/\/www.carinato.net\/?p=227"},"modified":"2011-10-03T12:54:34","modified_gmt":"2011-10-03T11:54:34","slug":"installazione-di-plone-4-su-debian-6-0-2","status":"publish","type":"post","link":"https:\/\/carinato.com\/?p=227","title":{"rendered":"Installazione di Plone 4.1 su Debian 6.0.2"},"content":{"rendered":"<p>Ecco i passi da fare per installare Plone 4 su una distribuzione Debian 6.0.2 oppure Ubuntu 10.04LTS.<\/p>\n<p>L&#8217;installazione prevede anche l&#8217;installazione di python in una directory utente e senza necessita&#8217; di diritti di root<\/p>\n<p>Gli unici comandi da eseguire come utente root sono i seguenti<\/p>\n<pre>aptitude update\n\naptitude upgrade\n\naptitude install zlib1g-dev libjpeg-dev build-essential libssl-dev\n\n# la seguente linea e' opzionale\naptitude install ssh sudo screen subversion\n\n# l'installazione dei 2 pacchetti seguenti puo' tornar utile per l'installazione di alcuni prodotti Plone:\naptitude install libxml2-dev libxslt-dev\n\nadduser plone\n\nsu - plone<\/pre>\n<p>Ecco dunque tutti i passaggi da fare con l&#8217;utente appena creato <strong>plone<\/strong><\/p>\n<pre>mkdir plone4; cd plone4<\/pre>\n<p>Scarico Python, Setuptools e Pip<\/p>\n<pre>wget http:\/\/www.python.org\/ftp\/python\/2.7.1\/Python-2.7.1.tgz\nwget http:\/\/pypi.python.org\/packages\/source\/s\/setuptools\/setuptools-0.6c11.tar.gz#md5=7df2a529a074f613b509fb44feefe74e\nwget http:\/\/pypi.python.org\/packages\/source\/p\/pip\/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49<\/pre>\n<address><span style=\"color: #ff0000;\">ATTENZIONE: Plone 4.1 non supporta completamente Python 2.7.x. Per quel che ho provato io funziona tutto, ma ufficialmente non e&#8217; supportato Python 2.7.x <\/span><\/address>\n<address><span style=\"color: #ff0000;\">La scelta piu&#8217; cautelare Per Plone 4.1 e&#8217; Python 2.6: http:\/\/www.python.org\/ftp\/python\/2.6.7\/Python-2.6.7.tgz<\/span><\/address>\n<p>Scompatto tutti i pacchetti<\/p>\n<pre>for i in `ls -1 *gz `; do tar xvzf $i; done<\/pre>\n<p>Creo il percorso dove andr\u00f2 ad installare Python<\/p>\n<pre>mkdir -p python\/2.7.1<\/pre>\n<pre>cd Python-2.7.1<\/pre>\n<p>Configuro i sorgenti di Python per essere installati nel percorso definito sopra<\/p>\n<pre>.\/configure --prefix=\"\/home\/plone\/plone4\/python\/2.7.1\"<\/pre>\n<pre>make<\/pre>\n<pre>make install<\/pre>\n<p>Verifico che python sia installato con il supporto ssl:<\/p>\n<pre>$ ..\/python\/2.7.1\/bin\/python\nPython 2.7.1 (r...........)\n[GCC 4.4.5] on linux2\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n&gt;&gt;&gt; import socket\n&gt;&gt;&gt; socket.ssl\n<strong>&lt;function ssl at 0xb768ac34&gt;<\/strong>\n&gt;&gt;&gt;<\/pre>\n<p>Se ottengo un risultato simile a quello sopra posso proseguire tranquillo, esco dalla console python con CTRL+d<\/p>\n<p>Installo Setuptools e Pip<\/p>\n<pre>cd ..\/setuptools-0.6c11\/<\/pre>\n<pre>..\/python\/2.7.1\/bin\/python2.7 setup.py install<\/pre>\n<pre>cd ..\/pip-1.0.2\/<\/pre>\n<pre>..\/python\/2.7.1\/bin\/python2.7 setup.py install<\/pre>\n<pre>cd ..<\/pre>\n<p>Utilizzo Pip per installare ZopeSkel<\/p>\n<pre>.\/python\/2.7.1\/bin\/pip install zopeskel==2.21.2<\/pre>\n<pre>.\/python\/2.7.1\/bin\/paster create --list-templates<\/pre>\n<p>Creo il buildout di Plone<\/p>\n<pre>.\/python\/2.7.1\/bin\/paster create -t plone4_buildout<\/pre>\n<pre>Selected and implied templates:\nZopeSkel#plone4_buildout\u00a0 A buildout for Plone 4 developer installation\nEnter project name: instance\nVariables:\n egg:\u00a0\u00a0\u00a0\u00a0\u00a0 instance\n package:\u00a0 instance\n project:\u00a0 instance\n**************************************************************************\n**\u00a0\u00a0 *** NOTE: You probably don't want to use this template!\n**\u00a0 Since Plone 3.1, the preferred way to get a buildout-based setup\n**\u00a0 for Plone is to use the standard installer for your operating\n**\u00a0 system (the Windows installer, the Mac installer, or the Unified\n**\u00a0 Installer for Linux\/Unix\/BSD). These give you a best-practice,\n**\u00a0 widely-used setup with an isolated Python and a well-documented\n**\u00a0 buildout. This template is here for older versions of Plone and\n**\u00a0 for experts who explicitly want a raw, non-installer-based\n**\u00a0 installation.\n**\u00a0 (This message is particularly aimed at people following out-of-\n**\u00a0 date books\/documentation that suggest this is the right way to get\n**\u00a0 a Plone-based buildout. This is no longer the case.)\n**************************************************************************\nExpert Mode? (What question mode would you like? (easy\/expert\/all)?) ['easy']:\nPlone Version (Plone version # to install) ['4.0.5']: 4.1\nCreating template plone4_buildout\nCreating directory .\/instance\n Copying README.txt to .\/instance\/README.txt\n Copying bootstrap.py to .\/instance\/bootstrap.py\n Copying buildout.cfg_tmpl to .\/instance\/buildout.cfg\n Recursing into src\n Creating .\/instance\/src\/\n Copying README.txt to .\/instance\/src\/README.txt\n Recursing into var\n Creating .\/instance\/var\/\n Copying README.txt to .\/instance\/var\/README.txt\n**************************************************************************\n**\u00a0\u00a0 Generation finished.\n**\u00a0 You probably want to run python bootstrap.py and then edit\n**\u00a0 buildout.cfg before running bin\/buildout -v\".\n**\u00a0 See README.txt for details.\n**************************************************************************<\/pre>\n<pre>cd instance<\/pre>\n<pre>..\/python\/2.7.1\/bin\/python bootstrap.py<\/pre>\n<pre>.\/bin\/buildout<\/pre>\n<p>Avvio l&#8217;istanza in modalit\u00e0 foreground<\/p>\n<pre>.\/bin\/instance fg<\/pre>\n<p>Per avviarla in background utilizzer\u00f2 poi<\/p>\n<pre>.\/bin\/instance start<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ecco i passi da fare per installare Plone 4 su una distribuzione Debian 6.0.2 oppure Ubuntu 10.04LTS. L&#8217;installazione prevede anche l&#8217;installazione di python in una directory utente e senza necessita&#8217; di diritti di root Gli unici comandi da eseguire come utente root sono i seguenti aptitude update aptitude upgrade aptitude install zlib1g-dev libjpeg-dev build-essential libssl-dev [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,14],"tags":[],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-linux","category-plone-2"],"_links":{"self":[{"href":"https:\/\/carinato.com\/index.php?rest_route=\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/carinato.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/carinato.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/carinato.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/carinato.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=227"}],"version-history":[{"count":0,"href":"https:\/\/carinato.com\/index.php?rest_route=\/wp\/v2\/posts\/227\/revisions"}],"wp:attachment":[{"href":"https:\/\/carinato.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/carinato.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/carinato.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}