Проблема с apache

Установка, настройка, поддержка
detx
Сообщения: 15
Зарегистрирован: Ср окт 29, 2008 1:19 pm

Проблема с apache

Сообщение 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

lasik
Сообщения: 983
Зарегистрирован: Чт янв 10, 2008 5:20 pm
Откуда: Россия, Москва

Сообщение lasik »

httpd-error.log в студию

detx
Сообщения: 15
Зарегистрирован: Ср окт 29, 2008 1:19 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/

detx
Сообщения: 15
Зарегистрирован: Ср окт 29, 2008 1:19 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]#

ran
Сообщения: 2298
Зарегистрирован: Вс окт 21, 2007 2:29 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

detx
Сообщения: 15
Зарегистрирован: Ср окт 29, 2008 1:19 pm

Сообщение 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
Что ему еще то надо вроде права выставлены

chtito2
Сообщения: 479
Зарегистрирован: Чт апр 17, 2008 5:26 pm

Сообщение chtito2 »

Попробуйте разобраться в настройках SELinux. Битом чую, проблема там. Для проверки отключите SELinux, желательно перезагрузитесь, и попробуйте войти снова.

detx
Сообщения: 15
Зарегистрирован: Ср окт 29, 2008 1:19 pm

Сообщение 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]#
если я ничего не путаю то вот означает что он отключен

detx
Сообщения: 15
Зарегистрирован: Ср окт 29, 2008 1:19 pm

Сообщение detx »

я дебил))) Надо было disabled. А я просто disable.

detx
Сообщения: 15
Зарегистрирован: Ср окт 29, 2008 1:19 pm

Сообщение detx »

все заработало.
Только теперь возникла другая проблема. Если вводить имя пользователдя и пароль при входе в админку abills abills. То они что то не подходят

ran
Сообщения: 2298
Зарегистрирован: Вс окт 21, 2007 2:29 pm

Сообщение ran »


detx
Сообщения: 15
Зарегистрирован: Ср окт 29, 2008 1:19 pm

Сообщение detx »

только он у меня не выдает эту ошибку а просто просит ввести данные заново??? Может здесь проблема в чем то другом????

ran
Сообщения: 2298
Зарегистрирован: Вс окт 21, 2007 2:29 pm

Сообщение ran »

$conf{secretkey}?

detx
Сообщения: 15
Зарегистрирован: Ср окт 29, 2008 1:19 pm

Сообщение detx »

$conf{secretkey}="test12345678901234567890";

detx
Сообщения: 15
Зарегистрирован: Ср окт 29, 2008 1:19 pm

Сообщение detx »

detx писал(а):$conf{secretkey}="test12345678901234567890";
Все как по доке или надо писать что нить дургое????

Ответить