diff --git a/build.xml b/build.xml
index f6d637a5fa4a455da235a4404500269e4086f176..9813584d1fd370a965e0e169ee761f5b89a85970 100644
--- a/build.xml
+++ b/build.xml
@@ -105,7 +105,8 @@
     <exec command="chmod -R a+w ${srcdir}/local/cache" />
 
     <!-- Generate basic configuration -->
-    <exec command="php ${srcdir}/install.php --use-defaults" />
+    <php expression="end(explode('/', '${vufindurl}'))" returnProperty="basepath" />
+    <exec command="php ${srcdir}/install.php --basepath=/${basepath} --non-interactive" />
 
     <!-- Activate Apache (if an apachectl path has been provided) -->
     <if>