Hey I've a svn repository with some php files and I want to run it over the browser. Just like a normal page. But if I go to the repo url (http://server-URL/svn) enter my username/pass, navigate to my php project and selecting the index.php it just shows me the content of the index.php but not the real rendered page. How can I run my project?
+2
A:
Presumably you're using something like mod-svn in Apache to deal with your SVN repository.
If you want to run the PHP then you'll need to set up another virtualroot on Apache that isn't using mod-svn and give it a root directory which matches the location of the PHP files.
Basically, you can't manage the repository and parse the files from the same URL.
Mike
2010-09-14 16:47:56
ok can you give me an advice how to fix the webserver setup that it works?
lain
2010-09-14 16:51:29
ok i'll try that later but thanks mike
lain
2010-09-14 17:04:19
Indeed, have a checkout somewhere, and if you really want the latest SVN-revision there, just add a post-commit hook to the repo which updates the checkout.
Wrikken
2010-09-14 17:13:17
+1
A:
That's what I'd expect viewing the project contents through the svn interface. What you want is to actually upload the php project to a php-enabled website/host.
Jake
2010-09-14 16:49:53