limesurvey
LimeSurvey: the online survey tool - open source surveys
install
- tasksel を使ってlamp-server (apache + php + mysql) をインストール
$ sudo tasksel install lamp-server $ sudo apt install -y php-xml php7.0-mbstring php7.0-gd php7.0-ldap php7.0-zip php7.0-imap
- ソースをダウンロード(日付に注意)
$ wget https://www.limesurvey.org/stable-release?download=2240:limesurvey311%20180130targz limesurvey311-20180130targz
- ソースの展開と移動・オーナーグループ変更
$ sudo cd /var/www/html && tar xvfz ~/limesurvey311-20180130targz $ sudo chown www-data:www-data -R /var/www/html/limesurvey
- MySQL セキュリティ設定
$ sudo mysql_secure_installation Securing the MySQL server deployment. Enter password for user root: VALIDATE PASSWORD PLUGIN can be used to test passwords and improve security. It checks the strength of password and allows the users to set only those passwords which are secure enough. Would you like to setup VALIDATE PASSWORD plugin? Press y|Y for Yes, any other key for No: n Using existing password for root. Change the password for root ? ((Press y|Y for Yes, any other key for No) : n ... skipping. By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? (Press y|Y for Yes, any other key for No) : y Success. Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? (Press y|Y for Yes, any other key for No) : y Success. By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y - Dropping test database... Success. - Removing privileges on test database... Success. Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y Success. All done!
- データベース作成
$ sudo mysql -u root -p mysql> CREATE DATABASE limesurvey; Query OK, 1 row affected (0.00 sec) mysql> GRANT ALL PRIVILEGES ON limesurvey.* TO 'limeuser'@'localhost' IDENTIFIED BY 'password'; Query OK, 0 rows affected, 1 warning (0.01 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec)
- /etc/apache2/sites-available/limesurvey.confに以下を記述
ServerAdmin [email protected] DocumentRoot /var/www/html/limesurvey/ ServerName limesurvey.jdnet.biz Options FollowSymLinks ErrorLog /var/log/apache2/lime-error_log CustomLog /var/log/apache2/lime-access_log com
- limesurvey.conf の有効化と apacheリスタート
$ sudo a2ensite limesurvey.conf $ sudo service apache2 reload
-
Language Selection に日本語を選択して 「start installation」 ボタンを押下
-
ライセンス確認で「同意する」ボタンを押下
-
インストール前のチェックで「次へ」ボタンを押下
-
データベース設定の内容を入力して「次へ」ボタンを押下
-
データベース生成で「データベースを作成する」ボタンを押下
-
任意回答の質問で内容を入力して「次へ」ボタンを押下