Предлагаю тут обсудить проблемы с Apapche.
Жалуюсь. У меня Apache на кубике отжирает 95% проца. Как искать причину и как с этим бороться?
Помогите, а?
Apache настройка, проблемы, тюнинг
Модератор: immortal
-
- Сообщения: 119
- Зарегистрирован: Пн авг 24, 2015 11:24 am
- Откуда: Сочи
- Благодарил (а): 4 раза
- Поблагодарили: 14 раз
Re: Apache настройка, проблемы, тюнинг
а что в логах апача ? ошибок нет ?
в access.log нет флуда сообщений ?
еще покажите вывод netstat
в access.log нет флуда сообщений ?
еще покажите вывод netstat
-
- Сообщения: 969
- Зарегистрирован: Пт дек 06, 2013 11:30 am
- Откуда: Москва
- Благодарил (а): 71 раз
- Поблагодарили: 95 раз
Re: Apache настройка, проблемы, тюнинг
Access_log отключен
Netstat
Лог апача
Netstat
Код: Выделить всё
root@cubietruck:~# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 64 10.0.0.105:ssh Carbo-Ceramics-gw:40182 ESTABLISHED
tcp 0 0 10.0.0.105:ssh Carbo-Ceramics-gw:65023 ESTABLISHED
tcp 0 0 10.0.0.105:ssh Carbo-Ceramics-gw:18026 ESTABLISHED
tcp6 0 0 10.0.0.105:http Carbo-Ceramics-gw:27657 ESTABLISHED
tcp6 0 0 10.0.0.105:http Carbo-Ceramics-gw.:9625 ESTABLISHED
tcp6 0 0 10.0.0.105:http Carbo-Ceramics-gw:19112 ESTABLISHED
tcp6 0 0 10.0.0.105:http Carbo-Ceramics-gw:31319 ESTABLISHED
tcp6 0 0 10.0.0.105:http Carbo-Ceramics-gw:12746 ESTABLISHED
tcp6 0 0 10.0.0.105:http Carbo-Ceramics-gw:50031 ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ] DGRAM 611 /run/systemd/journal/syslog
unix 2 [ ] DGRAM 376 /run/systemd/notify
unix 2 [ ] DGRAM 400 /run/systemd/shutdownd
unix 9 [ ] DGRAM 402 /run/systemd/journal/dev-log
unix 5 [ ] DGRAM 412 /run/systemd/journal/socket
unix 3 [ ] STREAM CONNECTED 101180 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM CONNECTED 101179
unix 3 [ ] STREAM CONNECTED 101178 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM CONNECTED 101177
unix 3 [ ] STREAM CONNECTED 102019 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM CONNECTED 102018
unix 3 [ ] STREAM CONNECTED 102009 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM CONNECTED 102008
unix 3 [ ] STREAM CONNECTED 102007 /var/run/mysqld/mysqld.sock
unix 3 [ ] STREAM CONNECTED 102006
unix 2 [ ] DGRAM 60039
unix 2 [ ] DGRAM 60578
unix 2 [ ] DGRAM 58691
unix 2 [ ] DGRAM 46530
unix 2 [ ] STREAM CONNECTED 9276
unix 2 [ ] STREAM CONNECTED 7971
unix 2 [ ] STREAM CONNECTED 7628
unix 2 [ ] DGRAM 5659
unix 2 [ ] DGRAM 2968
unix 3 [ ] STREAM CONNECTED 2964
unix 3 [ ] STREAM CONNECTED 2963
unix 3 [ ] STREAM CONNECTED 2966 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 2922
unix 2 [ ] DGRAM 2916
unix 3 [ ] STREAM CONNECTED 2965 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM CONNECTED 4795
unix 3 [ ] STREAM CONNECTED 4792 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 4791
unix 3 [ ] STREAM CONNECTED 4405 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 4404
unix 3 [ ] STREAM CONNECTED 4313 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 4312
unix 3 [ ] STREAM CONNECTED 4266 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 4265
unix 3 [ ] STREAM CONNECTED 4227 /run/systemd/journal/stdout
unix 3 [ ] STREAM CONNECTED 4226
unix 2 [ ] DGRAM 4085
unix 3 [ ] DGRAM 674
unix 3 [ ] DGRAM 673
unix 2 [ ] DGRAM 670
unix 2 [ ] DGRAM 1615
Код: Выделить всё
[Thu Sep 17 14:25:19.245686 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.447668 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP Warning: imagepng() expects parameter 1 to be resource, null given in /srv/www/pChart/index.php on line 578, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.447866 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.447950 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.448006 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP 2. imagepng() /srv/www/pChart/index.php:578, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.448191 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP Warning: Cannot modify header information - headers already sent by (output started at /srv/www/pChart/class/pImage.class.php:167) in /srv/www/pChart/index.php on line 579, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.448250 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.461793 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.462013 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP 2. header() /srv/www/pChart/index.php:579, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.462237 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP Warning: filesize(): stat failed for ./cached/670038171d53bae2d558444d8f10fa23.png in /srv/www/pChart/index.php on line 581, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.462319 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.462380 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.462439 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP 2. filesize() /srv/www/pChart/index.php:581, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.462549 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP Warning: Cannot modify header information - headers already sent by (output started at /srv/www/pChart/class/pImage.class.php:167) in /srv/www/pChart/index.php on line 582, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.462604 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.462657 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:25:19.462712 2015] [:error] [pid 20350] [client 192.100.217.221:40320] PHP 2. header() /srv/www/pChart/index.php:582, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:42.875089 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Warning: max(): When only one parameter is given, it must be an array in /srv/www/pChart/index.php on line 512, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:42.875386 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:42.875513 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:42.875592 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 2. max() /srv/www/pChart/index.php:512, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:42.948612 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Warning: min(): When only one parameter is given, it must be an array in /srv/www/pChart/index.php on line 513, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:42.948817 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:42.948911 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:42.948984 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 2. min() /srv/www/pChart/index.php:513, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.020907 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Warning: array_sum() expects parameter 1 to be array, null given in /srv/www/pChart/index.php on line 514, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.021142 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.021226 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.021286 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 2. array_sum() /srv/www/pChart/index.php:514, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.021386 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Warning: Division by zero in /srv/www/pChart/index.php on line 514, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.021437 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.021491 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.238770 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Warning: imagepng() expects parameter 1 to be resource, null given in /srv/www/pChart/index.php on line 578, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.238957 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.239044 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.239112 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 2. imagepng() /srv/www/pChart/index.php:578, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.239224 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Warning: Cannot modify header information - headers already sent by (output started at /srv/www/pChart/class/pImage.class.php:167) in /srv/www/pChart/index.php on line 579, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.239285 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.239370 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.239441 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 2. header() /srv/www/pChart/index.php:579, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.239679 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Warning: filesize(): stat failed for ./cached/3dd181b8161ad5f75ab2338adf2782ad.png in /srv/www/pChart/index.php on line 581, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.239767 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.239829 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.239884 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 2. filesize() /srv/www/pChart/index.php:581, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.240017 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Warning: Cannot modify header information - headers already sent by (output started at /srv/www/pChart/class/pImage.class.php:167) in /srv/www/pChart/index.php on line 582, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.240169 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.240236 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:26:43.240296 2015] [:error] [pid 18447] [client 192.100.217.221:31100] PHP 2. header() /srv/www/pChart/index.php:582, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.353313 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Warning: max(): When only one parameter is given, it must be an array in /srv/www/pChart/index.php on line 512, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.353566 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.353668 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.353745 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 2. max() /srv/www/pChart/index.php:512, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.424090 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Warning: min(): When only one parameter is given, it must be an array in /srv/www/pChart/index.php on line 513, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.424288 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.424380 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.424449 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 2. min() /srv/www/pChart/index.php:513, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.491163 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Warning: array_sum() expects parameter 1 to be array, null given in /srv/www/pChart/index.php on line 514, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.491362 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.491446 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.491515 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 2. array_sum() /srv/www/pChart/index.php:514, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.498525 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Warning: Division by zero in /srv/www/pChart/index.php on line 514, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.498755 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.498859 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.643142 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Warning: imagepng() expects parameter 1 to be resource, null given in /srv/www/pChart/index.php on line 578, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.643375 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.643471 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.643550 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 2. imagepng() /srv/www/pChart/index.php:578, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.643781 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Warning: Cannot modify header information - headers already sent by (output started at /srv/www/pChart/class/pImage.class.php:167) in /srv/www/pChart/index.php on line 579, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.643855 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.643950 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.644015 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 2. header() /srv/www/pChart/index.php:579, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.644241 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Warning: filesize(): stat failed for ./cached/96f575f1d0a8ed3d40186531b5a256bc.png in /srv/www/pChart/index.php on line 581, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.644326 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.644386 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.644444 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 2. filesize() /srv/www/pChart/index.php:581, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.644551 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Warning: Cannot modify header information - headers already sent by (output started at /srv/www/pChart/class/pImage.class.php:167) in /srv/www/pChart/index.php on line 582, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.644607 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP Stack trace:, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.644662 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 1. {main}() /srv/www/pChart/index.php:0, referer: http://cool.dlinkddns.com/menu.html
[Thu Sep 17 14:27:37.644722 2015] [:error] [pid 20357] [client 192.100.217.221:31319] PHP 2. header() /srv/www/pChart/index.php:582, referer: http://cool.dlinkddns.com/menu.html
-
- Сообщения: 969
- Зарегистрирован: Пт дек 06, 2013 11:30 am
- Откуда: Москва
- Благодарил (а): 71 раз
- Поблагодарили: 95 раз
Re: Apache настройка, проблемы, тюнинг
Похоже pChart. Удалил кастомный, накатил официальный, проц ушел на 30%. Правда графики не работают теперь 

