Jump to content
  • 0

Проблема с настройки cgi скриптов на локальном сервере


mistic1282
 Share

Question

При переходе по 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"' date=' "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

[/quote']

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>

Единожды! скрипт сработал без ощибок. Далее что то изменил и опять все слетело. Помогите пожалуйста.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy