FTP access to /var/www

    • Hi,

    Im running latest armbian (debian 9) on banana pi m1 and running omv 4.1.4-1 (arrakis). I have connected external hdd to bpi and have two ext4 partition, sda1 is mounted under /var so i get more storage for website and owncloud and nextcloud... Second partition sda2 is mounted in omv and add FTP access which works great...


    Now to my question...
    Is it possible to add ftp access in omv to /var/www so that i could upload images and files i need to run website?


    If any more information is needed, tell me and i will happily provide it...


    Thanks

  • Not sure if i understand, are you talking about moving /www to external hdd and changing root in apache config file? If so my omv and webmin broke and do not work anymore...


    Everything that is mounted on boot in fstab is not accessable trough omv and cant add shares...

  • If anybody is having the same question here is the answer that worked for me ;)


    In open media vault

    • Create share /www
    • Change owner and group to www-data

    Login via ssh

    • copy html folder to previously created folder

      • rsync -av /var/www/html /your/loation
    • Edit DocumentRoot
      • nano /etc/apache2/sites-enabled/000-default.conf

        • Change DocumentRoot /your/loation
    • I also had to edit apache2.conf otherwise i got Forbidden error
      • nano /etc/apache2/apache2.conf
        • Add Bellow <Directory /var/www>*</Directory>

          • <Directory /your/loation/>
          • Options Indexes FollowSymLinks
          • AllowOverride None
          • Require all granted
          • </Directory>


    • Finaly reload apache2

      • systemctl reload apache2

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!