I’m setting up a system (PHP-based) that will let users instantly provision an SVN environment for use. It’s an internal project so the users will mostly be internal users.
I haven’t the foggiest idea where to even start. Are there SVN bindings for PHP, or am I going to have to use the svn console command?
Here’s one possibility. You’ll have a couple steps here. First, you need to create the svn repo in your PHP action script, maybe something like:
You’ll need to set up sudo to allow your web server to run that svnadmin command. Then you’ll need to drop in a new apache .conf snippet in /etc/httpd/conf.d:
and restart Apache. Maybe create that newproj htpasswd file too for security. Be sure to check and sanitize all passed form values ($_REQUEST). Hope this gets you started.