websvn Ubuntuの設定

websvn Ubuntuの設定

websvn私のプログラム用のサーバーを作成する必要があります。

サーバーにwebsvnをインストールしましたが、うまくいきますが、このメッセージが表示されます。

Please set up a repository in include/config.php using $config->parentPath or $config->addRepository. See the installation guide for more details.

だからnano include/config.phpを作成しました。

    <?php
$config->parentPath("/var/lib/svn");
$config->addRepository("FirstRepo", "file:///var/lib/svn/FirstRepo");
$config->setEnscriptPath("/usr/bin");
$config->setSedPath("/bin");
$config->useEnscript();
    ?>

それからsudo /etc/init.d/apache2 restart

これでURLにアクセスすると、http://192.168.x.xxx/websvn/ウェブサイトが空白になり、ビューが消えます。

これはリポジトリのあるパス/var/lib/svnであり、その中にフォルダが必要です。FirstRepo

私が何か間違っているかどうかはわかりません。

apt list php-xml

Listing... Done
php-xml/xenial-updates,xenial-updates 1:7.0+35ubuntu6.1 all
N: There is 1 additional version. Please use the '-a' switch to see it

ls -la /var/lib/svn/FirstRepo

drwxrwxr-x 6 root     root 4096 Aug 20 10:52 .
drwxrwxr-x 5 www-data root 4096 Aug 20 10:52 ..
drwxrwxr-x 2 root     root 4096 Aug 20 10:52 conf
drwxrwsr-x 6 root     root 4096 Aug 20 10:52 db
-rwxrwxr-x 1 root     root    2 Aug 20 10:52 format
drwxrwxr-x 2 root     root 4096 Aug 20 10:52 hooks
drwxrwxr-x 2 root     root 4096 Aug 20 10:52 locks
-rwxrwxr-x 1 root     root  246 Aug 20 10:52 README.txt

ベストアンサー1

インストールphp-xmlパッケージ:

sudo apt install php-xml

その後、Apacheを再起動し、すべてが正常であることを確認してください。

おすすめ記事