{"id":6231,"date":"2018-08-15T16:27:51","date_gmt":"2018-08-15T12:27:51","guid":{"rendered":"https:\/\/www.howtoforge.com\/tutorial\/how-to-install-limesurvey-on-ubuntu-1804\/"},"modified":"2018-08-15T16:27:51","modified_gmt":"2018-08-15T12:27:51","slug":"how-to-install-limesurvey-on-ubuntu-18-04-lts","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/how-to-install-limesurvey-on-ubuntu-18-04-lts\/","title":{"rendered":"How to Install LimeSurvey on Ubuntu 18.04 LTS"},"content":{"rendered":"<p>LimeSurvey is a free and an open source online survey application written in PHP and uses a MySQL or PostgreSQL database. LimeSurvey allow us to create, develop and publish online surveys and collect responses from them, without doing any coding and scripting.<\/p>\n<p>In this tutorial, we will learn how to install and configure LimeSurvey on Ubuntu 18.04 LTS (Bionic Beaver) server.<\/p>\n<h2 id=\"requirements\">Requirements<\/h2>\n<ul>\n<li>A server running Ubuntu 18.04.<\/li>\n<li>A non-root user with sudo privileges.<\/li>\n<\/ul>\n<h2 id=\"install-lamp-server\">Install LAMP Server<\/h2>\n<p>First, install Apache web server and MariaDB server with the following command:<\/p>\n<p class=\"command\">sudo apt-get install apache2 mariadb-server -y<\/p>\n<p>Next, you will need to add ondrej repository to install the latest version of PHP. You can add the repository with the following command:<\/p>\n<p class=\"command\">sudo apt-get install software-properties-common<br \/>sudo add-apt-repository ppa:ondrej\/php -y<\/p>\n<p>Once the repository is installed, update the repository and install PHP along with all the dependencies with the following command:<\/p>\n<p class=\"command\">sudo apt-get update -y<br \/>sudo apt-get install php7.2 php7.2-cli php7.2-common php7.2-mbstring php7.2-xml php7.2-mysql php7.2-gd php7.2-zip php7.2-ldap php7.2-imap unzip wget curl<\/p>\n<p>Once all the packages are installed, start Apache and MariaDB service and enable them to start on boot by running the following command:<\/p>\n<p class=\"command\">sudo systemctl start apache2<br \/>sudo systemctl enable apache2<br \/>sudo systemctl start mysql<br \/>sudo systemctl enable mysql<\/p>\n<h2 id=\"configure-mariadb\">Configure MariaDB<\/h2>\n<p>Before configuring MariaDB database, secure the MariaDB using the following command:<\/p>\n<p class=\"command\">sudo mysql_secure_installation<\/p>\n<p>Answer all the questions as shown below:<\/p>\n<pre> Enter current password for root (enter for none):&#13; Set root password? [Y\/n]: N&#13; Remove anonymous users? [Y\/n]: Y&#13; Disallow root login remotely? [Y\/n]: Y&#13; Remove test database and access to it? [Y\/n]: Y&#13; Reload privilege tables now? [Y\/n]: Y&#13;\n<\/pre>\n<p>Once the MariaDB is secured, log in to MariaDB shell:<\/p>\n<p class=\"command\">mysql -u root -p<\/p>\n<p>Enter your root password when prompt, then create a database and user for LimeSurvey:<\/p>\n<p class=\"command\">-MariaDB [(none)]&gt;CREATE DATABASE limesurvey_db;<br \/>MariaDB [(none)]&gt;GRANT ALL PRIVILEGES ON limesurvey_db.* TO &#8216;limesurvey_user&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;<br \/>MariaDB [(none)]&gt;FLUSH PRIVILEGES;<br \/>MariaDB [(none)]&gt;\\q<\/p>\n<h2 id=\"install-limesurvey\">Install LimeSurvey<\/h2>\n<p>First, you will need to download the latest version of LimeSurvey from their official website. You can download it with the following command:<\/p>\n<p class=\"command\">wget https:\/\/download.limesurvey.org\/latest-stable-release\/limesurvey3.14.3+180809.tar.gz<\/p>\n<p>Once the download is completed, extract the downloaded file with the following command:<\/p>\n<p class=\"command\">tar -xvzf limesurvey3.14.3+180809.tar.gz<\/p>\n<p>Next, copy the extracted directory to the Apache and web root directory and provide necessary permissions:<\/p>\n<p class=\"command\">sudo cp -r limesurvey \/var\/www\/html\/<br \/>sudo chown www-data:www-data -R \/var\/www\/html\/limesurvey<\/p>\n<p>Next, create an apache virtual host for LimeSurvey:<\/p>\n<p class=\"command\">sudo nano \/etc\/apache2\/sites-available\/limesurvey.conf<\/p>\n<p>Add the following lines:<\/p>\n<pre>&lt;VirtualHost *:80&gt;&#13;\nServerAdmin <a href=\"https:\/\/www.howtoforge.com\/cdn-cgi\/l\/email-protection\" class=\"__cf_email__\" data-cfemail=\"94f5f0f9fdfad4f1ecf5f9e4f8f1baf7fbf9\" target=\"_blank\" rel=\"noopener\">[email\u00a0protected]<\/a>&#13;\nDocumentRoot \/var\/www\/html\/limesurvey\/&#13;\nServerName example.com&#13;\n&lt;Directory \/var\/www\/html\/limesurvey\/&gt;&#13;\nOptions FollowSymLinks&#13;\nAllowOverride All&#13;\n&lt;\/Directory&gt;&#13;\nErrorLog \/var\/log\/apache2\/lime-error_log&#13;\nCustomLog \/var\/log\/apache2\/lime-access_log common&#13;\n&lt;\/VirtualHost&gt;&#13;\n<\/pre>\n<p>Save the file, then enable virtual host with the following command:<\/p>\n<p class=\"command\">sudo a2ensite limesurvey<\/p>\n<p>Finally, restart the Apache web server to make the changes:<\/p>\n<p class=\"command\">sudo systemctl restart apache2<\/p>\n<h2 id=\"access-limesurvey\">Access LimeSurvey<\/h2>\n<p>Now, open your web browser and type the URL <strong>http:\/\/example.com<\/strong>. You will be redirected to the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page1\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_limesurvey_on_ubuntu_1804\/big\/page1.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts.png\" alt=\"Welcome to LimeSurvey installer\" width=\"550\" height=\"283\" title=\"\"><\/a><\/p>\n<p>Now, click on the <strong>Start Installation<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page2\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_limesurvey_on_ubuntu_1804\/big\/page2.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts-1.png\" alt=\"Start installation\" width=\"550\" height=\"299\" title=\"\"><\/a><\/p>\n<p>Now, accept the License agreement and click on the <strong>I accept<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page3\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_limesurvey_on_ubuntu_1804\/big\/page3.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts-2.png\" alt=\"Pre-installation check\" width=\"550\" height=\"305\" title=\"\"><\/a><\/p>\n<p>Make sure all the requirements are completed, then click on the <strong>Next<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page4\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_limesurvey_on_ubuntu_1804\/big\/page4.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts-3.png\" alt=\"Database configuration\" width=\"550\" height=\"322\" title=\"\"><\/a><\/p>\n<p>Here, provide your database details, then click on the <strong>Next<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page5\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_limesurvey_on_ubuntu_1804\/big\/page5.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts-4.png\" alt=\"Database settings\" width=\"550\" height=\"312\" title=\"\"><\/a><\/p>\n<p>Now, click on the <strong>Populate database<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page6\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_limesurvey_on_ubuntu_1804\/big\/page6.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts-5.png\" alt=\"Populate database with data\" width=\"550\" height=\"320\" title=\"\"><\/a><\/p>\n<p>Here, provide your admin username and password, site name, email address, then click on the <strong>Next<\/strong> button. Once the installation has been completed, you should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page7\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_limesurvey_on_ubuntu_1804\/big\/page7.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts-6.png\" alt=\"Installation successful\" width=\"550\" height=\"253\" title=\"\"><\/a><\/p>\n<p>Now, click on the <strong>Administration<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page8\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_limesurvey_on_ubuntu_1804\/big\/page8.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts-7.png\" alt=\"Login to LimeSurvey\" width=\"550\" height=\"323\" title=\"\"><\/a><\/p>\n<p>Now, provide your login details, then click on the <strong>Log In<\/strong> button. You should see the following page:<\/p>\n<p><a class=\"fancybox\" id=\"img-page9\" href=\"https:\/\/www.howtoforge.com\/images\/how_to_install_limesurvey_on_ubuntu_1804\/big\/page9.png\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts-8.png\" alt=\"LimeSurvey Dashboard\" width=\"550\" height=\"291\" title=\"\"><\/a><\/p>\n<h2 id=\"links\">Links<\/h2>\n<div>\n<p><b>Share this page:<\/b><\/p>\n<p>\n<a href=\"https:\/\/www.facebook.com\/sharer.php?u=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fhow-to-install-limesurvey-on-ubuntu-1804%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts-9.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/intent\/tweet?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fhow-to-install-limesurvey-on-ubuntu-1804%2F&amp;text=How+to+Install+LimeSurvey+on+Ubuntu+18.04+LTS&amp;via=howtoforgecom&amp;related=howtoforgecom\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts-10.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/twitter.com\/howtoforgecom\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts-11.png\" height=\"20\" alt=\"\" title=\"\"><\/a><br \/>\n<a href=\"https:\/\/plus.google.com\/share?url=https%3A%2F%2Fwww.howtoforge.com%2Ftutorial%2Fhow-to-install-limesurvey-on-ubuntu-1804%2F\" target=\"_blank\" rel=\"nofollow noopener noreferrer\"><img decoding=\"async\" src=\"https:\/\/afaghhosting.net\/blog\/wp-content\/uploads\/2018\/08\/how-to-install-limesurvey-on-ubuntu-18-04-lts-12.png\" height=\"20\" alt=\"\" title=\"\"><\/a>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>LimeSurvey is a free and an open source online survey application written in PHP and uses a MySQL or PostgreSQL database. LimeSurvey allow us to create, develop and publish online surveys and collect responses from them, without doing any coding and scripting. In this tutorial, we will learn how to install and configure LimeSurvey on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-6231","post","type-post","status-publish","format-standard","hentry","category-36"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/6231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=6231"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/6231\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=6231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=6231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=6231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}