LinuxForum.Fans
Тема

Проблемы nginx+php-fpm+mysql+Joomla на ARM7

Автор: senya_m 3 сообщений 5835 просмотров
#278746

Железо - BeagleBone с установленным ArchLinux.
Проблема:
На шаге установки базы данных Joomla, после некоторого времени работы скрипта выкидывает снова на тот же шаг. При точно такой же конфигурации, но на другом устройстве с ARM6 процессором и ArchLinux таких проблем нет.
В логах nginx:

Показать
2000/01/02 09:35:49 [error] 31690#0: *3 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 80.73.198.129, server: xxxx.ru, request: "GET /installation/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "xxxx", referrer: "http://xxxxx/installation/index.php"
2000/01/02 09:39:52 [error] 31690#0: *3 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 80.73.198.129, server: xxx, request: "POST /installation/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "xxxx", referrer: "http://xxxxx.ru/installation/index.php"
2000/01/02 09:40:07 [error] 31690#0: *29 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 80.73.198.129, server: xxxxx.ru, request: "GET /installation/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "xxxx.ru", referrer: "http://xxxxx.ru/installation/index.php"

В логах php-fpm ничего.
Конфиг nginx:

Показать
server {
listen 80;
server_name xxxxxx.ru;

# PublicRoot нашего сайта
root /home/senya/www/xxxx.ru;

# Устанавливаем пути к логам.
access_log /home/senya/www/http_access.log;
error_log /home/senya/www/http_error.log;

# Отключаем логирование для robots.txt.
location = /robots.txt {
access_log off;
log_subrequest off;
log_not_found off;
}

# Отключаем логирование для favicon.ico
location = /favicon.ico {
access_log off;
log_subrequest off;
log_not_found off;
}

# Отключаем логирование для sitemap.xml
location = /sitemap.xml {
access_log off;
log_subrequest off;
log_not_found off;
}

# Отключаем логирование для *.css И *.js файлов
location ~* ^.+\.(css|js)$ {
access_log off;
log_subrequest off;
log_not_found off;
}

# Также отключаем логи для картинок, файлов
location ~* ^.+\.(bmp|gif|jpg|jpeg|ico|png|swf)$ {
access_log off;
log_subrequest off;
log_not_found off;
}

# Блокируем доступ для всех скрытых файлов
location ~ /\. {
deny all;
}

# Подключаем обработчик php-fpm
location ~ \.php$ {


# php-fpm. Подключение через сокет.
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param DOCUMENT_ROOT /home/senya/www/xxxxxx.ru;
fastcgi_param SCRIPT_FILENAME /home/senya/www/xxxxx.ru$fastcgi_script_name;
include fastcgi_params;
}
location / {
index index.php index.xml index.html index.htm;
if ( !-e $request_filename ) {
rewrite (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ /index.php last;
break;
}
}



}

Таблице в базе данных создаются. Но откуда таймаут, непонятно. Может дело в кривом php-fpm, ведь та же конфигурация на другом устройстве работают без проблем?

#278748

а если так?

text

http {
    ...
    fastcgi_read_timeout 600s;
    ...
}
#278752
"i2ks" написал:
http {
...
fastcgi_read_timeout 600s;
...
}

Та же ситуация. Загрузка процессора первую секунду, затем тишина.

Войдите или зарегистрируйтесь, чтобы ответить.