httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Bakshi" <joyd...@infoservices.in (জ বকসী)>
Subject [users@httpd] fastcgi make the .php script down-loadable
Date Mon, 21 Nov 2011 09:44:36 GMT
Dear list,

A strange issue with apache running in an opensuse 11.2 box.

With in particular folder, I have .htaccess containing only

` ` ` `
AddHandler php-fastcgi .php
` ` ` `

and this makes the .php file down-loadable. If I comment that line, then apache
shoes the source code of the .php How can I parse the .php ?

With in the vhost section, I have

` ` `
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
` ` `

and 

#ls -l /srv/www/cgi-bin/

shows

php5 -> /usr/bin/php-cgi5


I have also confirmed the following


# /usr/bin/php-cgi5 -v

PHP 5.3.5 (cgi-fcgi)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
    with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH


Am I missing something here ?


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