Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam,
Postanowiłem postawić apache2 z modem fcgi, moje distro debian squeeze. wszystko robiłem według poradnika:
http://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-debian-lenny
niby wszystko poszło dobrze lecz gdy chce uruchomić jakiś skrypt .php mam blad: "500 Internal Server Error"
Mój przykładowy config:
<VirtualHost *:80> ServerName www.loled.pl ServerAlias loled.pl DocumentRoot /var/www/loled/ <IfModule mod_fcgid.c> SuexecUserGroup loled loled # PHP_Fix_Pathinfo_Enable 1 <Directory /var/www/loled/> Options +ExecCGI AllowOverride All AddHandler fcgid-script .php FCGIWrapper /var/www/loled/php-fcgi-starter .php Order allow,deny Allow from all </Directory> </IfModule> # ErrorLog /var/log/apache2/error.log # CustomLog /var/log/apache2/access.log combined ServerSignature Off </VirtualHost>
W configu linia 9 musi być zahaszowana poniewaz pokazuje mi się błąd przy starcie apache i to jest mój kolejny problem:
Syntax error on line 9 of /etc/apache2/sites-enabled/loled: PHP_Fix_Pathinfo_Enable cannot occur within <VirtualHost> section Action 'configtest' failed. The Apache error log may have more information. failed!
error.log:
[Wed Nov 16 20:29:31 2011] [warn] [client x.x.x.x] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://loled.pl/ [Wed Nov 16 20:29:31 2011] [error] [client x.x.x.x] Premature end of script headers: info.php, referer: http://loled.pl/ suexec policy violation: see suexec log for more details [Wed Nov 16 20:29:32 2011] [warn] [client x.x.x.x] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server, referer: http://loled.pl/ [Wed Nov 16 20:29:32 2011] [error] [client x.x.x.x] Premature end of script headers: info.php, referer: http://loled.pl/
suexec.log
[2011-11-16 20:29:31]: uid: (1004/loled) gid: (1004/loled) cmd: php-fcgi-starter [2011-11-16 20:29:31]: target uid/gid (1004/1004) mismatch with directory (33/33) or program (33/33) [2011-11-16 20:29:32]: uid: (1004/loled) gid: (1004/loled) cmd: php-fcgi-starter [2011-11-16 20:29:32]: target uid/gid (1004/1004) mismatch with directory (33/33) or program (33/33)
prosze o pomoc
Ostatnio edytowany przez zomb25 (2011-11-16 21:52:09)
Offline
a to zerknij w suexec.log - jak byk napisane co mu nie pasuje.
Sprawdź z jakiego uida/gida odpalany jest wraper a jakiego uida/gida ma ustawiony skrypt/katalog ze skryptami. Dla ułatwienia google translate podpowiada
[16.11.2011 20:29:31]: uid: (1004/loled) gid: (1004/loled) cmd: php-fcgi rozrusznik [16.11.2011 20:29:31]: uid / gid docelowego (1004/1004) Niezgodność z katalogu (33/33) lub programu (33/33)
Offline
Time (s) | Query |
---|---|
0.00009 | SET CHARSET latin2 |
0.00009 | SET NAMES latin2 |
0.00112 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.145.39.176' WHERE u.id=1 |
0.00067 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.145.39.176', 1732442471) |
0.00046 | SELECT * FROM punbb_online WHERE logged<1732442171 |
0.00062 | DELETE FROM punbb_online WHERE ident='54.36.148.29' |
0.00067 | SELECT topic_id FROM punbb_posts WHERE id=185910 |
0.00072 | SELECT id FROM punbb_posts WHERE topic_id=20071 ORDER BY posted |
0.00059 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=20071 AND t.moved_to IS NULL |
0.00005 | SELECT search_for, replace_with FROM punbb_censoring |
0.00073 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=20071 ORDER BY p.id LIMIT 0,25 |
0.00097 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=20071 |
Total query time: 0.00678 s |