Closed Akshay-Arjun closed 1 year ago
What is your php version
There are two php images no idea about php so pasting them both here, one is unifiedtransform-php
PHP 7.4.33 CLI NTS
Second one is phpmyadmin
PHP 8.1.17 CLI NTS
More info :
-> I am on Windows and Linux, and I am getting the same errors on both machines.
-> Copied the .env.example to .env
-> Ran docker-compose up -d
-> Ran docker-compose run --rm composer install
Got the above errors.
Ill check the docker compose file for php version
But consider setting it up without docker for testingvas im busy at the moment
Ill check the docker compose file for php version
But consider setting it up without docker for testingvas im busy at the moment
Did you run composer install in or out of the docker container
I have run both of them out of the container(idk if im right) on cmd/terminal on windows/linux just like i ran docker-compose up d
. Sorry i'm newbie :)
To be precise, i opened the normal cmd terminal and ran the 2 codes, one after the other docker-compose up d ; docker-compose run --rm composer install
Try running your composer install inside the container itself
How can i do that ? :(. Version 2 works well , but I need version 1 and I couldn't make it run. Even tried with docker-install.sh file.
Try setting up a UnifiedTransform project on Windows 10 without Docker:
https://mykeels.medium.com/unifiedtransform-getting-started-in-2021-286842edacad
I am using this method and it is running fine.
Try setting up a UnifiedTransform project on Windows 10 without Docker:
https://mykeels.medium.com/unifiedtransform-getting-started-in-2021-286842edacad
I am using this method and it is running fine.
I mentioned that but i got no response on that from op
How can i do that ? :(. Version 2 works well , but I need version 1 and I couldn't make it run. Even tried with docker-install.sh file.
That exception looks like a php exception
You are most probably running the commands outside the container
Since this project doesn't use sail, i cannot tell which of the services the prohect is mounted on without looking at the dicker compose file
Could you take a picture of your docker desktop?
Tried to start composer and artisan but they are exiting and stopping.
Click on the php service, then switch over to the terminal
Run pwd command and post the results
Also try running compoaer install from there
Output of php is var/www/html
it do have the contents of the website when did ls
. But when tried to run composer install
its showing command not found.
After installing it in docker with
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php --install-dir=/usr/local/bin --version=1.9.1 --filename=composer && php -r "unlink('composer-setup.php');" || php -r "unlink('composer-setup.php');"
/var/www/html # composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/dusk v6.4.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- laravel/dusk v6.4.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- Installation request for laravel/dusk v6.4.1 -> satisfiable by laravel/dusk[v6.4.1].
To enable extensions, verify that they are enabled in your .ini files:
So i checked the php.ini file it doesnt have complete config except few lines like memory_limit and other, copied the php.ini-development to php.ini and uncommented the extensions. But it is now showing the extensions not found errors.
Can you check if docker installing file is correct in project.
Good, we are making progress
As a root user, or if sudo doesn't throw an error, run
(Sudo) apt-get install php-7.4-common
Also, run it with zip instead of common at the end
(Sudo) apt-get install php-7.4-common
Should i run it in my docker php terminal?
/var/www/html # apt-get install php-7.4-common
/bin/sh: apt-get: not found
/var/www/html #
i'm on alpine linux according to os-release. Is it what we needed?
/usr/local/lib/php/extensions/no-debug-non-zts-20190902 # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.16.3
PRETTY_NAME="Alpine Linux v3.16"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
You need to find how to install the zip extension of php in that distro
A bit of googling would help
Followed the steps and when i run
docker-compose run --rm composer install , the following error throws up.