Тема: Проблема с настройки cgi скриптов на локальном сервере
При переходе по ht_tp://xxx.org/cgi-bin/printenv.pl или ht_tp://xxx.org/cgi/printenv.pl появляется ошибка 500 Internal Server Error.
В логах апача следующее:
[Mon Jun 04 07:32:16 2012] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't create child process: 720003: printenv.pl
[Mon Jun 04 07:32:16 2012] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't spawn child process: C:/Program Files/Programs/Apache/cgi-bin/printenv.pl
httpd.conf:
...
<Directory />
Options Includes FollowSymLinks ExecCGI
AllowOverride All
Allow from all
</Directory>
...
<Directory "C:/Program Files/Programs/Apache/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# ht_tp://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
# Options Indexes FollowSymLinks#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all</Directory>
...
ScriptAlias /cgi-bin/ "C:/Program Files/Programs/Apache/cgi-bin/"
...
<Directory "C:/Program Files/Programs/Apache/cgi-bin">
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
...
AddHandler cgi-script .cgi .pl
httpd-vhosts.conf:
<VirtualHost *:80>
DocumentRoot "C:/Program Files/Programs/Apache/htdocs/xxx"
ServerName xxx.org
ServerAlias *.xxx.org
ScriptAlias /cgi/ "C:/Program Files/Programs/Apache/htdocs/xxx/cgi/"
</VirtualHost>
Единожды! скрипт сработал без ощибок. Далее что то изменил и опять все слетело. Помогите пожалуйста.