{"id":17940,"date":"2015-11-07T13:53:22","date_gmt":"2015-11-07T19:53:22","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=17940"},"modified":"2022-12-09T05:48:09","modified_gmt":"2022-12-09T11:48:09","slug":"how-to-install-limesurvey-on-an-ubuntu-14-04-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-limesurvey-on-an-ubuntu-14-04-vps\/","title":{"rendered":"How to install LimeSurvey on an Ubuntu 14.04 VPS"},"content":{"rendered":"
LimeSurvey is one of the many open source survey applications written in PHP, and uses\u00a0a MySQL or PostgreSQL database. LimeSurvey is a user-friendly web application that allows users to develop, publish and collect responses to surveys. Users can use rich text in questions and messages using a rich text editor, and images and videos can easily be integrated into surveys. Surveys can be public, or can be strictly controlled through the use of ‘once-only’ tokens for each survey participant.<\/p>\n
This installation guide should work on any Debian based\u00a0Linux distribution as well, but was tested and written for an Ubuntu 14.04 VPS<\/a>.<\/p>\n At the time of writing this tutorial, LimeSurvey 2.06 is the latest stable version available and it requires:<\/p>\n – Apache web server. Log in to your VPS via SSH:<\/p>\n To install MariaDB, run the following command:<\/p>\n Create a new database for the\u00a0LimeSurvey installation:<\/p>\n Do not forget to replace \u2018your-password\u2019 with a strong password.<\/p>\n To install the latest stable version of PHP version 5 and all required\u00a0modules, run the following command:<\/p>\n Download and extract the latest version of LimeSurvey to your server:<\/p>\n LimeSurvey needs certain access to \u2018tmp\u2019, \u2018upload\u2019 and ‘application\/config’ directories within the \u2018\/var\/www\/html\/limesurvey\u2019 directory. This can easily be accomplished by running the following command:<\/p>\n Create a new virtual host directive in Apache. For example, create a new Apache configuration file named \u2018limesurvey.conf\u2019 on your virtual server:<\/p>\n Then, add the following lines:<\/p>\n Restart the Apache web server for the changes to take effect:<\/p>\n Open your favorite web browser, navigate to http:\/\/your-domain.com\/admin and if you configured everything correctly the LimeSurvey installer should start. Follow the easy instructions on the install screen inserting the necessary information as requested.<\/p>\n Once you finish the installation, access the admin section at:<\/p>\n A good way to start using LimeSurvey is to read the official user manual available at:<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Managed Ubuntu Hosting<\/a> hosting services, in which case you can simply ask our expert Linux admins to install LimeSurvey<\/strong> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/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":" LimeSurvey is one of the many open source survey applications written in PHP, and uses\u00a0a MySQL or PostgreSQL database. LimeSurvey … <\/p>\n
\n– PHP (version 5.3.3 or later) with mbstring extension library and PDO database driver enabled for MySQL (pdo_mysql \/ pdo_mysqli) or pdo_pgsql\u00a0for PostgreSQL database.
\n– MySQL(version 4.1.0 or later) or PostgreSQL (version\u00a08.1 or later) installed on your Linux VPS<\/a>.<\/p>\nInstallation instructions:<\/h4>\n
ssh user@IP<\/pre>\n
Update the OS packages:<\/h4>\n
[user]$ sudo apt-get update && sudo apt-get -y upgrade<\/pre>\n
Install MariaDB:<\/h4>\n
[user]$ sudo apt-get install -y mariadb-server<\/pre>\n
[user]$ mysql -uroot -p\r\n\r\nMariaDB [(none)]> CREATE DATABASE limesurvey;\r\nMariaDB [(none)]> GRANT ALL PRIVILEGES ON limesurvey.* TO 'limeuser'@'localhost' IDENTIFIED BY 'your-password';\r\nMariaDB [(none)]> FLUSH PRIVILEGES;\r\nMariaDB [(none)]> \\q<\/pre>\n
Install Apache2 web server:<\/h4>\n
[user]$ sudo apt-get install apache2<\/pre>\n
Install PHP and required PHP modules:<\/h4>\n
[user]$ sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-mysql<\/pre>\n
[user]$ sudo cd \/opt && wget http:\/\/download.limesurvey.org\/latest-stable-release\/limesurvey206plus-build151014.zip\r\n[user]$ sudo unzip limesurvey206plus-build151014.zip\r\n[user]$ sudo mv limesurvey\/ \/var\/www\/html\/limesurvey\/<\/pre>\n
[user]$ sudo chown www-data:www-data -R \/var\/www\/html\/limesurvey<\/pre>\n
[user]$ sudo touch \/etc\/apache2\/sites-available\/limesurvey.conf\r\n[user]$ sudo ln -s \/etc\/apache2\/sites-available\/limesurvey.conf \/etc\/apache2\/sites-enabled\/limesurvey.conf\r\n[user]$ sudo nano \/etc\/apache2\/sites-available\/limesurvey.conf<\/pre>\n
<VirtualHost *:80>\r\nServerAdmin admin@yourdomain.com\r\nDocumentRoot \/var\/www\/html\/limesurvey\/\r\nServerName your-domain.com\r\nServerAlias www.your-domain.com\r\n<Directory \/var\/www\/html\/limesurvey\/>\r\nOptions FollowSymLinks\r\nAllowOverride All\r\n<\/Directory>\r\nErrorLog \/var\/log\/apache2\/your-domain.com-error_log\r\nCustomLog \/var\/log\/apache2\/your-domain.com-access_log common\r\n<\/VirtualHost>\r\n<\/pre>\n
[user]$ sudo service apache2 restart<\/pre>\n
http:\/\/yourdomain.com\/admin<\/pre>\n
https:\/\/manual.limesurvey.org\/<\/pre>\n