Sometimes OwnCloud includes “index.php” in the shared links. It’s annoying and ugly. Here’s some things to check:
- Is mod rewrite enabled in the apache config?
Options Indexes FollowSymLinks MultiViews
Allow from all
SetEnv HOME /var/www/html/owncloud
SetEnv HTTP_HOME /var/www/html/owncloud
- Is the .htaccess correct? The ###DO NOT EDIT### Section must contain this line (Generally the last line in the IfModule for mod_rewrite
RewriteRule .* index.php [PT,E=PATH_INFO:$1]
- .htaccess must also contain this block for the web app to generate URLs without “index.php”
SetEnv front_controller_active true
Those are my findings for making sure OwnCloud URLs stay pretty.
Steps to install the UniFi controller on Ubuntu 16.04. Note that the package depends on JRE7, so we must add the ppa repo to apt.
echo "deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti" > /etc/apt/sources.list.d/ubnt.list
apt-key adv --keyserver keyserver.ubuntu.com --recv C0A52C50
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install unifi
Expand an existing Ubuntu LVM without creating additional partitions, or adding to LVM VGs:
- Expand the physical device (VMware, HyperV, DD to a new physical device, etc)
- Use offline GParted cd to re size the extended partition on which LVM lives
- In live OS, use parted “resizepart” to extend the logical partition inside of the previously re sized extended partition
Partition number? 5
End? [268GB]? 1099GB
- use LVM to resize the PV:
- resize the filesystem in the LV:
ZFS is a great file system, providing much flexibility, and simple administration. It was originally developed for Sun operating systems, but has been ported to Linux, and support is now baked in to Ubuntu Server 15.10.
ZFS natively supports snapshots, but there is a tool for automagically creating, and aging snapshots: https://github.com/zfsnap/zfsnap. (Man page: http://www.zfsnap.org/zfsnap_manpage.html)
Installation is fairly straight forward:
After that, set up a crontab for automatic snapshot creation:
26 * * * * /usr/local/sbin/zfsnap snapshot -a 5d -r tank
And finally, set up crontab for automatic snapshot deletion:
0 1 * * * /usr/local/sbin/zfsnap destroy -r tank