ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Sergey <a_s_y@sama.ru>
To: sysadmins <sysadmins@lists.altlinux.org>
Subject: [Sysadmins] Apache2 fastcgi ( или Collection4)
Date: Tue, 17 Jul 2012 19:01:50 +0400
Message-ID: <201207171901.50805.a_s_y@sama.ru> (raw)

Приветствую.

Пытаюсь заставить заработать Collection4 (фронтенд такой для collectd).
Что-то у меня сомнение возникает, что нормально установился fastcgi.
Судя по конфигу (apache2-mod_fcgid-2.2-alt2):

<IfModule !mod_fcgid.c>
    AddHandler fcgid-script .fcg .fcgi .fpl
    # Sane place to put sockets and shared memory file
    SocketPath /var/lib/run/mod_fcgid/fcgid_sock
    SharememPath /var/lib/run/mod_fcgid/fcgid_shm
</IfModule>

должен существовать некий сокет в SocketPath, но там что-то пусто.
Или сокет для каждого скрипта при его запуске создаётся (или для
каждого экземпляра вообще) ? Модуль, по идее, включен, Апач не 
ругается сам по себе.

На Collection4 Апач ругается так: Premature end of script headers: collection.fcgi
На этом же сервере Collection3 работает, там, правда, просто cgi.

Конфиг для апача, вроде бы, несложный должен быть... Вот такой сделал:

<VirtualHost *>
        ServerName              c4.local
        ServerAlias             www.c4.local
        ServerAdmin             admin@local
        DocumentRoot            /var/www/vhosts/c4.local/
        ErrorLog                /var/www/vhosts/c4.local/log/error.log
        TransferLog             /var/www/vhosts/c4.local/log/access.log

        ScriptAlias             /fcgi-bin /var/www/vhosts/c4.local/fcgi-bin
        Alias                   /share    /var/www/vhosts/c4.local/share

        DirectoryIndex          /fcgi-bin/collection.fcgi

        <Directory "/fcgi-bin/">
#               SetHandler      fcgid-script
                Options         +ExecCGI

                Order           allow,deny
                Allow           from all
        </Directory>
</VirtualHost>

Вот тут git://git.tokkee.org/pkg-collection4.git нашёл дебиановский
вариант:

Alias /collection4/css /usr/share/collection4
Alias /collection4/js /usr/share/collection4
Alias /collection4 /usr/lib/collection4

<Directory "/usr/lib/collection4">
        Options +ExecCGI

        AllowOverride none
        Order allow,deny
        Allow from all

        DirectoryIndex collection.fcgi
</Directory>

<Directory "/usr/share/collection4">
        AllowOverride none
        Order allow,deny
        Allow from all
</Directory>

Вроде бы, относительно похоже...

-- 
С уважением, Сергей
a_s_y@sama.ru


             reply	other threads:[~2012-07-17 15:01 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-17 15:01 Sergey [this message]
2012-07-17 18:37 ` [Sysadmins] Apache2 fastcgi (или Collection4) Michael Shigorin
2012-07-17 20:26   ` Sergey
2012-07-17 21:18     ` Sergey
2012-07-19 13:25 ` [Sysadmins] Apache2 fastcgi ( или Collection4) Sergey
2012-07-20  8:35 ` Sergey
2012-07-20  8:44   ` Dmitriy Kruglikov
2012-07-20  9:05     ` Денис Смирнов
2012-07-20  9:15       ` Michael Shigorin
2012-07-20 11:02       ` Dmitriy Kruglikov
2012-07-20 13:59     ` [Sysadmins] Collection4 Sergey
2012-07-20 14:15       ` Dmitriy Kruglikov
2012-07-23  5:40         ` Sergey
2012-07-20  9:15   ` [Sysadmins] Apache2 fastcgi ( или Collection4) Michael Shigorin
2012-07-20 12:21   ` Sergey
2012-07-20 12:24     ` Dmitriy Kruglikov
2012-07-20 14:12     ` Sergey
2012-07-24  9:20       ` [Sysadmins] Collection4 Sergey
2012-07-24  9:34         ` Dmitriy Kruglikov
2012-07-24 10:04           ` Sergey
2012-07-26 12:20         ` Sergey
2012-07-26 13:05           ` Sergey
2012-08-01 20:10         ` Michael Shigorin
2012-08-02 15:06           ` Sergey
2013-06-05  8:47         ` Sergey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201207171901.50805.a_s_y@sama.ru \
    --to=a_s_y@sama.ru \
    --cc=sysadmins@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git