On 02/14/2010 05:58 PM, Maciej Piechotka wrote:
Is it possible to specify a handler for files in CGI?
I.e. have:

SomeDirectiveCGI .pl /usr/bin/perl

I'd like to install a PHP script on server where PHP is available only
through SuExec due to security reasons. And adding such option
to .htaccess would be much simpler to maintain then adding to each file
(especially that I don't know how does it react with php include):
#!/path/to/php

I haven't found anything similar in documentation but before submitting
bug I prefer to ask here.

Regards


You may want to check out this article- http://www.itech7.com/Linux/Apache2-PHP-FastCGI-SuExec

After a lot of struggling I was able to do this. Also its better to use FastCGI over standard CGI for performance reasons.

--
Nilesh Govindarajan
Site & Server Adminstrator
www.itech7.com

---------------------------------------------------------------------
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-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to