{"id":89,"date":"2021-01-29T13:15:04","date_gmt":"2021-01-29T13:15:04","guid":{"rendered":"https:\/\/ap.pstek.nl\/pstek_wp\/blog\/?p=89"},"modified":"2022-06-21T03:01:08","modified_gmt":"2022-06-21T03:01:08","slug":"installing-lime-survey-on-an-ubuntu-20-04-vps","status":"publish","type":"post","link":"https:\/\/ap.pstek.nl\/pstek_wp\/2021\/installing-lime-survey-on-an-ubuntu-20-04-vps\/","title":{"rendered":"Installing Lime Survey on an Ubuntu 20.04 VPS"},"content":{"rendered":"\n
This tutorial mainly includes links to other good tutorials and takes you through the entire process from first accessing your virtual private server (VPS) with an Ubuntu 20.04 operating system to having a fully operational installation of Lime Survey. It should serve you well in any Ubuntu-situation and is based on the tutorials I used, plus some free additional tops and commentary. The whole process should take you about 2 hours, assuming you do it peacefully with a bit of multi-tasking. Step 3 takes by far the longest.<\/p>\n\n\n\n
STEP 0:<\/strong> Access your server using an SSH connection. If you have a Windows operating system, download PuTTY<\/a>. In Linux you can just type STEP 1:<\/strong> Its good safety practice to not login to your VPS with root access but to instead create a sudo user<\/a>. So do that first.<\/p>\n\n\n\n STEP 2: <\/strong>To install Lime Survey you need to install a so-called LAMP stack: L<\/strong>inux, A<\/strong>pache, M<\/strong>ySQL and P<\/strong>HP, the basic code stock on which the Lime Survey installation sits. You can follow the following LAMP tutorial<\/a>, however be sure to install a slightly different collection of PHP-scripts by running:<\/p>\n\n\n\n STEP 3:<\/strong> You can download<\/a> the latest community edition stable (LTS) version of Lime Survey from the official community website. I’ve found it simpler to just download to my PC, unzip everything and then upload via SFTP (with the same login credentials as you use for SSH to access the VPS). Only the uploading can take quite some time (around 1 hour in my experience, just let it do its thing). Place the Lime Survey files in the directory of the virtual host that you made in step 2 (e.g. STEP 4:<\/strong> You need to take a few more steps before Lime Survey is ready to run. (As a reference, there is also an official installation manual<\/a>) First of all certain folders need to be fully accessible to the Apache web server. You can do this with the following commands:<\/p>\n\n\n\n Its also wise to create a MySQL user specifically for Lime Survey, e.g. STEP 5:<\/strong> Its important to have an SSL certificate for your domain so that the connection with the survey-taker and other users is encrypted. You can get it for free via Let’s Encrypt<\/a>, a service of the non-profit Internet Security Research Group (ISRG). A tutorial<\/a> is available. In case STEP 6:<\/strong> OK, now it’s time for the real test. If you access your Lime Survey installation for the first time, it will self-check that everything is correctly configured. You will need to provide the MySQL user details (step 4) and the rest is pretty self-explanatory. Woohoo, well done! Ypu’ve installed your own Lime Survey server!<\/p>\n","protected":false},"excerpt":{"rendered":" This tutorial mainly includes links to other good tutorials and takes you through the entire process from first accessing your virtual private server (VPS) with an Ubuntu 20.04 operating system to having a fully operational installation of Lime Survey. It should serve you well in any Ubuntu-situation and is based on the tutorials I used, […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85],"tags":[26,31,32,34,87,51,58],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-tutorial","tag-installation","tag-lets-encrypt","tag-lime-survey","tag-linux","tag-software","tag-ssl","tag-vps"],"_links":{"self":[{"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/posts\/89","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":1,"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":278,"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/posts\/89\/revisions\/278"}],"wp:attachment":[{"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ap.pstek.nl\/pstek_wp\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}ssh username@servername<\/code>.<\/p>\n\n\n\n
sudo apt install php php-cli php-common php-mbstring php-xml php-mysql php-gd php-zip php-ldap php-imap<\/code><\/pre>\n\n\n\n
\/var\/www\/survey<\/code>)<\/p>\n\n\n\n
sudo chown -R www-data:www-data \/var\/www\/survey\/tmp
sudo chown -R www-data:www-data \/var\/www\/survey\/upload
sudo chown -R www-data:www-data \/var\/www\/survey\/application\/config<\/code><\/pre>\n\n\n\nlimeuser<\/code>. Note down the user name and password for use in step 6.<\/p>\n\n\n\n
sudo mysql\nCREATE USER 'limeuser'@'localhost' IDENTIFIED BY 'DIFFICULTPA$$WORD';\nGRANT SELECT, CREATE, INSERT, UPDATE, DELETE, ALTER, DROP, INDEX ON lime. * TO 'limeuser'@'localhost';<\/code><\/pre>\n\n\n\n
certbot<\/code> package is not installed on the VPS, use this code to install it:<\/p>\n\n\n\n
sudo apt install certbot python3-certbot-apache
sudo certbot --apache<\/code><\/pre>\n\n\n\n