{"id":17916,"date":"2015-11-12T14:10:26","date_gmt":"2015-11-12T20:10:26","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=17916"},"modified":"2022-12-16T04:57:17","modified_gmt":"2022-12-16T10:57:17","slug":"install-plone-with-nginx-on-a-debian-8-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-plone-with-nginx-on-a-debian-8-vps\/","title":{"rendered":"Install Plone with Nginx on a Debian 8 VPS"},"content":{"rendered":"
In this article we will cover the steps needed for installing Plone CMS with Nginx on a Debian 8 VPS<\/a>.<\/p>\n Plone is a free and popular open source content management system based on the Python programming language. It is built on top of the Zope application server and shares many similarities with WordPress.<\/p>\n Plone is positioned as an “Enterprise CMS” and it is very easy and flexible to use. Using Plone you can design, create and manage content rich websites. Plone is commonly used for intranets and as a groupware collaboration tool or a document publishing system.<\/p>\n <\/p>\n High-profile public sector Plone users include the U.S. Federal Bureau of Investigation, Brazilian Government, United Nations, City of Bern (Switzerland), etc…<\/p>\n Please check Plone’s official documentation<\/a> for more information.<\/p>\n Let’s start.<\/p>\n Login to your Linux VPS<\/a> via SSH<\/p>\n You can check whether you have the proper version of Debian installed on our server with the below command:<\/p>\n Which should give you the underneath output:<\/p>\n UPDATE THE SYSTEM<\/strong><\/p>\n Make sure your server is fully up to date using:<\/p>\n Then, install some much needed dependencies and programs:<\/p>\n Also, it is desirable to use system packages for common libraries because the installer will use its own. Therefore execute the following command:<\/p>\n INSTALL PLONE<\/strong><\/p>\n Enter the \/opt directory where you will download the latest Plone version which was 5.0 when this tutorial was written.<\/p>\n Unpack the downloaded archive:<\/p>\n Enter the unpacked directory:<\/p>\n Before installing Plone, you may want to check the options that are available for the installation. Enter the below command to check them:<\/p>\n Once you ready to proceed with the installation, run the \u2018install.sh\u2019 script to install Plone. Please note that the sudo utility is required for a server-mode install, so use sudo to run the install script:<\/p>\n Once the installation is completed you should get the following output:<\/p>\n The password, of course will be different than the one written above. If you somehow missed and didn’t save the admin pass, you can check it from the \/opt\/plone\/zinstance\/adminPassword.txt file.<\/p>\n INSTALL NGINX<\/strong><\/p>\n Next you need to install the Nginx web server and setup a configuration file so you can run Plone by visiting your domain.<\/p>\n Install, start and enable Nginx to start on boot with the three below commands:<\/p>\n Now, open a new Nginx configuration file.<\/p>\n Paste the following:<\/p>\n Do not forget to replace your_domain with your actual domain.<\/p>\n Enable the new configuration by creating a sym link:<\/p>\n Test the Nginx configuration:<\/p>\n If everything is OK, you will get:<\/p>\n Restart Nginx:<\/p>\n Last thing you need to do is to start Plone. To do so, please run the below command:<\/p>\n You should now open your favorite browser and navigate to your_domain. You will be welcomed with the page as shown in the picture below.<\/p>\n <\/p>\n <\/p>\n Congratulations. If you followed our steps closely, you have successfully installed Plone with Nginx on your Debian 8 VPS<\/a>.<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services in which case you can simply ask our expert Linux admins to install Plone for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" In this article we will cover the steps needed for installing Plone CMS with Nginx on a Debian 8 VPS. … <\/p>\n# ssh root@server_ip<\/pre>\n
# lsb_release -a<\/pre>\n
Distributor ID: Debian\r\nDescription: Debian GNU\/Linux 8.2 (jessie)\r\nRelease: 8.2\r\nCodename: jessie<\/pre>\n
# apt-get update && apt-get upgrade -y<\/pre>\n
# apt-get install sudo build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev zlib1g-dev python-setuptools python-dev<\/pre>\n
# apt-get install libjpeg62-turbo-dev libreadline-gplv2-dev python-imaging<\/pre>\n
# cd \/opt\r\n\r\n# wget --no-check-certificate https:\/\/launchpadlibrarian.net\/219047975\/Plone-5.0-UnifiedInstaller.tgz<\/pre>\n
# tar -xvzf Plone-5.0-UnifiedInstaller.tgz<\/pre>\n
# cd Plone-5.0-UnifiedInstaller<\/pre>\n
# .\/install.sh --help<\/pre>\n
# sudo .\/install.sh standalone<\/pre>\n
#####################################################################\r\n\r\n###################### Installation Complete ######################\r\n\r\nPlone successfully installed at \/opt\/plone\r\nSee \/opt\/plone\/zinstance\/README.html\r\nfor startup instructions.\r\n\r\nUse the account information below to log into the Zope Management Interface\r\nThe account has full 'Manager' privileges.\r\n\r\n Username: admin\r\n Password: 6NaLOcpsNExj\r\n\r\nThis account is created when the object database is initialized. If you change\r\nthe password later (which you should!), you'll need to use the new password.\r\n\r\nUse this account only to create Plone sites and initial users. Do not use it\r\nfor routine login or maintenance.- If you need help, ask in IRC channel #plone on irc.freenode.net. - The live support channel also exists at http:\/\/plone.org\/chat - You can also ask for help on https:\/\/community.plone.org - Submit feedback and report errors at https:\/\/github.com\/plone\/Products.CMFPlone\/issues (For install problems, https:\/\/github.com\/plone\/Installers-UnifiedInstaller\/issues)<\/pre>\n
# apt-get install nginx\r\n\r\n# systemctl start nginx\r\n\r\n# systemctl enable nginx<\/pre>\n
# nano \/etc\/nginx\/sites-available\/plone<\/pre>\n
upstream plone {\r\n server 127.0.0.1:8080;\r\n}\r\n\r\nserver {\r\n listen 80;\r\n server_name your_domain;\r\n\r\n access_log \/var\/log\/nginx\/plone.access.log;\r\n error_log \/var\/log\/nginx\/plone.error.log;\r\n\r\n proxy_buffers 16 64k;\r\n proxy_buffer_size 128k;\r\n}\r\n\r\nlocation \/ {\r\n proxy_pass http:\/\/plone;\r\n proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;\r\n proxy_redirect off;\r\n\r\n proxy_set_header Host $host;\r\n proxy_set_header X-Real-IP $remote_addr;\r\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n proxy_set_header X-Forwarded-Proto https;\r\n }\r\n\r\n}<\/pre>\n
# ln -s \/etc\/nginx\/sites-available\/plone \/etc\/nginx\/sites-enabled\/<\/pre>\n
# service nginx configtest<\/pre>\n
[ ok ] Testing nginx configuration:.<\/pre>\n
# service nginx reload<\/pre>\n
# sudo -u plone_daemon \/opt\/plone\/zinstance\/bin\/plonectl start<\/pre>\n