Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   Безопасность (https://forum.antichat.xyz/forumdisplay.php?f=41)
-   -   .htaccess запустить perl скрипт (https://forum.antichat.xyz/showthread.php?t=129137)

(Dm) 10.07.2009 13:55

.htaccess запустить perl скрипт
 
Надо запустить perl скрипт, с целью обхода safe mode php
Apache/1.3.37 (Unix) PHP/5.2.6 mod_ssl/2.8.28 OpenSSL/0.9.7a mod_perl/1.29 FrontPage/5.0.2.2510

1. Есть каталог доступный на запись;
2. .htaccess - работает.
3. apache c mod_cgi и mod_perl

>> через mod_cgi
Создаю .htaccess:
PHP код:

Options +ExecCGI
AddHandler cgi
-script .pl .cgi 

Скрипт test.pl:
PHP код:

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print 
"It works!<br>\n"

Права выставляю 0755;
Вызываю скрипт: Internal Server Error

>> через mod_perl
Создаю .htaccess:
PHP код:

<FilesMatch "test.pl">
    
SetHandler  perl-script
    PerlResponseHandler ModPerl
::Registry
    Options 
+ExecCGI
    PerlSendHeader on
</FilesMatch

Также: Internal Server Error

Возможности посмотреть логи нет, как и конфиги апача. (


Время: 02:03