Create a virtual server.
In the public web directory:
wget https://github.com/adobo/agendav/releases/download/2.0.0/agendav-2.0.0.tar.gz tar xf agendav-2.0.0.tar.gz cd agendav-2.0.0/web curl -s https://getcomposer.org/installer | php php composer.phar install --prefer-dist --no-dev
Edit /etc/apache2/sites-available/cal.joel.co.in.conf:
Add at the end:
<Location /> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] </Location>
Modify DocumentRoot:
DocumentRoot /home/joel/domains/cal.joel.co.in/public_html/web/public
Create a mysql db and assign a user and password for it.
Set permissions (replace www-data with the virtualhost user):
chown -R www-data:www-data web/
chmod -R 750 web/var/
Edit file settings.php:
cd web/config/ cp default.settings.php settings.php emacs settings.php
Now migrate databases:
cd /home/joel/domains/cal.joel.co.in/public_html php agendavcli migrations:migrate
Now try going to the dav url.
Ref:
http://docs.agendav.org/en/stable/admin/installation/
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.