How to set an animated background in Microsoft Teams without third-party software

You probably already tried to add a new background with a .mp4 or .gif extension, but soon realized that Microsoft Teams will only allow you to select from .jpg, .jpeg, .png, and .bmp files.

I thought to myself: what if I uploaded a .mp4 or .gif to wherever Microsoft Teams stores those custom uploaded backgrounds?

A quick search lead me to ~/Library/Application Support/Microsoft/Teams/Backgrounds.

I copied an animated.gif, which is the file I want to use as my background, and an animated_thumb.jpg to match, which is the little thumbnail I will click on to select the animated background. That said, while I could select the thumbnail, the background was still not applied.

My last hope was to rename animated.gif to animated.jpg to see if Microsoft Teams could be fooled into thinking it’s a static image, and low and behold, after selecting the thumbnail, the GIF actually played in the background.

Animated Microsoft Teams background

So if you have a MP4, just convert it to a GIF, because MP4s won’t work.

Can’t install WordPress with LSCache on CyberPanel

It said it was successful, but the generic CyberPanel page still displayed when visiting the site.

Upon further investigation, the issue appeared to be with this command:

[email protected]:~# wp core download --allow-root --path=/home/example.com/public_html/
Downloading WordPress 5.5 (en_US)...
md5 hash verified: 983821e81b5b8398469e5c1807c4abf4
PHP Fatal error: Allowed memory size of 62914560 bytes exhausted (tried to allocate 36864 bytes) in phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Extractor.php on line 101

It looks like it ran out of memory during the installation.

Let’s review the memory limit and increase it if necessary.

Continue reading

Enable auto index on website hosted on Ubuntu with CyberPanel and OpenLiteSpeed

I have a server at DigitalOcean with Ubuntu, CyberPanel, and OpenLiteSpeed, and wanted one of my websites to display an auto index of all the files uploaded to it.

There is a default.php script in /usr/local/lsws/share/autoindex that simulates Apache’s auto index, which suffices for my needs, but if you don’t want to use the default, you could copy and edit default.php to create your own template.

Now, to enable and use this auto index, you have to adjust the index directive in your website’s virtual host configuration file:

index  {
  useServer   1
  indexFiles  index.php, index.html
  autoIndex   1
}
Continue reading