On Oct 10, 2007, at 02:32, Deepan R Venkatesh wrote:
> What you understood was correct and that is the issue I was
> facing here. And I need to have the web server to interpret the PHP
> code. Thanks a lot for advicing me what are all have to be done to
> interpret the php code. But I have some doubts in that, plz help me
> on that too.
>
> 1. You had mentioned that I need to put the checked out files
> somewhere under an apache document root, should I put it under the
> windows machine's apache?
Your Apache configuration specifies one or more locations on disk
from which items are served, usually using the DocumentRoot
directive. Pick one such location, or make a new location, for
example using a new virtual host. Maybe like this:
<VirtualHost *:80>
ServerName mywebsite.example.com
DocumentRoot C:/path/to/workingcopy
</VirtualHost>
Consult the Apache documentation for more information on Apache
directives.
You would then check out a working copy to C:\path\to\workingcopy and
whenever anyone accesses http://mywebsite.example.com they would see
the current state of the web site, with all PHP code interpreted by
Apache as per usual.
You would of course need to control the hostname
mywebsite.example.com and have it mapped to your server.
> 2. Can you tell me what are all the directives I may need to
> install to prevent access to the things under the .svn directories?
I do it this way:
RedirectMatch 404 .*/\.svn(/|$)
> 3. Is it necessary to install the hook to do auto-update?
If you do not, your web site won't be particularly up to date. It
will only reflect the state of the repository at the time you did the
checkout. You will want to run "svn update C:/path/to/workingcopy"
occasionally to update it. Either do this at an interval, like every
half hour or whatever is an acceptable delay for you, or run it
automatically from the post-commit hook after every commit.
Don't forget to Reply To All so your reply goes to the mailing list
too, not just to me.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 10 09:49:05 2007