Step 1: Platform preparation
Get to the point where you can ssh to the server as a non-root user and use sudo to gain root permissions.
First step with any new server is to update the already installed system libraries:
sudo apt-get update sudo apt-get upgrade
Then, install the platform’s build kit, nginx, supervisor, and python2.7
sudo apt-get install build-essential libjpeg62-dev libxslt1-dev libxml2-dev libbz2-dev supervisor nginx sudo apt-get install python2.7 python2.7-dev python-setuptools python-dev libssl-dev
Install optional system packages for the handling of PDF and Office files. Can be omitted:
sudo apt install libreadline-dev wv poppler-utils
And for streaming audio and video as well as recording and conversion:
sudo add-apt-repository ppa:jonathonf/ffmpeg-3
Step 2: Creating a new user
Now we will create a new user to do the installation
sudo adduser <newusername>
sudo visudo
To give the administrator permissions to the new user, include the line “root ALL=(ALL:ALL) ALL” below “root ALL=(ALL:ALL) ALL”.
root ALL=(ALL:ALL) ALL <newusername> ALL=(ALL:ALL) ALL
If the user name was wrong, you can delete it with
deluser <newusername>
After you created the new user, switch to it:
su – <newusername>
Em home/utopicastudios, criar a pasta
Step 3: Installing Plone 5.1.2
Creating a folder for the installation (Plone/Plone 5.1.2)
sudo mkdir Plone sudo chmod 777 -R Plone cd Plone sudo mkdir Plone 5.1.2 sudo chmod 777 -R Plone 5.1.2
Download Plone 5.1.2
wget --no-check-certificate https://launchpad.net/plone/5.1/5.1.2/+download/Plone-5.1.2-UnifiedInstaller.tgz
Unzip the file:
tar -zxvf Plone-5.1.2-UnifiedInstaller.tgz
Run the installation:
cd Plone-5.1.2-UnifiedInstaller ./install.sh standalone --target=/home/utopicastudios/Plone/Plone-5.1.2
Keep in a safe place the username and tue password that will appear, for exemple:
Username: admin Password: afAfk14lASsf89
Delete the installation files:
sudo rm Plone-5.1.2-UnifiedInstaller.tgz sudo rm Plone-5.1.2-UnifiedInstaller/ -R
Sources
Installing Plone for Production on Ubuntu (Plone Documentation)
How To Add and Delete Users on an Ubuntu 14.04 VPS (DigitalOcean)