httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nilesh Govindarajan <li...@itech7.com>
Subject Re: [users@httpd] Default program for CGI
Date Sun, 14 Feb 2010 12:46:55 GMT
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message