uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
MIT License
8.25k stars 456 forks source link

Can't run composer install from within docker #501

Closed mchojrin closed 2 years ago

mchojrin commented 2 years ago

Bug report

Can't run composer install from within docker

Issue Description

Description helps the developers to understand the bug. It describes the problem encountered or some after effect of some kind.

I run the following commands:

apt update
apt install php7.2-curl
composer install

Inside a fresh install's docker container and got this:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires php ^7.3 || ^8.0 but your php version (7.2.24) does not satisfy that requirement.
  Problem 2
    - knplabs/knp-paginator-bundle[v5.4.0, ..., v5.7.0] require php ^7.3 || ^8.0 -> your php version (7.2.24) does not satisfy that requirement.
    - Root composer.json requires knplabs/knp-paginator-bundle ^5.4.0 -> satisfiable by knplabs/knp-paginator-bundle[v5.4.0, ..., v5.7.0].
papnoisanjeev commented 2 years ago

@mchojrin

Please replace your docker file code under your project from here.

And make a try again.

mchojrin commented 2 years ago

Hi @papnoisanjeev:

I just cloned the repo again, built the docker image following https://github.com/uvdesk/community-skeleton/wiki/dockerize-helpdesk-project.

Then I run this:

docker run -dit -p 4444:80 \
    -e MYSQL_USER=uvdesk \
    -e MYSQL_ROOT_PASSWORD=root \
    -e MYSQL_PASSWORD=root \
    -e MYSQL_DATABASE=uvdesk \
    --name uvdesk uvdesk

And then, when I opened a browser tab on http://localhost:4444/ I got:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Apache/2.4.29 (Ubuntu) Server at localhost Port 4444

Did I miss any step? Thanks

mchojrin commented 2 years ago

I found something here: the problem is due to an infite re-direction and the root cause seems to be the fact that there's no index.php file inside /public

komal-sh-27 commented 2 years ago

@mchojrin what version of PHP are you using?

vipin-shrivastava commented 2 years ago

I found something here: the problem is due to an infite re-direction and the root cause seems to be the fact that there's no index.php file inside /public

Have you replaced your docker file code under your project from here?

If not replace it and make a try again.

PeopleInside commented 2 years ago

Try to use a greater PHP version. If you are using PHP 7.2 is deprecated. https://www.php.net/supported-versions.php

UVdesk 1.0.18 works for me only with PHP 8.0 but in some other server may works also with PHP 7.4

vipin-shrivastava commented 2 years ago

@mchojrin

Any update?

mchojrin commented 2 years ago

Sorry, I had to move in another direction at the moment. Thanks,