Giter VIP home page Giter VIP logo

Comments (17)

yungifez avatar yungifez commented on June 12, 2024

What is your php version

from unifiedtransform.

Akshay-Arjun avatar Akshay-Arjun commented on June 12, 2024
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.

from unifiedtransform.

yungifez avatar yungifez commented on June 12, 2024

Ill check the docker compose file for php version

But consider setting it up without docker for testingvas im busy at the moment

from unifiedtransform.

yungifez avatar yungifez commented on June 12, 2024

Ill check the docker compose file for php version

But consider setting it up without docker for testingvas im busy at the moment

from unifiedtransform.

yungifez avatar yungifez commented on June 12, 2024

Did you run composer install in or out of the docker container

from unifiedtransform.

Akshay-Arjun avatar Akshay-Arjun commented on June 12, 2024

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

from unifiedtransform.

yungifez avatar yungifez commented on June 12, 2024

Try running your composer install inside the container itself

from unifiedtransform.

Akshay-Arjun avatar Akshay-Arjun commented on June 12, 2024

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.

from unifiedtransform.

kenzinotech avatar kenzinotech commented on June 12, 2024

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.

from unifiedtransform.

yungifez avatar yungifez commented on June 12, 2024

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

from unifiedtransform.

yungifez avatar yungifez commented on June 12, 2024

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?

from unifiedtransform.

Akshay-Arjun avatar Akshay-Arjun commented on June 12, 2024

image
Tried to start composer and artisan but they are exiting and stopping.

from unifiedtransform.

yungifez avatar yungifez commented on June 12, 2024

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

from unifiedtransform.

Akshay-Arjun avatar Akshay-Arjun commented on June 12, 2024

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.

from unifiedtransform.

yungifez avatar yungifez commented on June 12, 2024

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

from unifiedtransform.

Akshay-Arjun avatar Akshay-Arjun commented on June 12, 2024

(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"

from unifiedtransform.

yungifez avatar yungifez commented on June 12, 2024

You need to find how to install the zip extension of php in that distro

A bit of googling would help

from unifiedtransform.

Related Issues (20)

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.