Git Product home page Git Product logo

Comments (12)

alex-w0 avatar alex-w0 commented on June 1, 2024 1

Hi, the container nginx is build successfully. I noticed now that I entered the wrong container, so the default.conf is generated successfully.

Nevertheless, I get a number of errors when I call http://localhost:8080/ . Any ideas what could be the problem? Thanks :)

image

Edited: Found now the issue an additional configuration in the site.conf was missing https://pimcore.com/docs/5.x/Development_Documentation/Installation_and_Upgrade/System_Setup_and_Hosting/Nginx_Configuration.html
# rewrite ^/cache-buster-(?:\d+)/(.*) /$1 last;

Btw. another improvement for your readme, I had to append to the command bin/console assets:install also the destination directory bin/console assets:install web

from pimcore-docker-setup.

StefanieD avatar StefanieD commented on June 1, 2024 1

You're totally right. I've updated the site.conf and the README files.

from pimcore-docker-setup.

StefanieD avatar StefanieD commented on June 1, 2024

Hi,
is your nginx container running? After docker-compose up -d , check with docker-compose ps if the container nginx was build successfully.
Actually the nginx image has always a default site config under this path.

Is your output from your nginx container?

from pimcore-docker-setup.

alex-w0 avatar alex-w0 commented on June 1, 2024

Great thanks :)

Another problem: for some reason the images (in the frontend and also in the backend) are not displayed correctly. The directory /web/var/tmp/image-thumbnails has no files.

image

from pimcore-docker-setup.

StefanieD avatar StefanieD commented on June 1, 2024

I've found the problem. For generating thumbnails imagick needs to be installed. I've updated the Dockerfile.
After rebuilding the container you can run php bin/console pimcore:thumbnails:image. All Thumbnails will be created under /web/var/tmp/image-thumbnails.

After that, make sure that you set the right permissions for /web/var. I've just set `/web/var' to 755.

Then you should be able to see the thumbnails in frontend and the previews in admin panels.

from pimcore-docker-setup.

alex-w0 avatar alex-w0 commented on June 1, 2024

Hi, unfortunately it's still not working. No thumbnails were generated inside /web/var/tmp/image-thumbnails. All folders are empty, even if I updated the php dockerfile and executed php bin/console pimcore:thumbnails:image

from pimcore-docker-setup.

StefanieD avatar StefanieD commented on June 1, 2024

Did you build your container new? With docker-compose build?

from pimcore-docker-setup.

alex-w0 avatar alex-w0 commented on June 1, 2024

Yes i did the following docker-compose build --no-cache nginx php

I tried now to completely reinstall the application, but also there I'm receiving now some errors. Have some new PHP extensions been added to the package?

image

from pimcore-docker-setup.

StefanieD avatar StefanieD commented on June 1, 2024

Yeah my fault. I've deleted the gd extension in Dockerfile.
I've enabled it again. Try build and thumbnail generation again.

from pimcore-docker-setup.

alex-w0 avatar alex-w0 commented on June 1, 2024

When I tried to reinstall pimcore and I follow your readme instructions, it gives me the following error message on the command

cd pimcore && COMPOSER_MEMORY_LIMIT=-1 ./vendor/bin/pimcore-install \ --admin-username=admin --admin-password=admin --mysql-host-socket=mysql \ --mysql-username=pimcore --mysql-password=pimcore --mysql-database=pimcore --no-interaction

image

from pimcore-docker-setup.

StefanieD avatar StefanieD commented on June 1, 2024

Hey,
this is just because of the backslashes \ . Remove them from the command. Seems like the console can not read it correctly when you copy and paste it.

I've reverted this change in the README file.

from pimcore-docker-setup.

alex-w0 avatar alex-w0 commented on June 1, 2024

Hi, it's working now. Thanks for the help :)

from pimcore-docker-setup.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.