Вообщем стоит 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/
|
вот воопщем что я не так сделал? Переюзал весь гугл нечего найти не мог(
|