- Posts: 8
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Nginx Config
- Artim96
- Topic Author
- Offline
- New Member
Less
More
7 months 2 weeks ago - 7 months 2 weeks ago #250100
by Artim96
Nginx Config was created by Artim96
Please help us help you and fill where relevant:
Your LimeSurvey version: 5.2.5
Own server or LimeSurvey hosting: Own Server
Survey theme/template: default
==================
Hey, does anybody have a working Nginx config? The ones I found are incomplete, which is surprising as LimeSurvey does recommend using nginx. Some assets like , so the Page is pretty much broken. (fresh installation).
This is my nginx config:
}
[/code]
Your LimeSurvey version: 5.2.5
Own server or LimeSurvey hosting: Own Server
Survey theme/template: default
==================
Hey, does anybody have a working Nginx config? The ones I found are incomplete, which is surprising as LimeSurvey does recommend using nginx. Some assets like , so the Page is pretty much broken. (fresh installation).
This is my nginx config:
Code:
server { server_name ; root /var/www/LimeSurvey; index ; fastcgi_param PHP_VALUE "memory_limit = 128M"; access_log /var/log/lime/; error_log /var/log/lime/; location / { try_files $uri $uri/ /$args; } location ~ \.php$ { include snippets/; fastcgi_pass unix:/var/run/php/; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_read_timeout 120; fastcgi_intercept_errors on; include fastcgi_params; } #Favicon location = /{ alias /etc/nginx/; } location /nginx_status { stub_status on; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires 6M; } # location = /{ return 200 "User-agent: *\nDisallow: /\n"; } listen 443 ssl http2; ssl_certificate /etc/ssl/certs/; ssl_certificate_key /etc/ssl/private/; } server { server_name ; return 301 https://$http_host$request_uri; listen 80;
[/code]
Last edit: 7 months 2 weeks ago by Artim96.
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
7 months 2 weeks ago #250107
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Nginx Config
Where does Limesurvey recommend to use Nginx? Afaik the recommended webserver is Apache.
Maybe this helps:
helpdeskgeekal.pages.dev/posts/how-to-se...tu-linux-with-nginx/
Not a Nginx guy. So no idea.
Maybe this helps:
helpdeskgeekal.pages.dev/posts/how-to-se...tu-linux-with-nginx/
Not a Nginx guy. So no idea.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- Artim96
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
7 months 2 weeks ago #250109
by Artim96
Replied by Artim96 on topic Nginx Config
They recommend it on their GitHub page, right next to Apache: [url][/url]
And no, that link doesn't help, that's actually the most unhelpful guide I've ever seen. It doesn't contain any config, let alone package names to be installed, as any decent installation guide that's for a specific distro should do. No idea who thought it be a good idea to publish this wall of nothingness in the first place,
And no, that link doesn't help, that's actually the most unhelpful guide I've ever seen. It doesn't contain any config, let alone package names to be installed, as any decent installation guide that's for a specific distro should do. No idea who thought it be a good idea to publish this wall of nothingness in the first place,
Please Log in to join the conversation.
- Artim96
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
7 months 2 weeks ago #250111
by Artim96
Replied by Artim96 on topic Nginx Config
No idea why the link won't show
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
7 months 2 weeks ago #250112
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Nginx Config
sorry...
Just tried to be helpful, no need to get all worked up.
Your link to github doesn't show, but I assume we are talking about this: github.com/LimeSurvey/LimeSurvey/
I assume with a standard installation that has php-fpm, mbstring, gd2 with freetype, imap, ldap, zip, zlib and database drivers it should run.
Usually I was always able to run limesurvey following manual.limesurvey.org/Installation_-_LimeSurvey_CE/en , but as I said, I am not really a Nginx guy.
But, if I recall right, Plesk runs Apache and Nginx in conjoint and my installations all work pretty well on Plesk based servers. So it should work, but I am not installing / configuring the webservers by hand, but just install Limesurvey onto them. So I can't help you there. Let's see if someone has more experience.
What I still have not understood is what the exact problem is you are encountering. Seems like something is missing in your initial post.
Just tried to be helpful, no need to get all worked up.
Your link to github doesn't show, but I assume we are talking about this: github.com/LimeSurvey/LimeSurvey/
RecommendedWe recommend the following setup
- Web server: nginx (most recent stable version)
- PHP (most recent stable version)
- with php-fpm, mbstring, gd2 with freetype, imap, ldap, zip, zlib and database drivers
- MariaDB or MySQL (most recent stable version)
I assume with a standard installation that has php-fpm, mbstring, gd2 with freetype, imap, ldap, zip, zlib and database drivers it should run.
Usually I was always able to run limesurvey following manual.limesurvey.org/Installation_-_LimeSurvey_CE/en , but as I said, I am not really a Nginx guy.
But, if I recall right, Plesk runs Apache and Nginx in conjoint and my installations all work pretty well on Plesk based servers. So it should work, but I am not installing / configuring the webservers by hand, but just install Limesurvey onto them. So I can't help you there. Let's see if someone has more experience.
What I still have not understood is what the exact problem is you are encountering. Seems like something is missing in your initial post.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- Artim96
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
7 months 2 weeks ago #250118
by Artim96
Replied by Artim96 on topic Nginx Config
indeed, the forum system did remove quite a
What my complaint was about was that it seems that LimeSurvey with the current Nginx config tries to load a bunch of files from some subdirectories of tmp/, like various jquery related js files, lstutorial .min .js or css files, while they are actually located in assets/ or they are part of a node module so they are located in the modules directory. So it's very unlikely that it's due to a missing dependency.
I also followed that guide, but sadly it leaves out all the actually relevant stuff, it doesn't tell you at all how your http server has to be set up. It just expects you to magically know how to do it. And having apache run behind nginx isn't really an option just to have one page work, replacing nginx with apache is impossible as apache can only handle uwsgi apps on paper, not in reality.
What my complaint was about was that it seems that LimeSurvey with the current Nginx config tries to load a bunch of files from some subdirectories of tmp/, like various jquery related js files, lstutorial .min .js or css files, while they are actually located in assets/ or they are part of a node module so they are located in the modules directory. So it's very unlikely that it's due to a missing dependency.
I also followed that guide, but sadly it leaves out all the actually relevant stuff, it doesn't tell you at all how your http server has to be set up. It just expects you to magically know how to do it. And having apache run behind nginx isn't really an option just to have one page work, replacing nginx with apache is impossible as apache can only handle uwsgi apps on paper, not in reality.
Please Log in to join the conversation.
- Artim96
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
7 months 2 weeks ago #250119
by Artim96
Replied by Artim96 on topic Nginx Config
jesus, who wrote this rust bucket of forum software that randomly eats half of what you type for no reason?
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11660
- Thank you received: 2742
7 months 2 weeks ago #250121
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Nginx Config
It has started a couple of days ago for new members. At least this is my impression. We got swamped with spam posts and I think the person responsible for the forum has done something to prevent this, but went overboard. But that is just my assumption.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.
- Artim96
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
7 months 2 weeks ago - 7 months 2 weeks ago #250122
by Artim96
Replied by Artim96 on topic Nginx Config
I don't think they've went overboard, they might just have done the completely wrong thing.
Sure, Captchas are annoying, but it's not a solution to make them so simple they could probably be solved faster by an algorithm running on my 10 yo laptop then I could type them out. Besides the fact that it's proven that algorithms might solve any human solvable captcha faster and more reliable than humans can. And besides the fact that they aren't even being
Sure, Captchas are annoying, but it's not a solution to make them so simple they could probably be solved faster by an algorithm running on my 10 yo laptop then I could type them out. Besides the fact that it's proven that algorithms might solve any human solvable captcha faster and more reliable than humans can. And besides the fact that they aren't even being
Last edit: 7 months 2 weeks ago by Artim96.
Please Log in to join the conversation.
- Artim96
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
7 months 2 weeks ago - 7 months 2 weeks ago #250268
by Artim96
Replied by Artim96 on topic Nginx Config
UPDATE:
I found entry in the manual, yet the issues are the same.
EDIT: I noticed two errors I didn't beforehand:
Uncaught ReferenceError: jQuery is not defined
at index. php?r=admin:695:1
(anonymous) @ :695
Uncaught ReferenceError: bootstrap is not defined
at window. onload (:464:36)
window. onload @ index. php?r=admin:464
load (async)
(anonymous) @ index. php?r=admin:463
I found entry in the manual, yet the issues are the same.
EDIT: I noticed two errors I didn't beforehand:
Uncaught ReferenceError: jQuery is not defined
at index. php?r=admin:695:1
(anonymous) @ :695
Uncaught ReferenceError: bootstrap is not defined
at window. onload (:464:36)
window. onload @ index. php?r=admin:464
load (async)
(anonymous) @ index. php?r=admin:463
Last edit: 7 months 2 weeks ago by Artim96.
Please Log in to join the conversation.
- Artim96
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
7 months 2 weeks ago #250269
by Artim96
Replied by Artim96 on topic Nginx Config
i meant this
manual . limesurvey . org/General_FAQ#With_nginx_webserver
manual . limesurvey . org/General_FAQ#With_nginx_webserver
Please Log in to join the conversation.