Jump to content
Sign in to follow this  

Exec script error

Recommended Posts

На сервере надо разрешить использование скриптов из директории /domain.ru/www/ (и соответственно на все ее поддиректории).



<VirtualHost *:80>

ServerName domain.ru

ServerAlias domain.ru

ServerAlias http://www.domain.ru/

DocumentRoot "/usr/local/apache/domains/domain.ru/www/"

AddHandler cgi-script .cgi

<Directory "/usr/local/apache/domains/domain.ru/www/">

Options +ExecCGI


ScriptAlias /cgi-bin/ "/usr/local/apache/domains/domain.ru/cgi-bin/"


<Directory "/usr/local/apache/domains/domain.ru/www">

AllowOverride None

Options Indexes FollowSymLinks ExecCGI

Order allow,deny

Allow from all


После запуска скрипта из директории /domain.ru/www/test/ в логах пишут следующее:

No such file or directory: exec of /usr/local/apache/domains/domain.ru/www/test/index.cgi failed

Premature end of script headers: /usr/local/apache/domains/domain.ru/www/test/index.cgi

Что можно сделать?

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   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.

Sign in to follow this  

  • Create New...