Adding Favicon on Joomla Website (Video)

This is a short video showing how to add a favicon to a Joomla website. The video shows how I actually added the favicon for this very website.

 

Additional Favicon Configuration

When you add a new favicon file, the owner of the file might change to the active use that uploaded the new file. In this case the username dedes, is seen as the new owner of the favicon file, rather than the system username www-data.

root@joomla-1-vm:/var/www/html/templates/protostar# ls -la
total 212
drwxr-xr-x 9 www-data www-data   4096 Feb  4 02:54 .
drwxr-xr-x 6 www-data www-data   4096 Apr  5 08:04 ..
-rw-r--r-- 1 www-data www-data   1225 Mar 12 17:25 component.php
drwxr-xr-x 2 www-data www-data   4096 Feb  4 02:05 css
-rw-r--r-- 1 www-data www-data   8973 Mar 12 17:25 error.php
-rwxrwxrwx 1 dedes    dedes       831 Jan  6 08:57 favicon.ico
...

 

With the favicon file set to user dedes, we could encounter a few minor issues. For example, during Joomla updates, you would get prompts that the favicon file cannot be updated because the system does not have access to it.

This can easily be resolved by changing both the user and group of the favicon file to www-data.

root@joomla-1-vm:/var/www/html/templates/protostar# chown www-data:www-data favicon.ico
root@joomla-1-vm:/var/www/html/templates/protostar# ls -la
total 212
drwxr-xr-x 9 www-data www-data   4096 Feb  4 02:54 .
drwxr-xr-x 6 www-data www-data   4096 Apr  5 08:04 ..
-rw-r--r-- 1 www-data www-data   1225 Mar 12 17:25 component.php
drwxr-xr-x 2 www-data www-data   4096 Feb  4 02:05 css
-rw-r--r-- 1 www-data www-data   8973 Mar 12 17:25 error.php
-rw-r--r-- 1 www-data www-data   2019 Mar 12 17:25 favicon.ico

Leave a Reply

Your email address will not be published. Required fields are marked *