-
- Сообщения: 969
- Зарегистрирован: Пт дек 06, 2013 11:30 am
- Откуда: Москва
- Благодарил (а): 71 раз
- Поблагодарили: 95 раз
Re: Apache настройка, проблемы, тюнинг
По своей душевной наивности люди вообще не знают, что за зверь memory_limit
)
Чего делать-то?

Чего делать-то?
-
- Сообщения: 138
- Зарегистрирован: Вт ноя 14, 2017 6:39 pm
- Откуда: Москва
- Благодарил (а): 44 раза
- Поблагодарили: 5 раз
- Контактная информация:
Re: Apache настройка, проблемы, тюнинг
Пытаюсь запустить MD на Paspberry Pi 3. Действуя по инструкции https://majordomo.smartliving.ru/Main/SetupRaspberryPi2 в итоге сломал Apache. Как переустановить только Apache? Или как правильно донастроить, чтоб заработало?
Апаче запускался, до того момента пока не дошло до редактирования /etc/apache2/site-enable/default , а там еще какое то обновление было и нужно было редактировать файл еще apache2.conf о котором не сказано в описании. В общем, я что то перемудрил.
Я так и не понял, куда нужно было внести эти изменения?
Так же включаем обработку .htaccess в файле /etc/apache2/site-enable/default:
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Кстати, там же можем закомментировать строчку с CustomLog -- лишний лог, лишняя нагрузка на файловую систему.
Апаче запускался, до того момента пока не дошло до редактирования /etc/apache2/site-enable/default , а там еще какое то обновление было и нужно было редактировать файл еще apache2.conf о котором не сказано в описании. В общем, я что то перемудрил.
Я так и не понял, куда нужно было внести эти изменения?
Так же включаем обработку .htaccess в файле /etc/apache2/site-enable/default:
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Кстати, там же можем закомментировать строчку с CustomLog -- лишний лог, лишняя нагрузка на файловую систему.
Raspberry Pi3, Xiaomi, BroadLink, ESP8266
-
- Сообщения: 138
- Зарегистрирован: Вт ноя 14, 2017 6:39 pm
- Откуда: Москва
- Благодарил (а): 44 раза
- Поблагодарили: 5 раз
- Контактная информация:
Re: Apache настройка, проблемы, тюнинг
Пишет вот это, но мне это ни чего не даст: Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
See "systemctl status apache2.service" and "journalctl -xe" for details.
Raspberry Pi3, Xiaomi, BroadLink, ESP8266