Страница 1 из 2
Проблема с apache
Добавлено: Ср окт 29, 2008 1:23 pm
detx
Установил по доке abills. Когда пытаюсь зайти на страницу
http://localhost/abills/admin
Пишет прям на странице следующее
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.</p>
<p>Please contact the server administrator,
root@localhost and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.</p>
<p>More information about this error may be available
in the server error log.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at 192.168.2.109 Port 80</address>
</body></html>
В чем может быть проблема подскажите пожалуйста??? И как ее можно исправить. Я все поставил на centos 5.2
Добавлено: Ср окт 29, 2008 1:41 pm
lasik
httpd-error.log в студию
Добавлено: Ср окт 29, 2008 1:44 pm
detx
[Wed Oct 29 16:01:23 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Oct 29 16:01:23 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed Oct 29 16:04:53 2008] [notice] caught SIGTERM, shutting down
[Wed Oct 29 16:06:55 2008] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Wed Oct 29 16:06:56 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Oct 29 16:06:56 2008] [notice] Digest: generating secret for digest authentication ...
[Wed Oct 29 16:06:56 2008] [notice] Digest: done
[Wed Oct 29 16:06:57 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Oct 29 16:06:57 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed Oct 29 16:10:17 2008] [notice] caught SIGTERM, shutting down
[Wed Oct 29 16:10:27 2008] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_t:s0
[Wed Oct 29 16:10:27 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Oct 29 16:10:27 2008] [notice] Digest: generating secret for digest authentication ...
[Wed Oct 29 16:10:27 2008] [notice] Digest: done
[Wed Oct 29 16:10:27 2008] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Oct 29 16:10:28 2008] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations
[Wed Oct 29 16:12:55 2008] [error] [client 192.168.2.147] (13)Permission denied: exec of '/usr/abills/cgi-bin/admin/index.cgi' failed
[Wed Oct 29 16:12:55 2008] [error] [client 192.168.2.147] Premature end of script headers: index.cgi
[Wed Oct 29 16:30:42 2008] [error] [client 192.168.2.108] File does not exist: /var/www/html/HNAP1
[Wed Oct 29 16:30:45 2008] [error] [client 192.168.2.108] File does not exist: /var/www/html/TEADevInfo
[Wed Oct 29 16:30:48 2008] [error] [client 192.168.2.108] Directory index forbidden by Options directive: /var/www/html/
Добавлено: Ср окт 29, 2008 1:47 pm
detx
И почему он пишет
[Wed Oct 29 16:06:55 2008] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
Хотя
[root@computer cgi-bin]# cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
SELINUX=disable[root@computer cgi-bin]#
Добавлено: Ср окт 29, 2008 4:52 pm
ran
[Wed Oct 29 16:12:55 2008] [error] [client 192.168.2.147] (13)Permission denied: exec of '/usr/abills/cgi-bin/admin/index.cgi' failed
Добавлено: Чт окт 30, 2008 6:34 am
detx
[root@computer ~]# ls -la /usr/abills/cgi-bin/index.cgi
-rwxr-xr-x 1 apache apache 28766 п²п╬я▐ 15 2007 /usr/abills/cgi-bin/index.cgi
Что ему еще то надо вроде права выставлены
Добавлено: Чт окт 30, 2008 7:00 am
chtito2
Попробуйте разобраться в настройках SELinux. Битом чую, проблема там. Для проверки отключите SELinux, желательно перезагрузитесь, и попробуйте войти снова.
Добавлено: Чт окт 30, 2008 7:07 am
detx
[root@computer cgi-bin]# cat /etc/sysconfig/selinux
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
SELINUX=disable[root@computer cgi-bin]#
если я ничего не путаю то вот означает что он отключен
Добавлено: Чт окт 30, 2008 7:11 am
detx
я дебил))) Надо было disabled. А я просто disable.
Добавлено: Чт окт 30, 2008 7:15 am
detx
все заработало.
Только теперь возникла другая проблема. Если вводить имя пользователдя и пароль при входе в админку abills abills. То они что то не подходят
Добавлено: Чт окт 30, 2008 7:33 am
ran
Добавлено: Чт окт 30, 2008 8:35 am
detx
только он у меня не выдает эту ошибку а просто просит ввести данные заново??? Может здесь проблема в чем то другом????
Добавлено: Чт окт 30, 2008 9:25 am
ran
$conf{secretkey}?
Добавлено: Чт окт 30, 2008 9:59 am
detx
$conf{secretkey}="test12345678901234567890";
Добавлено: Чт окт 30, 2008 10:08 am
detx
detx писал(а):$conf{secretkey}="test12345678901234567890";
Все как по доке или надо писать что нить дургое????