Страница 1 из 1

abills

Добавлено: 2012-11-05 15:44:11
chipset
Устанавливал по ману: http://www.lissyara.su/articles/freebsd ... ar+abills/

При открытии http://localhost/abills/ Выдает:

Код: Выделить всё

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, *** and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Конфиг апача:

Код: Выделить всё

  # User interface
  Alias /abills "/usr/local/abills/cgi-bin/"
  <Directory "/usr/local/abills/cgi-bin">
     <IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteCond %{HTTP:Authorization} ^(.*)
        RewriteRule ^(.*) - [E=HTTP_CGI_AUTHORIZATION:%1]
        Options Indexes ExecCGI SymLinksIfOwnerMatch
     </IfModule>
    AddHandler cgi-script .cgi
    Options Indexes ExecCGI FollowSymLinks
    AllowOverride none
    DirectoryIndex index.cgi
    Order allow,deny
    Allow from all
     
    <Files ~ "\.(db|log)$">
      Order allow,deny
      Deny from all
    </Files>
  </Directory>
   
     
  #Admin interface
  <Directory "/usr/local/abills/cgi-bin/admin">
    AddHandler cgi-script .cgi
    Options Indexes ExecCGI FollowSymLinks
    AllowOverride none
    DirectoryIndex index.cgi
    order deny,allow
    allow from all
  </Directory>


Re: abills

Добавлено: 2012-11-05 17:37:35
rayder
ни логов, ни версий...
заводил машину по инструкции, не заводится...

Re: abills

Добавлено: 2012-11-06 10:46:14
chipset
Логи апача:

Код: Выделить всё

[Tue Nov 06 11:54:25 2012] [error] [client 10.*.*.*] (13)Permission denied: exec of '/usr/local/abills/cgi-bin/index.cgi' failed
[Tue Nov 06 11:54:25 2012] [error] [client 10.*.*.*] Premature end of script headers: index.cgi

Re: abills

Добавлено: 2012-11-06 10:50:01
chipset
Запрещен доступ на запуск скрипта. Надо поменять права поидее только на какие? Сейчас так:

Код: Выделить всё

ls -l /usr/local/abills/cgi-bin/
total 166
drwxr-xr-x  2 www  wheel    512 Nov  5 11:02 admin
drwxr-xr-x  4 www  wheel    512 Jun 11 16:56 ajax
-r--r--r--  1 www  wheel  11992 Oct 31  2011 calendar.js
drwxr-xr-x  4 www  wheel    512 Jun 11 16:56 charts
-r--r--r--  1 www  wheel  28650 Nov 15  2007 charts.swf
drwxr-xr-x  2 www  wheel    512 Jun 11 16:56 charts_library
-r--r--r--  1 www  wheel   1150 Dec  3  2009 favicon.ico
-r--r--r--  1 www  wheel  30996 Nov 15  2011 functions.js
-r--r--r--  1 www  wheel  15436 Nov  5 11:02 hotspotlogin.cgi
drwxr-xr-x  5 www  wheel   2560 Jun 11 16:56 img
-r--r--r--  1 www  wheel  39068 Nov  5 11:02 index.cgi
drwxr-xr-x  2 www  wheel    512 Jun 11 16:56 js
-r--r--r--  1 www  wheel   5480 Nov  5 11:02 portal.cgi
-r--r--r--  1 www  wheel    273 Jul 12  2011 print.css
-r--r--r--  1 www  wheel  11849 Nov  5 11:02 registration.cgi
-r--r--r--  1 www  wheel   1070 May  8 13:44 skip_warning.cgi

Re: abills

Добавлено: 2012-11-06 10:57:37
chipset
Поставил для теста на этот файл права 777:

Код: Выделить всё

chmod 777 /usr/local/abills/cgi-bin/index.cgi
ls -l /usr/local/abills/cgi-bin/index.cgi
-rwxrwxrwx  1 www  wheel  39068 Nov  5 11:02 /usr/local/abills/cgi-bin/index.cgi
Теперь в логах вижу:

Код: Выделить всё

[Tue Nov 06 12:05:45 2012] [error] [client 10.113.1.240] Scalar found where operator expected at ../libexec//config.pl line 18, near "$conf"
[Tue Nov 06 12:05:45 2012] [error] [client 10.*.*.*] \t(Missing semicolon on previous line?)
[Tue Nov 06 12:05:45 2012] [error] [client 10.*.*.*] syntax error at ../libexec//config.pl line 18, near "$conf"
[Tue Nov 06 12:05:45 2012] [error] [client 10.*.*.*] BEGIN not safe after errors--compilation aborted at ../libexec//config.pl line 134.
[Tue Nov 06 12:05:45 2012] [error] [client 10.*.*.*] Compilation failed in require at /usr/local/abills/cgi-bin/index.cgi line 41.
[Tue Nov 06 12:05:45 2012] [error] [client 10.*.*.*] Premature end of script headers: index.cgi

Re: abills

Добавлено: 2012-11-06 11:12:55
chipset
Упустил точку с запятой в конфиге. А какие всеже права поставить на /usr/local/abills/cgi-bin/index.cgi не 777 ведь.

Re: abills

Добавлено: 2012-11-06 12:41:57
chipset
И еще вылез косяк с кодировкой на фре у меня стандартно koi8-r где в abills можно поправить на koi8-r тоже.

Re: abills

Добавлено: 2012-11-06 13:52:05
chipset
Частично поправил выставив koi8-r в конфиге и преобразовав к нему бд и файлы в папке language. Но остались кое где косяки кодировки. Прилагаю скрин:
Изображение