Поиск:

Ответ в темуСоздание новой темы Создание опроса
> Проблема с настройкай apache+mod_perl 
:(
    Опции темы
Pozitifff
Дата 11.4.2009, 19:51 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Новичок



Профиль
Группа: Участник
Сообщений: 6
Регистрация: 25.5.2008

Репутация: нет
Всего: 1



Вообщем стоит ubuntu, поставил Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.1 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0 Server at site1 Port 80

Подключил все модули через утилиту rapache для работы с perl скриптами
прописал в конфиге /etc/apache2/sites-enabled/site1

Код

<VirtualHost *:80>
ServerAdmin webmaster@localhost
    ServerName site1
        DocumentRoot /home/ml/www/site1/
<Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
<Directory /home/ml/www/site1/>
                Options FollowSymLinks MultiViews Indexes
                AllowOverride None
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start page
                # in /apache2-default/, but still have / go to the right place
                #RedirectMatch ^/$ /apache2-default/
        </Directory>

        ScriptAlias /cgi-bin/ /home/ml/www/site1/cgi/
<Directory /home/ml/www/site1/cgi/>
                AllowOverride None
                Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined
        ServerSignature on

    Alias /doc/ "/usr/share/doc/"
<Directory /usr/share/doc/>
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>


в /etc/apache2/apache2.config добавил следущее

Код

AddHandler cgi-script .cgi .pl
<Files ~ "\.pl$">
Options +ExecCGI
</Files>
<Files ~ "\.cgi$">
Options +ExecCGI
</Files>

<IfModule mod_perl.c>
<IfModule mod_alias.c>
Alias /cgi-bin/ /home/ml/www/site1/
</IfModule>
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
</Location>
</IfModule>

<Directory /home/ml/www/public_html/cgi-bin>
        Options ExecCGI
        SetHandler cgi-script
</Directory>


но почему все таки еше apache не читает perl скрипты? при наборе url site1/test.pl выдает следущее:

Код

Internal Server Error

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

Please contact the server administrator, webmaster@localhost 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.
Apache/2.2.9 (Ubuntu) PHP/5.2.6-2ubuntu4.1 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.0 Server at site1 Port 80


в логе ошибок пишит:

Код

[Sat Apr 11 16:32:22 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /home/ml/www/site1/
[Sat Apr 11 16:32:52 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /home/ml/www/site1/
[Sat Apr 11 16:33:22 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /home/ml/www/site1/
[Sat Apr 11 16:33:52 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /home/ml/www/site1/
[Sat Apr 11 16:34:22 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /home/ml/www/site1/
[Sat Apr 11 16:34:39 2009] [error] [client 127.0.1.2] (13)Permission denied: exec of '/home/ml/www/site1/test.pl' failed, referer: http://site1/
[Sat Apr 11 16:34:39 2009] [error] [client 127.0.1.2] Premature end of script headers: test.pl, referer: http://site1/
[Sat Apr 11 16:34:52 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /home/ml/www/site1/
[Sat Apr 11 16:35:22 2009] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /home/ml/www/site1/


вот воопщем что я не так сделал? Переюзал весь гугл нечего найти не мог( 
PM MAIL ICQ   Вверх
DSsupport
Дата 14.4.2009, 20:03 (ссылка) | (нет голосов) Загрузка ... Загрузка ... Быстрая цитата Цитата


Шустрый
*


Профиль
Группа: Участник
Сообщений: 64
Регистрация: 5.3.2009

Репутация: 5
Всего: 5



Судя по логу:
Цитата

[Sat Apr 11 16:34:39 2009] [error] [client 127.0.1.2] (13)Permission denied: exec of '/home/ml/www/site1/test.pl' failed, referer: http://site1/
[Sat Apr 11 16:34:39 2009] [error] [client 127.0.1.2] Premature end of script headers: test.pl, referer: http://site1/


Нет прав на запуск скрипта.

Пользователь www-data не может запустить скрипт: /home/ml/www/site1/test.pl .
Какие права на этот файл?
PM MAIL WWW ICQ GTalk Jabber   Вверх
  
Ответ в темуСоздание новой темы Создание опроса
1 Пользователей читают эту тему (1 Гостей и 0 Скрытых Пользователей)
0 Пользователей:
« Предыдущая тема | Администрирование Web серверов и Web служб | Следующая тема »


 




[ Время генерации скрипта: 0.0619 ]   [ Использовано запросов: 20 ]   [ GZIP включён ]


Реклама на сайте     Информационное спонсорство

 
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности     Powered by Invision Power Board(R) 1.3 © 2003  IPS, Inc.