Comments (5)
Can you please be more specific about how this happens? I'd like to be able to reproduce this.
from bootstrap-listr.
Setup a site with download links to MS Office and Windows 7 on a DigitalOcean droplet with 512MB RAM:
- PHP 5.5.16
- NGINX 1.6.1
Redacted Error
2015/02/23 17:49:23 [error] 4950#0: *11219 FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate 794841088 bytes) in /usr/share/nginx/share/www/dl/index.php on line 76" while reading response header from upstream, client: 0.0.0.0, server: share.example.com, request: "GET /dl/Microsoft/Microsoft%20Office%202013%20SP1%20x32.iso HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "share.example.com"
from bootstrap-listr.
I can't reproduce this, I could successfully load an Ubuntu image (~1.1GB) on using memory_limit = 100M
. The only difference I noticed, is that the file is loaded in the browser rather than being offered as download, even though my MIME settings are alright.
Please do me the favour and replace your index.php
with this one. It uses the readfile_chunked function rather than readfile.
from bootstrap-listr.
That worked! Do you think it had something to do with me using nginx? Here is the relevant portion of my nginx config, I have the application running under a subirectory (i.e. https://example.com/dl ):
location ~(^/dl/)(.*) {
try_files $uri $uri/ /dl/index.php?path=$2;
# Forward requests on to PHP-FPM
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_intercept_errors on;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/var/run/php5-fpm.sock;
}
}
from bootstrap-listr.
I'm not familiar with nginx, but I'm thinking about how to best integrate the alternative readfile function. I don't see the harm in doing so, both versions behaved the same for me.
from bootstrap-listr.
Related Issues (20)
- Issue With max_execution_time HOT 2
- Bootstrap's JS is included twice HOT 3
- Add a feature to download files HOT 3
- Resuming download is not possible
- How to open files in another tab. HOT 4
- Change the function of "Open" button. HOT 4
- Removing a column! 2.3.0 Alpha-4 HOT 5
- Restrict access to some folders HOT 1
- Search Form don't work HOT 9
- Integrate Bootstrap Listr Alpha in Wordpress HOT 1
- Update third part lib versions
- Wrong detection of root dir with subdomain HOT 4
- Where is the documentation? HOT 1
- WIndows File System SUpport HOT 1
- Error 500 ??
- Hidden folders are still counted HOT 1
- Help with LISTR and nginx HOT 1
- config.json documentation update for 2.3.alpha additions?
- Viewer is not working.
- getting Fatal Error Out of memory in index.php on line 80
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap-listr.