frankenwp icon indicating copy to clipboard operation
frankenwp copied to clipboard

Empty response on `/var/www/html` volume instead of `/var/www/html/wp-content`

Open mhkarimi1383 opened this issue 1 year ago • 13 comments

I have switched from FPM to this image using sample provided in project, After that I'm getting empty response body there is no failed log in the container or response body

mhkarimi1383 avatar Jun 11 '24 14:06 mhkarimi1383

THat's not good. Can you share any more info on your context? Like what docker image you are using and details of configuration?

The latest docker image should be:

wpeverywhere/frankenwp:latest-php8.3

StephenMiracle avatar Jun 11 '24 19:06 StephenMiracle

I have used 8.2 but the problem was solved after changing my volume from the entire html directory to only wp-content

But why?

mhkarimi1383 avatar Jun 11 '24 19:06 mhkarimi1383

I mean instead of

  • ./wp/html/wp-content:/var/www/html/wp-content I have set
  • ./wp/html:/var/www/html

mhkarimi1383 avatar Jun 11 '24 19:06 mhkarimi1383

Since I need to fix the WordPress version to a fixed version. I want to be able to do that

mhkarimi1383 avatar Jun 11 '24 19:06 mhkarimi1383

hm. That's interesting. I'm using the html for my version.
There is a process that happens in the docker image that copies from 1 destination to the /var/www/html location.

is that folder empty locally when running with just /html?

StephenMiracle avatar Jun 11 '24 19:06 StephenMiracle

No I was switched from FPM image to this image So the directory was not empty I have also applied changes from this project Dockerfile to my html (mu-plugins, etc.)

mhkarimi1383 avatar Jun 11 '24 19:06 mhkarimi1383

hm. This could be challenging to troubleshoot without being able to see the changes. Can you paste the updated Dockerfile that you are using?

StephenMiracle avatar Jun 11 '24 19:06 StephenMiracle

I will In My Dockerfile I have only installed source guardian loader

And I applied changes from this repo by hand (Downloaded contents and placed them in the correct location according to Dockerfile that is in this project)

mhkarimi1383 avatar Jun 11 '24 19:06 mhkarimi1383

My Dockerfile is working when I have only volumed the wp-content

mhkarimi1383 avatar Jun 11 '24 19:06 mhkarimi1383

Here is my Dockerfile

FROM wpeverywhere/frankenwp:latest-php8.2
RUN set -ex \
    && mkdir /tmp/source_guardian_install \
    && cd /tmp/source_guardian_install  \
    && php_ext_dir="$(php -i | grep extension_dir | head -n1 | awk '{print $3}')" \
    && curl -fSL -o ixed.8.2.lin \
        "https://www.sourceguardian.com/loaders/download.php?php_v=8.2.18&php_ts=1&php_is=8&os_s=Linux&os_r=6.1.0-20-amd64&os_m=x86_64" \
    && mv ./ixed.8.2.lin "${php_ext_dir}/" \
    && rm -rf /tmp/source_guardian_install \
    && echo "zend_extension = $php_ext_dir/ixed.8.2.lin" \
        > /usr/local/etc/php/conf.d/00-source_guardian.ini

RUN apt-get update && \
    apt-get install sendmail libnss3-tools -y

mhkarimi1383 avatar Jun 12 '24 05:06 mhkarimi1383

Thanks. I'll check it out this week for you.

StephenMiracle avatar Jun 12 '24 15:06 StephenMiracle

@StephenMiracle thanks, I can share my docker compose file if needed

mhkarimi1383 avatar Jun 12 '24 19:06 mhkarimi1383

@StephenMiracle Hi Any updates on this?

mhkarimi1383 avatar Jun 23 '24 07:06 mhkarimi1383