• I have a localhost setup running on apache2 in linux (debian 11)

    I’ve noticed recently, two functions are not working in my wordpress installs on localhost, but do work on my vps server:

    1. support for image thumbnails, i.e. uploaded images are not automatically made into srcsets for differing screen sizes, just the original image gets uploaded.

    2. there is no webp support – wordpress media uploader says choose jpeg or png

    I tried adding the recommended php functions to functions.php but this made no difference – and besides my theme works fine when not on localhost (despite not having the php functions explicitly in its functions.php)

    I have a feeling it might have to do with permissions within linux, am guessing “user” needs to have r+w+x permission – which I will look into…

    However, would be grateful for any other suggestions as to what might be going wrong.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dsb01

    (@dsb01)

    update – doesn’t seem to be a permission issue, did chown -R to user for my website folder and chmod -R 770 just be sure and still same problem.

    Dion

    (@diondesigns)

    WebP support requires that the PHP graphics extension you’re using (GD or Imagick) was built with webp support. Inability to generate thumbnails could be caused by your localhost PHP having neither of those extensions installed/enabled.

    You should go to Tools->SiteHealth in your WP admin area and check for messages/errors about missing PHP extensions. Alternately, if you know how to generate/view the phpinfo() page from a URL, check for the existence of GD and Imagick extensions/modules. (DO NOT run phpinfo() from the command line! It must be run via a URL to generate valid results.)

    Site Health will also let you know whether GD/Imagick was built with webp support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘localhost (apache2) on linux – post thumbnails and webp support not working’ is closed to new replies.