sudo aptitude install nginx-full php5-gd php5-ldap php5-imap php5-cgi php5-fpm php5-mysql
mkdir -p /var/log/nginx/limesurvey
server { listen *:80; server_name survey.maylug.org www.maylug.virtual www; set $maintenance "off"; if ($maintenance = "on") { return 503; } index index.php index.html; access_log /var/log/nginx/limesurvey/access.log combined; error_log /var/log/nginx/limesurvey/error.log; location ~ \.php$ { root /srv/www/limesurvey; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_connect_timeout 3m; fastcgi_index index.php; fastcgi_read_timeout 3m; fastcgi_send_timeout 3m; fastcgi_split_path_info ^(.+\.php)(/.+)$; } location / { root /srv/www/limesurvey; try_files $uri $uri/ =404; } }
sudo systemctl restart nginx
sudo aptitude install mysql-server
sudo dpkg-reconfigure mysql-server-5.5
CREATE DATABASE survey; CREATE USER "maysurv"@"localhost"; SET password FOR "maysurv"@"localhost" = password('RkChDBcBvocoE'); GRANT ALL ON survey.* TO "maysurv"@"localhost"; FLUSH PRIVILEGES; EXIT
sudo mysql -u root -p < /root/limesurvey_user.sql
mkdir -p /srv/www cd /srv/www wget "https://www.limesurvey.org/en/stable-release?download=1300:limesurvey206plus-build150619zip" -O limesurvey.zip sudo aptitude install unzip unzip limesurvey.zip
'config'=>array( // debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this // then please check your error-logs - either in your hosting provider admin panel or in some /logs directory // on your webspace. // LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates 'debug'=>0, 'debugsql'=>0, 'enableLdap'=>true, )
'debugsql'⇒0,
/srv/www/limesurvey/application/config/ldap.php
: