1

I am using Ubuntu 18 and trying to install PHP using command

apt-get install -y php

But during installation, It asks for geographic area and city, so I need to manually input these 2 things.

Since I am preparing commands for Dockerfile, so I am trying to mention all inputs in command itself but not getting way, so is there any way that I can append multiple inputs to my command?

1

2 Answers 2

0

You can add in your Dockerfile


ENV DEBIAN_FRONTEND=noninteractive

Here's the link where i find the solution

Sign up to request clarification or add additional context in comments.

Comments

0

Try this below command for installing PHP:

sudo apt install php

As far as I know, running with sudo may help u in installing php easily.

2 Comments

I am already inside my sudo user, I used Sudo su then installing PHP
Ok, then you go with above approach, setting debian frontend to non-interactive

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.