Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mhkarimi1383 opened this issue Jun 11, 2024 · 13 comments

Comments

@mhkarimi1383
Copy link

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

@StephenMiracle
Copy link
Owner

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

@mhkarimi1383
Copy link
Author

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
Copy link
Author

I mean instead of

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

@mhkarimi1383
Copy link
Author

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

@StephenMiracle
Copy link
Owner

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?

@mhkarimi1383
Copy link
Author

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.)

@StephenMiracle
Copy link
Owner

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

@mhkarimi1383
Copy link
Author

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
Copy link
Author

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

@mhkarimi1383
Copy link
Author

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

@StephenMiracle
Copy link
Owner

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

@mhkarimi1383
Copy link
Author

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

@mhkarimi1383 mhkarimi1383 changed the title Empty response Empty response on /var/www/html volume instead of /var/www/html/wp-content Jun 13, 2024
@mhkarimi1383
Copy link
Author

@StephenMiracle
Hi
Any updates on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants