• Devanshi

    what does this error mean?

    sudo service apache2 reload

    * Reloading web server apache2 *

    * The apache2 configtest failed. Not doing anything.

    Output of config test was:

    AH00526: Syntax error on line 34 of /etc/apache2/sites-enabled/anusha.conf:

    ServerAlias only used in

    Action ‘configtest’ failed.

    The Apache error log may have more information.

    • George

      Hi Devanshi
      Can you paste anusha.conf content here ?
      ServerAlias should be inside like below.

      ServerName http://www.google.com

      ServerAlias google.com

  • Devanshi

    what does this error mean?

    sudo service apache2 reload

    * Reloading web server apache2 *

    * The apache2 configtest failed. Not doing anything.

    Output of config test was:

    AH00526: Syntax error on line 34 of /etc/apache2/sites-enabled/anusha.conf:

    ServerAlias only used in

    Action ‘configtest’ failed.

    The Apache error log may have more information.

    • George

      Hi Devanshi
      Can you paste anusha.conf content here ?
      ServerAlias should be inside like below.

      ServerName http://www.google.com

      ServerAlias google.com

      • narayana rao

        hii bigginar in ubuntu and svn ..i have to done create repository but how to insert project in svn please help me….

    • dinesh

      Hi Devanshi,

      I am also getting same error.
      have resolve the error?

      Dinesh

  • obaid

    Hi
    created testrepo.conf in /etc/apache2/sites-available/
    now i dun wan it any more and as i deleted testrepo.conf
    and restart apache it gives error at
    apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/testrepo.conf: No such file or directory

    so just to restart apache created enpty testrepo.conf

    but looking for proper solution if dun needs testrepo and testrepo.conf any more so wat to do

  • obaid

    Hi
    created testrepo.conf in /etc/apache2/sites-available/
    now i dun wan it any more and as i deleted testrepo.conf
    and restart apache it gives error at
    apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/testrepo.conf: No such file or directory

    so just to restart apache created enpty testrepo.conf

    but looking for proper solution if dun needs testrepo and testrepo.conf any more so wat to do

    • Việt Quang Trịnh

      I got the same issue and here’s the way to solve, just run following command to disable repository on apache
      sudo a2dissite testrepo.conf

  • alabastida

    Loved this way of creating an svn server, handled by apache instead of standalone, pretty interesting, i liked this way, thanks

  • alabastida

    Loved this way of creating an svn server, handled by apache instead of standalone, pretty interesting, i liked this way, thanks

  • Jean Hsu

    make sure you put
    sudo a2ensite testrepo.conf
    (the .conf) might be important 🙂

    Thanks for the article!

    • Jean Hsu

      just adding some details: I had problem with the virtual host so I added

      … your virtual host configuration …

  • Jean Hsu

    * sudo a2ensite testrepo.conf
    (the .conf) might be important 🙂
    *sudo service apache2 restart might be needed instead of reload…

    Thanks for the article!

    P.S. delete the article below … virtualhost was not needed..

    • Guest

      just adding some details: I had problem with the virtual host so I added

      … your virtual host configuration …

  • Hamid Pourgholi

    Hello,
    it looks like that its quite important that the repository’s parent folder (/svn/ in this case) is located on the top of the linux filesystem hirarchy ( / ).
    After installing the server following the instructions in this article, I had a problem with the permissions of the parent folders of the “repos” folder and the problem was that if the svn folder is not on top of the filesystem (/svn/) then all of its parent folders would also have to be owned by www-data.

    Maybe this helps if someone finds the same solution in google like me for that error and then is not sure if its right or right.
    For me t worked.
    I created the svn folder in /svn/ in my linux machine and it worked.

  • Hamid Pourgholi

    Hello,
    it looks like that its quite important that the repository’s parent folder (/svn/ in this case) is located on the top of the linux filesystem hirarchy ( / ).
    After installing the server following the instructions in this article, I had a problem with the permissions of the parent folders of the “repos” folder and the problem was that if the svn folder is not on top of the filesystem (/svn/) then all of its parent folders would also have to be owned by www-data.

    Maybe this helps if someone finds the same solution in google like me for that error and then is not sure if its right or right.
    For me t worked.
    I created the svn folder in /svn/ in my linux machine and it worked.

    • New Java

      confirmed.

  • I have created the svn server as described above, but I want to know how can I add this repository ineclipse for my projects.

  • Thanks! Loved your tutorial

  • william richard Cordero

    Great article! Just wanted to ask: I have followed this exactly and seems to have everything configured correctly except for I get the following error below when trying to access via browser, I can login, but it say the message below:

    This XML file does not appear to have any style information associated with it. The document tree is shown below.

    Could not open the requested SVN filesystem

    Any help given would be greatly appreciated…might be simple fix..but will be much appreciated!

    • Benedict Suarez

      Same problem. How do you solve it?

  • mAYUR

    Great Article (y)

  • Jacob Bolea Moreno

    Thank you! It was very usefull!!! 10/10

  • gguys1

    “SVNParentPath” did not work for me, it had to be “SVNPath”

  • Chicken Little

    like a charm. thanks

  • pawel

    Hello guys, i’ve just configured SVN using this tutorial. I can checkout repo but i can not commit any changes. Clients using Tortoise SVN on Windows, SVN server is on Ubuntu 14.04.

    Error during commit is:
    “Can’t open file ‘/svn/repos/testrepo/db/txn-current-lock’: Permission denied”

    Any advices what can I do?

    • Xawkay

      Check permissions and owning by group and users

  • Praveen Kumar

    hey william do get your solution for problem what u were facing?? please tell if you solve it.. i got the same error..

  • Rafique Mohammed

    Great!! did it for the first time!! thanks!

  • john

    I am getting this error all the time . . . .

    root@svn-new:/etc/apache2/sites-available# service apache2 reload
    * Reloading web server apache2
    *
    * The apache2 configtest failed. Not doing anything.
    Output of config test was:
    AH00526: Syntax error on line 2 of /etc/apache2/sites-enabled/testrepo.conf:
    Invalid command ‘xc2xa0xc2xa0DAV’, perhaps misspelled or defined by a module not included in the server confi
    guration
    Action ‘configtest’ failed.
    The Apache error log may have more information.

    • Shubham Hatwar

      just run the following command ,the problem is that the module that need by the svn in not loded in apache so use the following command and check it
      #apt-get install subversion apache2 libapache2-svn apache2-utils