Commit e876c1b1 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

increased mem limit in php

parent 93dfcc13
...@@ -59,6 +59,8 @@ switch($cmd){ ...@@ -59,6 +59,8 @@ switch($cmd){
break; break;
case "logs_download": case "logs_download":
ini_set('memory_limit','512M');
header("Content-Type: application/octet-stream"); header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"{$_SERVER["SERVER_ADDR"]}.logs\""); header("Content-Disposition: attachment; filename=\"{$_SERVER["SERVER_ADDR"]}.logs\"");
...@@ -73,7 +75,7 @@ switch($cmd){ ...@@ -73,7 +75,7 @@ switch($cmd){
echo_file("/var/log/init_elphel393.log"); echo_file("/var/log/init_elphel393.log");
echo_file("/var/log/x393sata_control.log"); echo_file("/var/log/x393sata_control.log");
echo_file("/var/log/x393sata_eyesis4pi.log"); //echo_file("/var/log/x393sata_eyesis4pi.log");
echo_file("/var/state/ssd"); echo_file("/var/state/ssd");
...@@ -82,10 +84,11 @@ switch($cmd){ ...@@ -82,10 +84,11 @@ switch($cmd){
echo_file("/var/log/lighttpd.error.log"); echo_file("/var/log/lighttpd.error.log");
echo_file("/var/log/lighttpd_stderr.log"); echo_file("/var/log/lighttpd_stderr.log");
echo_file("/var/tmp/camogm.log");
echo_file("/var/log/messages"); echo_file("/var/log/messages");
echo_file("/var/log/access.log"); echo_file("/var/log/access.log");
echo_file("/var/tmp/camogm.log");
break; break;
case "external_drive": case "external_drive":
switch_sata_connection("external"); switch_sata_connection("external");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment