My Apache server doesn't execute my CGI script, but download it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

Using Apache 2.0 on Linux, I'm trying to create a directory to execute
CGI scripts:

-------------
<VirtualHost 210.15.21.186>
...
  DocumentRoot "/home/project/web/"
...
 Alias /foo/ /home/project/foo/web/
   <Directory "/home/project/foo/web/">
    Options Indexes FollowSymLinks
           Order Allow,Deny
           Allow from all
           AllowOverride all
    DirectoryIndex index.php
   </Directory>
   <Directory "/home/project/foo/web/uploader">
        Options +ExecCGI
        AddHandler cgi-script .cgi .pl
   </Directory>
...
</VirtualHost>
-------------

If I access http://210.15.21.186/foo/uploader/hello.cgi, Apache downloads it.

But if I execute it via shell, it displays a "hello world" message.
'hello.cgi' script and 'uploader' directory are 755 chmoded.

What am I doing wrong? Thank you very much.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux