Executing php script inside public directory

I’ve a PHP script (an online survey software) which I’d like to execute
along Radiant. I copied the script (which is working well under another
non-radiant served domain) under /myradiantapp/public directory. I
modified
the /myradiantapp/.htaccess file as follows:

RewriteCond %{REQUEST_URI} ^/survey/.*
RewriteRule .* - [L]

What I get is not parsed by radiant but the PHP script is not executed
when
I invoke this URL:

http://www.example.com/survey/index.php

but it is simply shown by the browser as if it were a plain text file.

I guess is a PHP configuration issue (since it seems radiant
relinquished
its control on the pph script file), but the very same script worked
well on
the same machine (with the same php and apache configuration).

I’m running a vps on rimuhosting.

Any help would be appreciated. Thank you.

–M

One thing you may want to check is that your php configuration was not
specified in the .htaccess where your survey script previously lived.
It may be that the server hasn’t been told to process .php files as
php scripts in the new location.

Kev

On 9/26/06, Maurizio B. [email protected] wrote:

Any help would be appreciated. Thank you.


Kevin A.

Technical Director
BN23 Search Ltd.

I think whats happening is that your php files are still trying to be
served by the ruby server. Try changing the proxy setup to something
like this:

ProxyRequests Off
ProxyPreserveHost On
ProxyPass /survey !
ProxyPass / http://localhost:2502/
ProxyPassReverse / http://localhost:2502/

Notice the extra line with “/survey !” in there. This should stop
apache from sending requests that start with /survey to the proxy
server.

Hope it helps, or at least provides some other directions to look at.

Kev

On 9/26/06, Maurizio B. [email protected] wrote:

Search: http://radiantcms.org/mailing-list/search/
Site:
http://lists.radiantcms.org/mailman/listinfo/radiant


Kevin A.

Technical Director
BN23 Search Ltd.

Kev, you are great, man. The /survey ! directive did the trick! Many
thanks.
–Maurizio

All configurations parameters are in the httpd.con files:

http://pastie.caboo.se/15005

It seems the only different setting is in the proxypass directive for
the
radiant-powered web site versus the static-php one.

Any ideas, suggestion?

Thank you.