[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN not interpreting with PHP

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Wed, 16 Sep 2009 03:34:23 -0500

On Sep 16, 2009, at 03:21, Alexander Schumann wrote:

> I setup for a 10 member development team Subversion. They develop
> Web applications. The issue I am seeing is that while browsing the
> repositories usinghttp://mercury.domain.name/repos/ all the HTML is
> executed in IE and Firefox however no PHP code is interpreted. I
> then created a test file that should display the PHP server info.
>
> Example:
> <?php
> phpinfo();
> ?>
>
> However it is only displayed as clear test no the code is not
> actually executed. Could you please advice?

Correct. You're not going to get PHP code to execute that way, nor
CGIs to execute. Subversion is only going to show you the contents of
the files that are in the repository; it's not going to pass them
through any other Apache modules or executables.

You will need to write a post-commit hook that updates a server side
working copy. You will first have to create that working copy and
change its ownership to whatever user your Apache runs as. From then
on, nobody will touch this working copy other than the post-commit
script. You will configure a VirtualHost or Alias in Apache to point
to this working copy, and use the corresponding URL whenever you want
to see the PHP code executed as PHP.

There are many prior messages on the list going into more detail if
you need it.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2395400

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-16 10:35:28 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.