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

problem with php5.6 #2506

Closed
cipherbullet opened this issue Feb 16, 2020 · 5 comments
Closed

problem with php5.6 #2506

cipherbullet opened this issue Feb 16, 2020 · 5 comments

Comments

@cipherbullet
Copy link

hi, I am serving up some containers that my php should be 5.6.
but I faced with this error unfortunately:

Step 120/251 : RUN if [ ${INSTALL_AST} = true ]; then     printf "\n" | pecl -q install ast-${AST_VERSION} &&     echo "extension=ast.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/ast.ini &&     phpenmod -v ${LARADOCK_PHP_VERSION} -s cli ast ;fi
 ---> Running in 6cbea836fac5
pecl/ast requires PHP (version >= 7.0.0), installed version is 5.6.40-21+ubuntu16.04.1+deb.sury.org+1
No valid packages found
install failed
ERROR: Service 'workspace' failed to build: The command '/bin/sh -c if [ ${INSTALL_AST} = true ]; then     printf "\n" | pecl -q install ast-${AST_VERSION} &&     echo "extension=ast.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/ast.ini &&     phpenmod -v ${LARADOCK_PHP_VERSION} -s cli ast ;fi' returned a non-zero code: 1
@bestlong
Copy link
Member

need ast extension in php 5.6 ?
seem not support.

@cipherbullet
Copy link
Author

I know but what should I do right now?
I am looking to set up some containers such as apache and MySQL to run my web application.
my friend suggested laradock but I can't build workspace image with php5.6
can you help me?

@bestlong
Copy link
Member

edit .env set WORKSPACE_INSTALL_AST=false

@GinoPane
Copy link
Contributor

I believe the proper fix for this should be by checking the PHP version before installation

@GinoPane GinoPane mentioned this issue Feb 25, 2020
3 tasks
@ultrono
Copy link

ultrono commented Jul 23, 2020

Unfortunately I had to use PHP 5.6 for the first times in ages, on an old Cake PHP project. Setting WORKSPACE_INSTALL_AST to false allowed me to rebuild the workspace container after changing the php-fpm version to 5.6 🍾

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

4 participants