This command doesnt work on 14.10 ubuntu i get this when i run the command.
Welcome to Ubuntu 14.10 (GNU/Linux 3.16.0-30-generic i686)
* Documentation:
https://help.ubuntu.com/Last login: Sun Feb 15 06:11:51 2015 from cpe84948c51dee1-cm84948c51dee0.cpe.net.cable.rogers.com
root@install:~# sudo -i
root@install:~# APACHE2Conf="/etc/apache2/apache2.conf"
root@install:~# if [ -e "$APACHE2Conf" ]; then
> sed -i "s/^Options.*/Options +Indexes +FollowSymLinks/g" "$APACHE2Conf"
> service apache2 restart
> fi
* Restarting web server apache2 [Sun Feb 15 18:26:44.365527 2015] [alias:warn] [pid 9162] AH00671: The Alias directive in /etc/apache2/conf.d/phpmyadmin.conf at line 3 will probably never match because it overlaps an earlier Alias.
[ OK ]
root@install:~#